Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432860 - games-board/pokerth-0.9.5 fails to link (missing symbols from libssl like SSL_get_error)
Summary: games-board/pokerth-0.9.5 fails to link (missing symbols from libssl like SSL...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-26 13:54 UTC by Bodo Thiesen
Modified: 2012-08-27 06:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bodo Thiesen 2012-08-26 13:54:44 UTC
games-board/pokerth-0.9.5 fails to link with the following error:

[...]
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -L/usr/lib64/boost-1_48 -Wl,--no-as-needed -o bin/pokerth_server obj/pokerth_server.o obj/nonqttoolswrapper.o obj/nonqthelper.o obj/net_helper_server.o obj/loghelper_server.o obj/ircthread.o obj/servermanagerirc.o obj/servermanagerfactoryserver.o obj/convhelper.o    -Llib -L/usr/lib -L/opt/gsasl/lib -L/usr/lib64/qt4 -lpokerth_lib -lpokerth_db -lpokerth_protocol -march=amdfam10 -O3 -pipe -Wl,-O1 -Wl,--as-needed -lcurl -lidn -lldap -lrt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lz -lgnutls -lssh2 -lircclient -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_iostreams-mt -lboost_regex-mt -lboost_random-mt -lboost_system-mt -lsqlite3 -ltinyxml -lgsasl -lgcrypt -lpthread 
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x5a): undefined reference to `SSL_new'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x79): undefined reference to `SSL_set_fd'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x99): undefined reference to `SSL_load_error_strings'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x10f): undefined reference to `SSL_library_init'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x131): undefined reference to `SSLv23_method'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x139): undefined reference to `SSL_CTX_new'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x15d): undefined reference to `SSL_CTX_ctrl'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x179): undefined reference to `SSL_CTX_set_cipher_list'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x196): undefined reference to `SSL_CTX_ctrl'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x1ac): undefined reference to `SSL_CTX_set_verify'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x1c1): undefined reference to `SSL_CTX_ctrl'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x1db): undefined reference to `SSL_CTX_ctrl'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x1fb): undefined reference to `SSL_set_connect_state'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_init':
(.text+0x21b): undefined reference to `SSL_CTX_set_verify'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x2bc5): undefined reference to `SSL_write'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x2bdb): undefined reference to `SSL_get_error'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x30a3): undefined reference to `SSL_read'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x32e6): undefined reference to `SSL_read'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x38f2): undefined reference to `SSL_write'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x3bd5): undefined reference to `SSL_get_error'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x404a): undefined reference to `SSL_get_error'
/usr/lib/libircclient.a(libircclient.o): In function `irc_process_select_descriptors':
(.text+0x40f0): undefined reference to `SSL_get_error'
collect2: ld gab 1 als Ende-Status zurück
[...]

Obviously the linker command is missing -lssl

$ find /lib* /usr/lib* -type f -exec grep -l SSL_new {} + | while read lib; do echo "$lib:"; ( nm -D "$lib" 2>&1 ) | grep SSL_new; done | grep -B 1 "T SSL_new"
[...]
/usr/lib64/libssl.so.1.0.0:
0000000000040500 T SSL_new
--
/usr/lib64/libgnutls-openssl.so.27.0.0:
0000000000004bc0 T SSL_new
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2012-08-26 21:10:53 UTC
already fixed.  resync and try again.
Comment 2 Daniel Díaz 2012-08-27 06:29:52 UTC
It's still dying on me with the same error, even with the underlinking patch:
[...]
i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -L/usr/lib/boost-1_48 -Wl,--no-as-needed -o bin/pokerth_server obj/pokerth_server.o obj/nonqttoolswrapper.o obj/nonqthelper.o obj/net_helper_server.o obj/loghelper_server.o obj/ircthread.o obj/servermanagerirc.o obj/servermanagerfactoryserver.o obj/convhelper.o    -Llib -L/usr/lib -L/opt/gsasl/lib -L/usr/lib/qt4 -lpokerth_lib -lpokerth_db -lpokerth_protocol -lcurl -lldap -lrt -lz -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -lircclient -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_iostreams-mt -lboost_regex-mt -lboost_random-mt -lboost_system-mt -lsqlite3 -ltinyxml -lgsasl -lgcrypt -lpthread 
/usr/lib/libircclient.a(libircclient.o): In function `ssl_send':
(.text+0xdf): undefined reference to `ERR_clear_error'
/usr/lib/libircclient.a(libircclient.o): In function `ssl_send':
(.text+0x101): undefined reference to `SSL_write'
[...]


I have net-misc/curl-7.25.0-r1 with these useflags:
# equery -q u net-misc/curl
-ares
-curl_ssl_axtls
-curl_ssl_gnutls
+curl_ssl_nss
-curl_ssl_openssl
-curl_ssl_polarssl
-idn
+ipv6
-kerberos
+ldap
-ssh
+ssl
-static-libs
-test
+threads

Portage 2.1.11.9 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.15-r2, 3.2.21-gentoo i686)
=================================================================
System uname: Linux-3.2.21-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.1
Timestamp of tree: Mon, 27 Aug 2012 05:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
[...]
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
USE="7zip X a52 aac aalib acl acpi alsa amr amrnb amrwb apache2 asf asterisk audiofile avahi avi bash-completion bcmatch berkdb bidi bluetooth bonobo branding bzip2 cairo cdda cddb cdparanoia cdr cli colord consolekit cracklib crypt cups curl curlwrappers cxx daap dbus dbx dri dts dvd dvdr dvdread eds emboss encode ethereal evo exif expat fam ffmpeg firefox flac foomaticdb freetype ftp fuse gd gdbm gif gnome gnome-keyring gnome-online-accounts gnutls gpm gps gstreamer gtk gtk2 h323 hal howl iconv ilbc imagemagick imap imlib ipod ipv6 jabber jack java joystick jpeg kde kqemu ladspa lcms ldap libcaca libnotify libsamplerate live mad matroska midi mmx mng mod modules mozilla mp3 mp4 mpeg mudflap mysql nas nautilus ncurses nls nptl nsplugin ogg oggvorbis opengl openmp pam pango pcre pdf perl php png policykit ppds pppd pulseaudio python qt qt3support qt4 readline rtsp samba sasl sdl session smp snmp socialweb speex spell sqlite sse sse2 ssl startup-notification stream svg tcpd theora threads tiff timidity truetype udev udisks unicode upnp upower usb v4l2 vcd vhosts vorbis wifi win32codecs wxwidgets wxwindows x264 x86 xcb xine xml xml2 xmlrpc xosd xprint xv xvid zaptel zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es ko" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="i915 vesa fbdev intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON