Wireshark-dev: [Wireshark-dev] Packaging of 1.12.0rc2 under OS X not working
From: Andreas Fink <afink@xxxxxxxxxxxxx>
Date: Sat, 14 Jun 2014 11:29:21 +0200
The package of 1.12.0rc2 is not workign at all.
It seems to be that the developer building it is referencing the wrong library locations:

dyld: Library not loaded: @rpath/libfiletap.0.dylib
  Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin
  Reason: image not found
Trace/BPT trap: 5

The libraries might be found on the developer system under /Library/Frameworks while this is not the case on my system.

I fixed it this way for the wireshark-bin:

cd /Appplications/Wireshark.app/Contents/Resources/bin
install_name_tool -change  @rpath/libfiletap.0.dylib @executable_path/../../Frameworks/libfiletap.0.dylib wireshark-bin 
install_name_tool -change  @rpath/libwiretap.4.dylib @executable_path/../../Frameworks/libwiretap.4.dylib wireshark-bin 
install_name_tool -change  @rpath/libwireshark.5.dylib @executable_path/../../Frameworks/libwireshark.5.dylib wireshark-bin 
install_name_tool -change  @rpath/libGeoIP.1.dylib @executable_path/../../Frameworks/libGeoIP.1.dylib wireshark-bin 
install_name_tool -change  @rpath/libwsutil.4.dylib @executable_path/../../Frameworks/libwsutil.4.dylib wireshark-bin 
install_name_tool -change  @rpath/libgnutls.26.dylib  @executable_path/../../Frameworks/libgnutls.26.dylib  wireshark-bin
install_name_tool -change  @rpath/libgcrypt.11.dylib  @executable_path/../../Frameworks/libgcrypt.11.dylib  wireshark-bin
install_name_tool -change  @rpath/libgpg-error.0.dylib  @executable_path/../../Frameworks/libgpg-error.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libsmi.2.dylib  @executable_path/../../Frameworks/libsmi.2.dylib  wireshark-bin
install_name_tool -change  @rpath/libportaudio.2.dylib  @executable_path/../../Frameworks/libportaudio.2.dylib  wireshark-bin
install_name_tool -change  @rpath/libgthread-2.0.0.dylib  @executable_path/../../Frameworks/libgthread-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgtk-x11-2.0.0.dylib  @executable_path/../../Frameworks/libgtk-x11-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgdk-x11-2.0.0.dylib  @executable_path/../../Frameworks/libgdk-x11-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libpangocairo-1.0.0.dylib  @executable_path/../../Frameworks/libpangocairo-1.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libatk-1.0.0.dylib  @executable_path/../../Frameworks/libatk-1.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgdk_pixbuf-2.0.0.dylib  @executable_path/../../Frameworks/libgdk_pixbuf-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgio-2.0.0.dylib  @executable_path/../../Frameworks/libgio-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libpangoft2-1.0.0.dylib  @executable_path/../../Frameworks/libpangoft2-1.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libpango-1.0.0.dylib  @executable_path/../../Frameworks/libpango-1.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgmodule-2.0.0.dylib  @executable_path/../../Frameworks/libgmodule-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libgobject-2.0.0.dylib  @executable_path/../../Frameworks/libgobject-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libglib-2.0.0.dylib  @executable_path/../../Frameworks/libglib-2.0.0.dylib  wireshark-bin
install_name_tool -change  @rpath/libintl.8.dylib  @executable_path/../../Frameworks/libintl.8.dylib  wireshark-bin

but now the libraries reference other libraries the same way and @rpath points again to something.
And this would have to be done for every tool.

Maybe just setting @rpath correctly would fix all this but I have not found exactly on how to do this yet.
Fact is the package as delivered today on the webpage doesn't work  at all.



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail