Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286771 - sci-misc/boinc-6.6.40 fails to build with -Wl,--as-needed
Summary: sci-misc/boinc-6.6.40 fails to build with -Wl,--as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2009-09-28 14:53 UTC by Martin von Gagern
Modified: 2009-09-30 09:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add $(SSL_LIBS) to libboinc_la_LIBADD (boinc-6.6.40-as_needed.patch,739 bytes, patch)
2009-09-28 15:52 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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