tcpreplay, package broken

Bug #114878 reported by Alexandre Hudon
4
Affects Status Importance Assigned to Milestone
tcpreplay (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: tcpreplay

Ubuntu Release: Feisty
arch : amd64
package: tcpreplay (2.99+3.0.beta11-3) [universe]

Accroding to the package depedency, this package need the package libopts25. But when we install both package, and we check the shared library dependencies of usr/bin/tcpreplay, one of them (libopts.so.25) was not found...

After a little investigation, I found that the package libopts25 provide the /usr/lib/libopts.so.24:

root@Ubuntu:~# dpkg -l libopts25
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii libopts25 5.8.8-1 automated option processing library based on autogen - runtime
root@Ubuntu:~# dpkg -L libopts25
/.
/usr
/usr/lib
/usr/lib/libopts.so.24.3.5
/usr/lib/libguileopts.so.0.0.1
/usr/share
/usr/share/doc
/usr/share/doc/libopts25
/usr/share/doc/libopts25/copyright
/usr/share/doc/libopts25/changelog.gz
/usr/share/doc/libopts25/changelog.Debian.gz
/usr/lib/libopts.so.24
/usr/lib/libguileopts.so.0

To have tcpreplay working, I download the source, get the dependency of the package and then build the package directly from the source.
apt-get source tcpreplay
apt-get build-dep tcpreplay
./configure
make
make install

Then tcpreplay was working:
# ldd /usr/local/bin/tcpreplay
        libopts.so.24 => /usr/lib/libopts.so.24 (0x00002aeaaaeab000)
        libm.so.6 => /lib/libm.so.6 (0x00002aeaab0bc000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002aeaab33e000)
        librt.so.1 => /lib/librt.so.1 (0x00002aeaab542000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00002aeaab74c000)
        libc.so.6 => /lib/libc.so.6 (0x00002aeaab964000)
        /lib64/ld-linux-x86-64.so.2 (0x00002aeaaac8e000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002aeaabcb5000)

By the way, can we contribute by rebuilding the package and fix the bug by ourself?

Thanks,

Alexandre Hudon

Revision history for this message
Dave Thiede (davidrthiede) wrote :

I also ran into this on 7.04/amd64 and also 7.04/i386. Also the build or at least labelling of the libopt package is in error. A simple solution for me was to create an additional symbolic link from libopts.so.24 -> libopts.so.25

Revision history for this message
Alessandro Tanasi (jekil) wrote :

I can confirm.
i patch placing a link to ibopts.so.24

Changed in tcpreplay:
status: Unconfirmed → Confirmed
Revision history for this message
sebek (sebeeek) wrote :

I confirm the bug :
$ tcpreplay
tcpreplay: error while loading shared libraries: libopts.so.25: cannot open shared object file: No such file or directory

and the fix :
$ sudo ln -s /usr/lib/libopts.so.24.3.5 /usr/lib/libopts.so.25

Changed in tcpreplay:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.