app-antivirus/clamav-0.95.2 fails when LDFLAGS has -Wl,--as-needed in it and when libmilter is available as a shared object.
Created attachment 204041 [details] /tmp/clamav-0.95.2-build.log
Created attachment 204043 [details] /tmp/clamav-0.95.2-config.log
Actually... this may be a problem with mail-filter/libmilter-1.0.1 not properly linking libmilter.so: $ ldd /usr/lib64/libmilter.so linux-vdso.so.1 => (0x00007fff7cba9000) libc.so.6 => /lib64/libc.so.6 (0x00007ff3bbc12000) /lib64/ld-linux-x86-64.so.2 (0x00007ff3bc1a6000) $ nm -D /usr/lib64/libmilter.so |grep pthread U pthread_create U pthread_detach U pthread_mutex_destroy U pthread_mutex_init U pthread_mutex_lock U pthread_mutex_unlock U pthread_self U pthread_sigmask Sorry, I don't know exactly what to make of all of this info, but using --as-needed with clamav does cause it to fail to link while avoiding --as-needed doesn't. In fact, this compilation fragment from mail-filter/libmilter-1.0.1 suggests it silently fails to link libmilter.so when compiling: x86_64-pc-linux-gnu-gcc -Wl,--as-needed -Wl,-O1 -Wl,-t -Wl,--enable-new-dtags -Wl,--hash-style=both -lpthread -shared -o libmilter.so -Wl,-soname,libmilter.so.1.0.1 main .o engine.o listener.o worker.o handler.o comm.o smfi.o signal.o sm_gethost.o monitor.o errstring.o strl.o -lc
Created attachment 204054 [details] /tmp/libmilter-1.0.1-build.log
as-needed is not officially supported. Please provide a fix upstreamn and re-open the bug
You're right, libmilter misses -lpthread when linked with -Wl,--as-needed. Fixed in libmilter-1.0.1-r1, thanks!
Also fixed in mail-mta/sendmail-8.14.3-r2.
(In reply to comment #6) > You're right, libmilter misses -lpthread when linked with -Wl,--as-needed. > > Fixed in libmilter-1.0.1-r1, thanks! > Thank you very much for your support :-)