Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80111 - openssh needs older version of libopensc
Summary: openssh needs older version of libopensc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 11:05 UTC by Evan Langlois
Modified: 2005-01-31 09:51 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 Evan Langlois 2005-01-30 11:05:15 UTC
lain ~ # scp
scp: error while loading shared libraries: libopensc.so.0: cannot open shared object file: No such file or directory

Can't use

Reproducible: Always
Steps to Reproduce:
1. emerge -u world
2. scp


Actual Results:  
Tried to re-emerge openssh to fix this:

i686-pc-linux-gnu-ranlib libssh.a
i686-pc-linux-gnu-gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o
sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -Wl,-O1 -L/usr/lib -lopensc
-lssh -lopenbsd-compat -lcrypto -lskey -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/ -Wl,-O1 -L/usr/lib
-lopensc -lssh -lopenbsd-compat -lwrap -lpam -ldl -lcrypto -lskey -lutil -lz
-lnsl -lcrypt
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: libscconf.so.0, needed by /usr/lib/libopensc.so, not found (try using
-rpath or -rpath-link)
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0xfb): In function
`getrrsetbyname':
: undefined reference to `__res_query'
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x5c4): In function
`parse_dns_qsection':
: undefined reference to `__dn_expand'
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x6f8): In function
`parse_dns_rrsection':
: 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-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: libscconf.so.0, 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



lain ~ # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r2 i686)
=================================================================
System uname: 2.6.10-gentoo-r2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 04:58:11)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -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="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex 3ds X a52 aac acpi acpi4linux adns aim aliaschain
alsa amd apache2 apm artworkextra asm asterisk async atm audiofile avi
bash-completion bdf beepmp berkdb bindist bitmap-fonts blender-game bluetooth
bmp bonobo bootsplash bzip2 bzlib c++ cacheemu cairo calendar cap caps cddb
cdparanoia cdr cdrom cgi chipcard chroot clamav cle266 clearpasswd cnamefix
codecs cracklib crypt cscope css curl curlwrappers dba dbx dedicated devfs26
devmap dga dhcp dict dillo dio directfb distcache divx4linux djbfft dlloader dmx
dnd dnsdb droproot dv dvb dvd dvdread dxr3 edl eds emoticon encode erandom
escreen esd ethereal etwin evms2 evo exif ext-png ext-zlib extensions extlib f77
fam fastcgi fax fb fbcon fbdev festival ffmpeg fftw flac flash flatfile flexresp
flood fluidsynth fmod foomaticdb foreign-package foreign-sysvinit fortran fpx
freetds freetts freetype frlargefiles ftp gb gcj gd gd-external gdbm ggi gif
gimp gimp-print gimpprint gkrellm glgd glitz gmail gmp gmthigh gmtsuppl gmttria
gnokii gnome gnomedb gnuplot gnustep gnutls gphoto2 gpm gps gs gsl gsm gstreamer
gtk gtk2 guile hal howl hub icu idea imap imlib imlib2 inetd inifile innodb ipv6
irda irmc isdn ithreads jabber jack jack-tmpfs java javacomm javascript jbig
joystick jp2 jpeg junit kde ladcca ladspa latex layout-osx-like lcd lcms ldap
lesstif libcaca libclamav libdsk libg++ libgda libsamplerate libwww lids lirc
live lm_sensors ltsp lufsusermount lzo lzw lzw-tiff mad maildir maildrop
mailwrapper makecheck maps matroska matrox mbox mbrola mcve mdb memlimit
messages mew mhash mikmod mime mimencode ming mixer mjpeg mmap mmx mmx2 mng
modcache modchat monkey motif mozaccess mozilla moznoirc moznomail mozsvg
mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn multicall multipleip music mysql
nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses network neural nntp
no-old-linux no_wxgtk1 notlsbeforeauth nptl ntlm oav objc offensive oggvorbis
opengl openssh operanom2 opie oss pam parse-clocks passfile pcap pcntl pcre pdf
pdfkit pdflib perl pg-hier pg-intdatetime pg-vacuumdelay physfs pic pie playlist
plotutils png pnp portaudio posix postgres postgresql povray ppds prelude pri
print private procmail pthreads pwdb python qemu-fast qt quicktime quotas quotes
readline real remote resperl rogue roundrobin rrdtool rtc samba scanner sdk sdl
semanticfix sendfile serial session sftplogging shaper sheep silverxp simplexml
skey slang slp smartcard smime sms smtp sndfile snmp snortsam sockets socks5
softmmu sounds sox spamassassin speedo speex spell sqlite src ssl streamzap svg
svga tcpd tga thumbnail tidy tiff timidity transcode truetype truetype-fonts
trusted type1 type1-fonts underscores uptimed v4l v4l2 vdesktop vhosts videos
vidix virus-scan vnc wavelan webmin-minimal wifi wildlsearch winbind wma123 wmf
wolk-bootsplash wolk-supermount wxwindows xanim xatrix xattr xchatdccserver
xforms xim xine xinerama xml2 xmms xosd xpm xprint xrandr xscreensaver xv xvid
xvmc yahoo yaz yp yv12 zaptel zlib zvbi"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-30 11:43:26 UTC
Did you try `revdep-rebuild -p`?
Comment 2 SpanKY gentoo-dev 2005-01-30 11:51:42 UTC
re-emerge opensc
Comment 3 Evan Langlois 2005-01-30 12:37:39 UTC
I already tried re-emerging opensc, as you can see the error listed :
warning: libscconf.so.0, needed by /usr/lib/libopensc.so, not found 
And scp says that file doesn't exist, and as you might expect, its not there.
libopensc.so.1 is there, a newer one, and its going to install an older no matter how many times I re-emerge packages.

I think libopensc needs to have a slot for the older lib and openssh needs to require the old one.  How is this bug invalid?  If I can't scp into a box because portage upgraded something (and revdep-rebuild is done regularly after every world update!), then its a BUG!

I've given up on helping Gentoo find bugs.  I used to run all ACCEPT_KEYWORDS for everything, knowing that I'd find issues like this that would need to be reported and fixed and many people simply don't report them, so I intentionally did so things would get reported and fixed before going into the more "stable" tree.  But, I'm tired of arguing with developers on what is or isn't a bug.  

I'm setting the couple of items I need ~x86 into package.keywords and downgrading the whole box.   So ... since this bug is already closed as "invalid", I'll fix it by downgrading everything ... you guys can fix this yourself when opensc gets bumped into the regular "stable" tree.
Comment 4 SpanKY gentoo-dev 2005-01-30 13:07:08 UTC
well you neglected to mention any of that in your original bug report

that said, emerging opensc-0.9.4 installs the correct files for me:
>>> /usr/lib/libopensc.la
>>> /usr/lib/libopensc.so -> libopensc.so.1.0.0
>>> /usr/lib/libopensc.so.1 -> libopensc.so.1.0.0
>>> /usr/lib/libopensc.so.1.0.0

>>> /usr/lib/libscconf.la
>>> /usr/lib/libscconf.so
>>> /usr/lib/libscconf.so.1
>>> /usr/lib/libscconf.so.1.0.0

if something needs .so.0 then it means it's still linked against the old version; re-emerge it
Comment 5 Evan Langlois 2005-01-30 14:31:40 UTC
the original bug report did mention that - I thought it was obvious from the description.  As you can see from the emerge output, it wants .so.0.  Please READ what I keep posting.

Re-emerging the "something that needs .so.0" is what failed, its what I posted, and why I posted the bug!  I think you guys just assume that the bug is invalid without actually reading whats posted.

So ... maybe my suggestion that libopensc needs a slot to have both libs installed would be the fix.  If I could just re-emerge it and have it work, I wouldn't have opened a bug in the first place!
Comment 6 SpanKY gentoo-dev 2005-01-30 14:34:33 UTC
your original analysis was incorrect then, openssh works fine with openct-0.5.0 and opensc-0.9.4 (i just tested it on my box)

SLOTing is not the solution since SLOTing is for completely different setups
Comment 7 Evan Langlois 2005-01-30 23:13:11 UTC
Well, I'm not a developer.  You tell me why openssh won't emerge.
Comment 8 SpanKY gentoo-dev 2005-01-31 06:05:56 UTC
because it had a bad day

emerge sync and re-emerge opensc-0.9.4 and then re-emerge openssh and all should be well in the world (and your box)
Comment 9 Evan Langlois 2005-01-31 09:51:04 UTC
tried all that before posting the bug, and its too late to do it again.  I've already started to downgrade world.  no more ~x86, no more bug posts, no more fixing 20 problems trying to get something done while being told my computer software doesn't have bugs unless I put them there.