On 03/04/2010 07:25 PM, Renato Botelho wrote: >>> testegw# ldd llvmunittest_ADT >>> llvmunittest_ADT: >>> libthr.so.2 => /usr/lib/libthr.so.2 (0x8006e7000) >>> libstdc++.so.6 => /usr/local/lib/gcc42/libstdc++.so.6 (0x8007fe000) >>> libm.so.4 => /lib/libm.so.4 (0x800a0a000) >>> libgcc_s.so.1 => /usr/local/lib/gcc42/libgcc_s.so.1 (0x800b26000) >>> libpthread.so.2 => /lib/libpthread.so.2 (0x800c33000) >>> libc.so.6 => /lib/libc.so.6 (0x800d5e000) >> Ouch, how did the linker even allow that?! > > > Yeah, I think we found it:
Ok that comes from here libclamav/c++/Makefile.am: libllvmsystem_la_LDFLAGS=-pthread I thought -pthread is the appropriate thing to use (the OpenBSD manpage says so at least), guess I should pass @THREAD_LIBS@ from ClamAV's main configure to the one in libclamav/c++. Best regards, --Edwin _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net