Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79510 - openssh cannot find libopensc.so
Summary: openssh cannot find libopensc.so
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 13:32 UTC by Alexander Jenisch
Modified: 2005-03-13 02:20 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 Alexander Jenisch 2005-01-25 13:32:58 UTC
after upgrading to opensc-0.9,4 (which is btw, not normaly fetchable via wget, but can be downloaded by hand from the url???) openssh refuses to operate. i tried to restart the server an got an error message. i don't have the exact wording right now, but it complains about not being able to find libopensc.so.
Comment 1 Alexander Jenisch 2005-01-25 13:54:04 UTC
well i have news. i've recompiled opensc-0.8.1-r1 and tried to recompile openssh again. i'm getting another compiler i got with 0.9.4:

i686-pc-linux-gnu-gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -L/usr/lib -lopensc -lssh -lopenbsd-compat -lcrypto -lutil -lz -lnsl -lcrypt
i686-pc-linux-gnu-gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o -L. -Lopenbsd-compat/  -L/usr/lib -lopensc -lssh -lopenbsd-compat -lwrap -lpam -ldl -lcrypto -lutil -lz -lnsl -lcrypt
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libscconf.so.1, needed by /usr/lib/libopensc.so, not found (try using -rpath or -rpath-link)
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x28e): In function `parse_dns_rrsection':
: undefined reference to `__dn_expand'
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x44a): In function `getrrsetbyname':
: undefined reference to `__res_query'
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x582): In function `getrrsetbyname':
: undefined reference to `__dn_expand'
/usr/lib/libopensc.so: undefined reference to `scconf_find_blocks'
/usr/lib/libopensc.so: undefined reference to `scconf_find_list'
/usr/lib/libopensc.so: undefined reference to `scconf_get_str'
/usr/lib/libopensc.so: undefined reference to `scconf_new'
/usr/lib/libopensc.so: undefined reference to `scconf_get_bool'
/usr/lib/libopensc.so: undefined reference to `scconf_free'
/usr/lib/libopensc.so: undefined reference to `scconf_get_int'
/usr/lib/libopensc.so: undefined reference to `scconf_parse'
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libscconf.so.1, needed by /usr/lib/libopensc.so, not found (try using -rpath or -rpath-link)
/usr/lib/libopensc.so: undefined reference to `scconf_find_blocks'
/usr/lib/libopensc.so: undefined reference to `scconf_find_list'
/usr/lib/libopensc.so: undefined reference to `scconf_get_str'
/usr/lib/libopensc.so: undefined reference to `scconf_new'
/usr/lib/libopensc.so: undefined reference to `scconf_get_bool'
/usr/lib/libopensc.so: undefined reference to `scconf_free'
/usr/lib/libopensc.so: undefined reference to `scconf_get_int'
/usr/lib/libopensc.so: undefined reference to `scconf_parse'
collect2: ld returned 1 exit status
make: *** [sshd] Error 1


i wonder why openssh using this lib anyway?


root@hydralisk # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ck2 i686)
=================================================================
System uname: 2.6.10-ck2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan  5 2005, 06:51:47)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.9.4, 1.5, 1.4_p6, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://195.56.77.10/ http://194.149.10.102/ http://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib alsa apache2 apm async avi berkdb bitmap-fonts cdr crypt cups dedicated dga encode f77 fam flac font-server fortran freetype gd gdbm gif gimpprint gpm gtk gtk2 icq imagemagick imlib imlib2 ipv6 java jikes jpeg junit kde lcms libg++ libwww mad maildir mcal mikmod mmap mmx mng motif moznocompose moznoirc moznomail mozsvg mpeg mpeg4 mysql nas ncurses network nls noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodod nojdepend nojsch nojython nolog4j nooro noregexp norhino notfc nowin noxalan noxerces offensive oggvorbis openal opengl operanom2 oscar pam pdflib perl php png portaudio pthreads python qt quicktime radeon readline samba sdl session slang smartcard spell sse ssl stencil-buffer svga tcltk tcpd threads tiff tokenizer truetype truetype-fonts type1 type1-fonts vhosts vim-with-x wxwindows xml xml2 xmms xosd xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 2 Alexander Jenisch 2005-01-25 14:01:13 UTC
argh... i had "smartcard" in my useflags... god knows. why. anyway, it's not working, even though i've purged that use flag from my system now :).
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-01-25 15:37:06 UTC
your output is comment 1 is from which version of opensc?

libscconf.so.1 is an opensc lib from opensc-0.9.4 bug not dev-libs/opensc-0.8.1-r1 (creates libsconf.so.0)

openssh-3.9_p1-r1 with opensc-0.8.1-r1 (note libopensc.so.0)
readelf -a  /usr/sbin/sshd   | fgrep NEED
  [ 7] .gnu.version_r    VERNEED         0804b13c 00313c 0000a0 00   A  5   3  4
 0x00000001 (NEEDED)                     Shared library: [libopensc.so.0]
 0x00000001 (NEEDED)                     Shared library: [libpam.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libresolv.so.2]
 0x00000001 (NEEDED)                     Shared library: [libcrypto.so.0.9.7]
 0x00000001 (NEEDED)                     Shared library: [libutil.so.1]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libnsl.so.1]
 0x00000001 (NEEDED)                     Shared library: [libcrypt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libgssapi_krb5.so.2]
 0x00000001 (NEEDED)                     Shared library: [libkrb5.so.3]
 0x00000001 (NEEDED)                     Shared library: [libk5crypto.so.3]
 0x00000001 (NEEDED)                     Shared library: [libcom_err.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]


I got a failure with 0.9.4 cause it was looking for the 0.8 library - exact opposite to yours.
i686-pc-linux-gnu-gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -L/usr/lib -lopensc -lssh -lopenbsd-compat -lcrypto -lutil -lz -lnsl -lcrypt -L/usr/lib -Wl,-rpath -Wl,/usr/lib -pipe -Wall -Wpointer-arith -Wno-uninitialized -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
i686-pc-linux-gnu-gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o -L. -Lopenbsd-compat/  -L/usr/lib -lopensc -lssh -lopenbsd-compat  -lpam -ldl -lcrypto -lutil -lz -lnsl -lcrypt -L/usr/lib -Wl,-rpath -Wl,/usr/lib -pipe -Wall -Wpointer-arith -Wno-uninitialized -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libscconf.so.0, needed by /usr/lib/libopensc.so, notfound (try using -rpath or -rpath-link)
/usr/lib/libopensc.so: undefined reference to `scconf_find_blocks'

removing a use flag won't just make it work. You'll need to recompile openssh as you've removed the a dependancy (opensc?)

Yes something needs fixing here. I've corrected the src_uri for now. (after I remerged openssh so I could save it :-)
Comment 4 Alexander Jenisch 2005-01-25 16:53:01 UTC
yes sorry, that wasn't clear. i got the compiler error from compiling openssh against 0.8.1-r1 AND 0.9.4.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-02-24 03:42:03 UTC
bumping pri so I don't ignore it.
Comment 6 SpanKY gentoo-dev 2005-03-13 02:20:14 UTC
opensc version bump changed ABI #'s ... you need to rebuild stuff after that