Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 286771

Summary: sci-misc/boinc-6.6.40 fails to build with -Wl,--as-needed
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Tomáš Chvátal (RETIRED) <scarabeus>
Status: RESOLVED FIXED    
Severity: normal CC: sci
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: add $(SSL_LIBS) to libboinc_la_LIBADD

Description Martin von Gagern 2009-09-28 14:53:29 UTC
/bin/sh ../libtool --tag=CXX   --mode=link i686-pc-linux-gnu-g++ -pthread -march=prescott -O2 -ggdb -O3 -funroll-loops -fforce-addr -ffast-math -march=i486 -mtune=generic  -Wl,--as-needed -o crypt_prog crypt_prog-crypt_prog.o ../lib/libboinc.la -L/usr -lssl -lcrypto -ldl -lz  
libtool: link: i686-pc-linux-gnu-g++ -pthread -march=prescott -O2 -ggdb -O3 -funroll-loops -fforce-addr -ffast-math -march=i486 -mtune=generic -o .libs/crypt_prog crypt_prog-crypt_prog.o  -Wl,--as-needed ../lib/.libs/libboinc.so -L/usr/lib -L/usr -lssl -lcrypto -ldl -lz -pthread
../lib/.libs/libboinc.so: undefined reference to `SSL_load_error_strings'
../lib/.libs/libboinc.so: undefined reference to `SSL_library_init'
collect2: ld returned 1 exit status
make[2]: *** [crypt_prog] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-misc/boinc-6.6.40/work/boinc-6.6.40/lib'

libboinc.so does use symbols from libssl.so but doesn't link against it.
Comment 1 Martin von Gagern 2009-09-28 15:52:05 UTC
Created attachment 205484 [details, diff]
add $(SSL_LIBS) to libboinc_la_LIBADD

This made the crypt_prog part compile for me, although compiling the whole package failed due to another error, which seems unrelated.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-29 17:46:26 UTC
Thanks for the patch. I attached it without revbump. :]

Also would you mind giving your patch upstream please, i tried myself but their trac failed on me.
Comment 3 Martin von Gagern 2009-09-30 09:18:54 UTC
(In reply to comment #2)
> Thanks for the patch. I attached it without revbump. :]

Thanks!

> Also would you mind giving your patch upstream please,

Sent a mail to boinc_dev@ssl.berkeley.edu, don't know it will need moderation.

> i tried myself but their trac failed on me.

It seems they are having trouble with spam, and have disabled the TICKET_CREATE privilege for authenticated users for the time being, until they manage to update to Trac 0.11 with Captcha support.
See http://thread.gmane.org/gmane.comp.distributed.boinc.devel/1346