ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Linking with archive libraries in hp-ux

From: Sakeeb S <sakeeb@xxxxxxxxx>
Date: Fri, 22 Sep 2006 04:53:54 +0100 (BST)
Hi All,

I am new to this mailing list.

I am trying to build wireshark (0.99.3) on hp-ux (Itanium m/c). I want
wireshark to link with archive libraries rather than shared libraries. So
I have following option while configuring.

export LD_LIBRARY_PATH=/usr/local/lib/hpux32
export LDFLAGS="-Wl,+nodefaultrpath -Wl,-a,archive_shared
-L/usr/local/lib/hpux32"

./configure --prefix=/usr/local/wireshark  --enable-threads \
  --disable-dependency-tracking --with-zlib=/usr/local \
  --with-pcap=/opt/iexpress/libpcap --with-pcre=/usr/local \
  --with-adns=/usr/local/adns --enable-wireshark  \
  --with-libiconv=/usr/local --without-net-snmp \
  --without-ucd-snmp --enable-ipv6 --enable-randpkt --enable-dftest \
  --enable-threads --with-ssl=/opt/openssl \
  --with-glib-prefix=/usr/local --disable-gtk2 --with-plugins=no 

Also in /usr/local/bin/glib-config, i did the following changes
$diff /usr/local/bin/glib-config /usr/local/bin/glib-config.bk
97c97
<               libsp="$libsp -l:libglib.a"
---
>               libsp="$libsp -lglib"
104c104
<               libsp=" -l:libgmodule.a $libsp"
---
>               libsp=" -lgmodule $libsp"

During build, its showing lot of messages which shows its linking with
archive libs, but the final wireshark binary is linked with shared
libraries.

I tried with --enable-static switch in configure also, but didn't get the
the expected result.

$ chatr /usr/local/wireshark/bin/wireshark
/usr/local/wireshark/bin/wireshark:
         32-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  /usr/local/wireshark/lib
         shared library list:
             libwiretap.so.0
             libwireshark.so.0
             /usr/local/lib/hpux32/libgtk.so
             /usr/local/lib/hpux32/libgdk.so
             /usr/local/lib/hpux32/libgmodule.so
             /usr/local/lib/hpux32/libglib.so
             libXext.so.1
             libX11.so.1
             /usr/local/lib/hpux32/libiconv.so
             /usr/local/lib/hpux32/libpcre.so
             libc.so.1
         shared library binding:
             deferred
         global hash table disabled
         global hash table size 1103
         shared library mapped private disabled
         shared library segment merging disabled
         shared vtable support disabled
         explicit unloading disabled
         segments:
             index type     address      flags size
                 7 text     04000000     z---c-    D (default)
                 8 data     40000000     ---m--    D (default)
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
         nulptr references enabled
         address space model: default
         caliper dynamic instrumentation disabled

Has anyone tried to link wireshark with archive libraries?....

Your help will be really apreciated.

Thanks in advance
Sakeeb


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/