Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13851 - Wireshark should depends on libsamplerate

Attached to Project: Arch Linux
Opened by Martin Peres (MuPuF) - Wednesday, 18 March 2009, 14:04 GMT
Last edited by Hugo Doria (hdoria) - Friday, 20 March 2009, 00:17 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Trying to launch wireshark, I got this error :

$ wireshark
wireshark: error while loading shared libraries: libsamplerate.so.0: cannot open shared object file: No such file or directory

I just had to install libsamplerate and it ran OK.

Additional info:
* package version(s) : wireshark 1.0.6-2


Steps to reproduce:
Install wireshark without having libsamplerate and try to launch it
This task depends upon

Closed by  Hugo Doria (hdoria)
Friday, 20 March 2009, 00:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed on wireshark 1.0.6-3
Comment by Jan de Groot (JGC) - Wednesday, 18 March 2009, 15:13 GMT
Hugo, I see you fixed http://bugs.archlinux.org/task/13195 by adding adns and portaudio dependencies. In the meanwhile, this package has become a dependency also.

Please remove adns and portaudio dependencies (these are community packages!) and build this package in a clean chroot instead of your own system. Adding random dependencies which happened to be on your system at build time is not the way to fix bugs like these. Also, run namcap before uploading next time.
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 15:17 GMT
Hi Jan,

I am building in a clean chroot env. And i always run namcap. I dont know what caused this.

Anyway,

I will move adns and portaudio to extra, since wireshark depends on it. I will add libsamplerate to the depends array.
Comment by Jan de Groot (JGC) - Wednesday, 18 March 2009, 15:25 GMT
Are these hard dependencies, or just because they happened to be installed somewhere? Remember that linking by accident to these packages does not mean they're dependencies. If they're not needed, leave them in community and be sure to not compile them in.
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 15:31 GMT
They are needed on x86_64. On my i686 install they were not needed. Wireshark runs fine.

I do not have a x86_64 machine (someone built wireshark for that arch), but every x86_64 user that i know was complaining about these dependencies.
Comment by Jan de Groot (JGC) - Wednesday, 18 March 2009, 15:37 GMT
The fact that someone else linked it in with an unclean chroot doesn't mean they're needed on that architecture. It means that the packager that uploaded it needs to change his build/development process.

About adns and portaudio:
- portaudio is required for RTSP playback
- adns is required for asynchronous nameresolving, which is very useful when real-time name resolving is turned on

These dependencies are useful and are enabled by default when available. The wireshark win32 builds include at least portaudio, don't know about ADNS.

I think the libsamplerate dependency is coming from a bad portaudio package, on x86_64 there's no single reference to libsamplerate in the wireshark binary.
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 15:44 GMT
I am building wireshark again now. I can confirm that portaudio and adns are not required on a i686 install. Can you try to compile and run wireshark without them on a x86_64 install?

I will check this libsamplerate problem too.
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 17:20 GMT
Wireshark runs fine without libsamplerate on my i686 box.

Jan, can you confirm this works on x86_64?
Comment by Martin Peres (MuPuF) - Wednesday, 18 March 2009, 17:32 GMT
Hi

I really thank you for being that responsive with requests ! It is an interesting thread :)
I'll try to help on saturday.

Bye
Comment by Eric Belanger (Snowman) - Wednesday, 18 March 2009, 20:45 GMT
Hugo: I've also assigned this bug to Giovanni. He's the one who builds x86_64 packages for i686-only devs lately.
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 20:49 GMT
Thanks, Eric.

Giovanni,

Can you build wireshark for x86_64 in a clean chroot and check if adns, portaudio and libsamplerate are needed?

Wireshark does *not* need them on a i686 install.
Comment by Anonymous Submitter - Wednesday, 18 March 2009, 21:31 GMT
Wireshark runs fine without libsamplerate on my x86-64 box.
What should I do?
Comment by Hugo Doria (hdoria) - Wednesday, 18 March 2009, 21:42 GMT
Giovanni,

Please, try to build wireshark in a clean chroot:

http://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot

This way you can check the correct dependencies. I dont think wireshark x86_64 needs adns, portaudio and libsamplerate.

Let me know if you need help with something.
Comment by Anonymous Submitter - Wednesday, 18 March 2009, 22:07 GMT
I rebuilt wireshark for x86_64 in a clean chroot.
I can confirm wireshark does not need adns, portaudio and libsamplerate on a x86-64 install.
Comment by Hugo Doria (hdoria) - Thursday, 19 March 2009, 12:11 GMT
I just rebuilt wireshark. Now there is a wireshark 1.0.6-3 without adns, portaudio and libsamplerate. It is working fine on a i686 box.

Giovanni,

Can you, please, build wireshark 1.0.6-3 for x86_64 on a clean chroot? So we can close this.
Comment by Anonymous Submitter - Thursday, 19 March 2009, 15:56 GMT
Done!

Loading...