Nigel Vickers
2013-Jan-24 09:51 UTC
[Samba] samba4 master build fail undefined reference to `tevent_set_trace_callback'
Good Morning,
Environment :openchange / samba4 ,ubuntu 12.04, 32bit
CLI: make samba-git-update
fails with:-
[3509/3720] Linking default/source4/heimdal_build/samba4kpasswd
[3510/3720] Linking default/source3/smbd/smbd
default/lib/tevent/testsuite_1.o: In function `test_event_context_threaded':
/home/sysop/openchange/samba4/bin/../lib/tevent/testsuite.c:246: undefined
reference to `tevent_set_trace_callback'
collect2: ld returned 1 exit status
default/source3/libsmbd_base.so: undefined reference to
`tevent_set_trace_callback at TEVENT_0.9.17'
collect2: ld returned 1 exit status
Waf: Leaving directory `/home/sysop/openchange/samba4/bin'
Build failed:
<snip>
-> task failed (err #1):
{task: cc_link epmd_8.o,lsasd_9.o,server_148.o -> smbd}
make[1]: *** [all] Error 1
make: *** [samba-git-update] Error 1
ldconfig says:
/sbin/ldconfig.real: Cannot stat /usr/lib/i386-linux-gnu/libnss_db.so: No
such file or directory
libtevent-util.so.0 -> libtevent-util.so.0.0.1
libtevent.so.0 -> libtevent.so.0.9.15
libtevent.so.0 -> libtevent.so.0.9.17
It would appear that the linker is using /usr/include/tevent.h that indeed
does not define the function tevent_set_trace_callback and the relevant
flags.
How do I get the waf system to force the linker to use the internel library?
Any legal pointers in the right direction would be gratefully received.
Nigel Vickers
