Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479624 - net-analyzer/wireshark-1.10.1 - links with old lib while emerge, which result in preserving old lib
Summary: net-analyzer/wireshark-1.10.1 - links with old lib while emerge, which result...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-03 11:52 UTC by Alex Efros
Modified: 2013-10-25 13:33 UTC (History)
0 users

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


Attachments
log of broken build (first one) (20130803-022829.log.gz,150.62 KB, application/x-gzip)
2013-08-04 15:08 UTC, Alex Efros
Details
log of successful build (second one) (20130803-114337.log.gz,151.51 KB, application/x-gzip)
2013-08-04 15:09 UTC, Alex Efros
Details
wireshark-1.10.1-oldlibs.patch (wireshark-1.10.1-oldlibs.patch,795 bytes, patch)
2013-08-07 15:13 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2013-08-03 11:52:47 UTC
After updating wireshark from 1.8.8 to 1.10.1 I got this in emerge output:

 !!! existing preserved libs:
 >>> package: net-analyzer/wireshark-1.10.1
 *  - /usr/lib64/libwsutil.so.2
 *  - /usr/lib64/libwsutil.so.2.0.0
 *  - /usr/lib64/libwiretap.so.2
 *  - /usr/lib64/libwiretap.so.2.1.8
 *      used by /usr/lib64/libwireshark.so.2.1.1 (net-analyzer/wireshark-1.10.1)

It looks like wireshark-1.10.1 has linked to libwsutil.so.2 from wireshark-1.8.8 instead of it's own libwsutil.so.3:

home ~ # ls -la /usr/lib64/libwsutil*
-rw-r--r-- 1 root root  1003 Aug.   3 05:31 /usr/lib64/libwsutil.la
lrwxrwxrwx 1 root root    18 Aug.   3 05:31 /usr/lib64/libwsutil.so -> libwsutil.so.3.0.0
lrwxrwxrwx 1 root root    18 Jun.  30 02:37 /usr/lib64/libwsutil.so.2 -> libwsutil.so.2.0.0
-rwxr-xr-x 1 root root 26304 Jun.  30 02:37 /usr/lib64/libwsutil.so.2.0.0
lrwxrwxrwx 1 root root    18 Aug.   3 05:31 /usr/lib64/libwsutil.so.3 -> libwsutil.so.3.0.0
-rwxr-xr-x 1 root root 30400 Aug.   3 05:31 /usr/lib64/libwsutil.so.3.0.0
home ~ # qfile /usr/lib64/libwsutil.so.2.0.0 /usr/lib64/libwsutil.so.3.0.0
net-analyzer/wireshark (/usr/lib64/libwsutil.so.2.0.0)
net-analyzer/wireshark (/usr/lib64/libwsutil.so.3.0.0)
home ~ # qlist wireshark | grep libwsutil.so
/usr/lib64/libwsutil.so
/usr/lib64/libwsutil.so.2
/usr/lib64/libwsutil.so.2.0.0
/usr/lib64/libwsutil.so.3
/usr/lib64/libwsutil.so.3.0.0
home ~ # qlist -I -v wireshark
net-analyzer/wireshark-1.10.1

Re-emerging wireshark fixed this issue.
Comment 1 Alex Efros 2013-08-03 11:54:46 UTC
BTW, second issue here is what in emerge (and qlist) output libwsutil.so.2 looks like it belongs to wireshark-1.10.1, which is wrong and confusing.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-03 12:32:38 UTC
Aw, not again. :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-03 13:24:52 UTC
(In reply to Alex Efros from comment #1)
> BTW, second issue here is what in emerge (and qlist) output libwsutil.so.2
> looks like it belongs to wireshark-1.10.1, which is wrong and confusing.

That's the very same issue, since FEATURES=preserve-libs has to make sure that some package owns the old libraries.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-03 13:25:28 UTC
I can't reproduce the issue here. Post your `emerge --info' output in a comment, please.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-03 13:25:54 UTC
And post your `emerge -vpq net-analyzer/wireshark', too.
Comment 6 Alex Efros 2013-08-03 13:35:59 UTC
# emerge -vpq net-analyzer/wireshark
[ebuild   R   ] net-analyzer/wireshark-1.10.1  USE="caps crypt filecaps gtk ipv6 netlink pcap ssl zlib -adns -doc -doc-pdf -geoip -kerberos -libadns -lua -portaudio (-profile) -qt4 (-selinux) -smi" 


Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.9.9-hardened x86_64)
=================================================================
System uname: Linux-3.9.9-hardened-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8160176 total,    178500 free
KiB Swap:    4200960 total,   4091916 free
Timestamp of tree: Fri, 02 Aug 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo perl-experimental-snapshots gamerlay powerman local
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/upsmon-usb/EXT/DownOS /opt/upsmon-usb/EXT/JSystem /service /usr/inferno/keydb /usr/inferno/lib /usr/inferno/services /usr/share/config /usr/share/gnupg/qualified.txt /var/log /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/ http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.iteam.net.ua/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental-snapshots /var/lib/layman/gamerlay /var/lib/layman/powerman /usr/local/portage"
SYNC="rsync://rsync3.ua.gentoo.org/gentoo-portage"
USE="X a52 aac acl alac alsa amd64 avx bash-completion berkdb bzip2 caps cdda cddb cli cracklib crypt cxx dbus dri dts dvb dvd flac fontconfig gdbm gif gnutls gpg hardened iconv icu id3tag idn ipv6 jpeg jpeg2k justify libnotify mac mad matroska mbox mmx mng modules mp3 mpeg mudflap multilib musepack mysql ncurses network-cron nls nptl nsplugin ogg opengl openmp pam pax_kernel pcre perl png qt3support readline session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg tcpd theora tiff truetype unicode urandom vdpau vim-syntax vorbis wavpack x264 xattr xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi fancyindex" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 7 Rafał Mużyło 2013-08-03 15:41:40 UTC
ltmain.sh:
VERSION="2.4.2 Debian-2.4.2-1ubuntu1"

See bug 473354 and bug 367975 for a likely duplicates.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-03 16:21:52 UTC
(In reply to Rafał Mużyło from comment #7)
> ltmain.sh:
> VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
> 
> See bug 473354 and bug 367975 for a likely duplicates.

Where did that come from?
Comment 9 Rafał Mużyło 2013-08-03 19:00:34 UTC
(In reply to Jeroen Roovers from comment #8)
> (In reply to Rafał Mużyło from comment #7)
> > ltmain.sh:
> > VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
> > 
> > See bug 473354 and bug 367975 for a likely duplicates.
> 
> Where did that come from?

Straight from wireshark-1.10.1 tarball.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-04 13:33:32 UTC
(In reply to Rafał Mużyło from comment #9)
> (In reply to Jeroen Roovers from comment #8)
> > (In reply to Rafał Mużyło from comment #7)
> > > ltmain.sh:
> > > VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
> > > 
> > > See bug 473354 and bug 367975 for a likely duplicates.
> > 
> > Where did that come from?
> 
> Straight from wireshark-1.10.1 tarball.

eautoreconf always runs elibtoolize so you need to look at it after src_prepare()
Comment 11 Rafał Mużyło 2013-08-04 14:15:25 UTC
(In reply to Jeroen Roovers from comment #10)
> (In reply to Rafał Mużyło from comment #9)
> > (In reply to Jeroen Roovers from comment #8)
> > > Where did that come from?
> > 
> > Straight from wireshark-1.10.1 tarball.
> 
> eautoreconf always runs elibtoolize so you need to look at it after
> src_prepare()

elibtoolize adds a couple of patches, but only full eautoreconf overwrites ltmain.sh. Or did you mean _elibtolize ?

...

Anyway, OK, I didn't look at the ebuild. It's already been running eautoreconf, so it's a different problem.
Lack of a build log of the broken build shows.
Comment 12 Alex Efros 2013-08-04 15:08:45 UTC
Created attachment 355112 [details]
log of broken build (first one)
Comment 13 Alex Efros 2013-08-04 15:09:23 UTC
Created attachment 355114 [details]
log of successful build (second one)
Comment 14 Rafał Mużyło 2013-08-04 16:39:47 UTC
(In reply to Alex Efros from comment #12)
> Created attachment 355112 [details]
> log of broken build (first one)

Lets try the other standard case then.
In epan/Makefile.am in libwireshark_la_LIBADD try shuffling system libs (all @foo@ vars, it seems) past la file references (it seems just putting ${top_builddir}/wiretap/libwiretap.la and ${top_builddir}/wsutil/libwsutil.la before @SOCKET_LIBS@ should suffice). The theory is that it's '-L/usr/lib64' between -lgcrypt and -lgpg-error that causes the problem.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-04 16:43:16 UTC
(In reply to Rafał Mużyło from comment #14)
> The theory is that it's '-L/usr/lib64' between -lgcrypt and -lgpg-error that
> causes the problem.

Exactly. In practice, however, I can't seem to reproduce the issue so far, so it's hard to debug.
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-07 15:13:07 UTC
Created attachment 355336 [details, diff]
wireshark-1.10.1-oldlibs.patch

Does this help?
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-14 15:45:40 UTC
(In reply to Jeroen Roovers from comment #16)
> Created attachment 355336 [details, diff] [details, diff]
> wireshark-1.10.1-oldlibs.patch
> 
> Does this help?

I have committed this. Please reopen this bug report if you still hit the problem.