Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158826 - emul-linux-x86-baselibs-2.5.5 - Openssl symbol lookup error
Summary: emul-linux-x86-baselibs-2.5.5 - Openssl symbol lookup error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: emul-tracker
  Show dependency tree
 
Reported: 2006-12-22 06:00 UTC by Ronald Huizer
Modified: 2007-02-12 14:00 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 Ronald Huizer 2006-12-22 06:00:33 UTC
Hi,

Running acroread using the app-emulation/emul-linux-x86-baselibs-2.5.5 libraries on amd64 yields the following error:

# Atlas is a 64-bit machine using emul-linux
rhuizer@atlas ~ $ acroread
/opt/Acrobat7/Reader/intellinux/bin/acroread: symbol lookup error: /emul/linux/x86/usr/lib/libssl.so.0.9.7: undefined symbol: HMAC_CTX_set_flags

The HMAC_CTX_set_flags symbol is expected to be present in libcrypto.so.0.9.7,
I have verified this on several 32-bit gentoo machines I have around:

# mira is a 32-bit machine
rhuizer@mira ~ $ strings /usr/lib/libcrypto.so.0.9.7  | grep HMAC_CTX_set_flags
HMAC_CTX_set_flags

# atlas is a 64-bit machine using emul-linux
rhuizer@atlas ~ $ strings /emul/linux/x86/usr/lib/libcrypto.so.0.9.7 | grep HMAC_CTX_set_flags
[..bleakness..]

Checking the openssl versions on both machines I noticed the following interesting point:

# Again, on 32-bit
rhuizer@mira ~ $ strings /usr/lib/libcrypto.so.0.9.7  | grep "0\.9\.7"
libcrypto.so.0.9.7
MD2 part of OpenSSL 0.9.7j 04 May 2006
[... lots of repetitions of the same version number ...]

# And on 64-bit with emul-linux
rhuizer@atlas ~ $ strings /emul/linux/x86/usr/lib/libcrypto.so.0.9.7 | grep "0\.9\.7"
libcrypto.so.0.9.7
OpenSSL 0.9.7e 25 Oct 2004
[... lots of repetitions of the same version number ...]

Whereas, checking the following leads me to:

# On 32-bit
rhuizer@mira ~ $ strings /usr/lib/libssl.so.0.9.7  | grep "0\.9\.7"
libcrypto.so.0.9.7
libssl.so.0.9.7
SSLv2 part of OpenSSL 0.9.7j 04 May 2006

# On 64-bit with emul-linux
rhuizer@atlas ~ $ strings /emul/linux/x86/usr/lib/libssl.so.0.9.7 | grep "0\.9\.7"
libcrypto.so.0.9.7
libssl.so.0.9.7
SSLv2 part of OpenSSL 0.9.7j 04 May 2006

The problem might be caused because a 0.9.7j version of libssl in emul-linux-x86-baselibs is using a 0.9.7e version of libcrypto, which is missing the relevant symbol.

Overwriting the 0.9.7e libcrypto present in the emul-linux directory on atlas with our own 0.9.7j 32-bit libcrypto version from 'mira' solves the problem.

Note that in order to reproduce our exact problem, we're running LDAP over TLS, without nscd, which is consulted when starting acroread for all sorts of purposes.

With regards,
  -- R. Huizer

For the record:

atlas ~ # emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r4-smp x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4-smp x86_64 Dual Core AMD Opteron(tm) Processor 270
Gentoo Base System version 1.12.6
Last Sync: Thu, 21 Dec 2006 06:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -msse -msse2 -mmmx -m3dnow -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/gdm/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -msse -msse2 -mmmx -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo"
LANG="en_US"
LINGUAS="en nl"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups dbus dlloader dri elibc_glibc esd font-server fortran gdbm gif gimpprint gnome gnutls gpm gtk2 iconv imap input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kerberos kernel_linux ldap libg++ linguas_en linguas_nl mbox mime mmap motif ncurses nis nls nptl nptlonly nsplugin ogg oggvorbis pam pcre pdf perl png ppds pppd python qt3 quotas readline reflection sasl session smime spl ssl svg tcpd theora truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Kevin Parent 2006-12-31 12:08:12 UTC
I experience the same issue with firefox-bin with emul-linux-x86-baselibs-2.5.5

$ firefox-bin
No running windows found
/opt/firefox/firefox-bin: symbol lookup error: /emul/linux/x86/usr/lib/libssl.so.0.9.7: undefined symbol: HMAC_CTX_set_flags
firefox-bin exited with non-zero status (127)

# emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-ck1-r2 x86_64)
=================================================================
System uname: 2.6.18-ck1-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.6
Last Sync: Sun, 31 Dec 2006 11:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X alsa alsa_cards_via82xx alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups dga dlloader dri eds elibc_glibc emboss encode esd evo fam ffmpeg flac foomaticdb fortran frontendonly gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml iconv idn imap imlib input_devices_keyboard input_devices_mouse irda irmc isdnlog ithreads java jpeg kde kernel_linux lcms ldap libg++ logrotate lzw mad mbox mikmod mng mp3 mpeg mysql mythtv ncurses nls nptl nptlonly nsplugin nvidia oav offensive ogg oggvorbis opengl oss pam pcre pda pdf perl png posix ppds pppd pthreads python qt3 qt4 quicktime readline reflection samba sdl session slang spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev unsupported_8bit usb userland_GNU video_cards_nvidia vorbis xine xml xorg xpm xv xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2007-02-12 14:00:41 UTC
should be fixed in 10.0