Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 9989] New: [cmake] rpath in run/wireshark includes /lib64

Date: Mon, 14 Apr 2014 15:12:54 +0000
Bug ID 9989
Summary [cmake] rpath in run/wireshark includes /lib64 before $builddir/run
Classification Unclassified
Product Wireshark
Version Git
Hardware x86-64
OS All
Status UNCONFIRMED
Severity Major
Priority Low
Component Wireshark
Assignee [email protected]
Reporter [email protected]

Build Information:
v1.11.3-rc1-2365-gc687697 on Arch Linux x86_64 with cmake 2.8.12.2-2
--
With sources in /tmp/wireshark and PWD=/tmp/wsbuild, I build wireshark as
follows:

cmake -DCMAKE_INSTALL_PREFIX=/tmp/wsroot -DENABLE_GTK3=0 -DENABLE_PORTAUDIO=0
-DENABLE_QT5=0 -DENABLE_GEOIP=0 -DENABLE_KERBEROS=0 -DENABLE_SMI=0
-DCMAKE_BUILD_TYPE=Debug /tmp/wireshark -DCMAKE_C_FLAGS='-fsanitize=address'
-DCMAKE_CXX_FLAGS='-fsanitize=address'

make -j16

The GUI Wireshark binary loads libraries outside /run/, this was observed
because changes to the sources did not show any differences:

$ ldd /tmp/wsbuild/run/wireshark | grep wsutil
        libwsutil.so.0 => /lib64/libwsutil.so.0 (0x00007f298aa2b000)
$ ldd /tmp/wsbuild/run/tshark | grep wsutil
        libwsutil.so.0 => /tmp/wsbuild/run/libwsutil.so.0 (0x00007f5ceeb45000)

It turns out that the rpath is wrong for wireshark:
$ chrpath /tmp/wsbuild/run/{wireshark,tshark} | sed 's,/tmp/wsbuild,X,g'
X/run/wireshark:
RPATH=X/ui:X/ui/gtk:X/ui/qt:X/codecs:X/epan:X/filetap:X/wiretap:X/wsutil:/lib64:X/run:
X/run/tshark:
RPATH=X/ui:X/ui/gtk:X/ui/qt:X/codecs:X/epan:X/filetap:X/wiretap:X/wsutil:X/run:/lib64:

Further details:
Distro: Arch Linux x86_64
/lib and /lib64 are symlinks to /usr/lib


You are receiving this mail because:
  • You are watching all bug changes.