Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211324 - net-analyzer/wireshark links to net-libs/libsmi if found, which isn't in *DEPEND
Summary: net-analyzer/wireshark links to net-libs/libsmi if found, which isn't in *DEPEND
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 00:39 UTC by Fabio Erculiani
Modified: 2008-03-18 18:22 UTC (History)
3 users (show)

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


Attachments
patch for wireshark-0.99.8_rc1.ebuild (wireshark.patch,863 bytes, patch)
2008-03-13 01:06 UTC, Petteri Räty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani 2008-02-25 00:39:44 UTC
wireshark plugins link against /usr/lib64/libsmi.so.2 IF found, which belongs to net-libs/libsmi even if it's not in the wireshark's RDEPEND list.
This is something that should be solved, by avoiding the linking or adding libsmi to RDEPEND.

This is the ldd output:
server x86_64 # ldd /usr/lib64/wireshark/plugins/0.99.8pre1/rlm.so
        linux-vdso.so.1 =>  (0x00007fff633fd000)
        libwireshark.so.0 => /usr/lib/libwireshark.so.0 (0x00002acf47976000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00002acf4a02c000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002acf4a231000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00002acf4a435000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002acf4a6e8000)
        libc.so.6 => /lib/libc.so.6 (0x00002acf4a904000)
        libpcre.so.0 => /usr/lib64/libpcre.so.0 (0x00002acf4ac45000)
        libwiretap.so.0 => /usr/lib64/libwiretap.so.0 (0x00002acf4ae66000)
        libgnutls.so.13 => /usr/lib64/libgnutls.so.13 (0x00002acf4b0b4000)
        libtasn1.so.3 => /usr/lib64/libtasn1.so.3 (0x00002acf4b330000)
        libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00002acf4b53e000)
        libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00002acf4b79e000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002acf4b9a2000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002acf4bc1c000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00002acf4be40000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00002acf4c043000)
        libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00002acf4c256000)
        libsmi.so.2 => /usr/lib64/libsmi.so.2 (0x00002acf4c5bc000)
        libm.so.6 => /lib/libm.so.6 (0x00002acf4c80f000)
        libz.so.1 => /lib/libz.so.1 (0x00002acf4ca8e000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00002acf4cca2000)

have fun :)

Reproducible: Always

Steps to Reproduce:
1. install net-libs/libsmi
2. recompile net-analyzer/wireshark
3. do a ldd on /usr/lib64/wireshark/plugins/0.99.8pre1/rlm.so
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 07:45:02 UTC
Please, use something like `readelf -d foo | grep NEEDED` in future; ldd output is not useful for similar things.
Comment 2 Fabio Erculiani 2008-02-25 09:14:07 UTC
I'm sorry. Here you are.

sabayon sabayon x86_64 # readelf -d /usr/lib/libwireshark.so.0 | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpcre.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libwiretap.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgmodule-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgnutls.so.13]
 0x0000000000000001 (NEEDED)             Shared library: [libtasn1.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libgcrypt.so.11]
 0x0000000000000001 (NEEDED)             Shared library: [libgpg-error.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libkrb5.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libk5crypto.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libcom_err.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libresolv.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypto.so.0.9.8]
 0x0000000000000001 (NEEDED)             Shared library: [libsmi.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-03-13 01:06:06 UTC
Created attachment 145965 [details, diff]
patch for wireshark-0.99.8_rc1.ebuild
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2008-03-13 01:08:18 UTC
(In reply to comment #3)
> Created an attachment (id=145965) [edit]
> patch for wireshark-0.99.8_rc1.ebuild
> 

Missing IUSE, but you get the point.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-03-13 08:28:01 UTC
Petteri, yup, thank you for help. It's already fixed in my overlay together with some other things. The two issues remain are:
1. do we need openssl dependency (asked in dev mailing list but no answer yet)
2. libpcap dependency could be optional and from configure it seems that it's used for some remote things... but what they are?

As soon as I manage to understand this I'll do the bump... In any case ppc64 is slacking on bug 212075 :)
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-03-16 20:01:08 UTC
Fixed in wireshark-0.99.8. There many other changes, so test it and report if anything went wrong... 

Thank you Fabio for report. It stimulates me to review wireshark ebuild another time and sync many ./configure changes with our ebuild... Enjoy! :)
Comment 7 Fabio Erculiani 2008-03-18 18:22:58 UTC
Thanks a lot!