Error - FreeBSD 9.0 Won't compile

William Brown william.e.brown at adelaide.edu.au
Wed Jan 25 00:37:16 MST 2012


./configure.developer --prefix=/usr/local/samba4 --without-utmp --disable-cups; make clean; make

Throws a similar error

[3395/3875] Linking default/lib/libsamba-sockets.so
default/lib/tsocket/tsocket_helpers_1.o: In function `tdgram_sendto_queue_send':
/root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:74: undefined reference to `tevent_queue_add_optimize_empty'
default/lib/tsocket/tsocket_helpers_1.o: In function `tstream_readv_pdu_queue_send':
/root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:350: undefined reference to `tevent_queue_add_optimize_empty'
default/lib/tsocket/tsocket_helpers_1.o: In function `tstream_writev_queue_send':
/root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:461: undefined reference to `tevent_queue_add_optimize_empty'
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  -> task failed (err #1): 
	{task: cc_link composite_4.o,socket_7.o,access_7.o,connect_multi_7.o,connect_7.o,socket_ip_5.o,tsocket_1.o,tsocket_helpers_1.o,tsocket_bsd_1.o,socket_unix_6.o,resolve_12.o -> libsamba-sockets.so}
*** Error code 1



On 24/01/2012, at 23:33, Stefan (metze) Metzmacher wrote:

> Am 24.01.2012 12:20, schrieb William Brown:
>> Thanks to some off-list help, it was avoided with the use of
>> 
>> ./configure.developer --without-utmp
>> 
>> However, now I get the new error
>> 
>> [3391/3875] Linking default/lib/libsamba-sockets.so
>> default/lib/tsocket/tsocket_helpers_1.o: In function `tdgram_sendto_queue_send':
>> /root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:74: undefined reference to `tevent_queue_add_optimize_empty'
>> default/lib/tsocket/tsocket_helpers_1.o: In function `tstream_readv_pdu_queue_send':
>> /root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:350: undefined reference to `tevent_queue_add_optimize_empty'
>> default/lib/tsocket/tsocket_helpers_1.o: In function `tstream_writev_queue_send':
>> /root/samba-master/bin/../lib/tsocket/tsocket_helpers.c:461: undefined reference to `tevent_queue_add_optimize_empty'
>> Waf: Leaving directory `/root/samba-master/bin'
>> Build failed:  -> task failed (err #1): 
>> 	{task: cc_link composite_4.o,socket_7.o,access_7.o,connect_multi_7.o,connect_7.o,socket_ip_5.o,tsocket_1.o,tsocket_helpers_1.o,tsocket_bsd_1.o,socket_unix_6.o,resolve_12.o -> libsamba-sockets.so}
>> *** Error code 1
> 
> The same happens on ubuntu 11.10 if someone has libcups2-dev and
> libtevent-dev installed.
> 
> Can you try if it works with ./configure.developer --without-utmp
> --disable-cups ?
> 
> On some systems "cups-config --libs" brings in default library pathes
> as explicit -L linker arguments. Which would mean the linker may find
> a too old libtevent.so in a system path before finding the private one.
> 
> metze
> 


Sincerely,

William Brown

Research & Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-----------------------------------------------------------------------------
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120125/04d39d60/attachment.pgp>


More information about the samba-technical mailing list