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

Wireshark-users: [Wireshark-users] Unsatisfied Symbols while building wireshark

From: "ravindra Chavalam" <ravindra1103@xxxxxxxxx>
Date: Fri, 11 Jul 2008 14:09:47 +0530
Hi,

     When i try to build wireshark on HPUX 11.23PA  i am getting the following errors Can any body help me regarding this.

creating .libs/wiresharkS.c
(cd .libs && gcc -static-libgcc   -mpa-risc-2-0 -fPIC -c -fno-builtin  -fPIC -DPIC "wiresharkS.c")
rm -f .libs/wiresharkS.c .libs/wireshark.nm .libs/wireshark.nmS .libs/wireshark.nmT
libtool: link: warning: this platform does not like uninstalled shared libraries
libtool: link: `wireshark' will be relinked during installation
gcc -static-libgcc "-D_U_=__attribute__((unused))
" -mpa-risc-2-0 -fPIC -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/include/X11R6 -I/opt/iexpress/libpcap/include -I/opt/iexpress/include -o .libs/wireshark capture-pcap-util-unix.o capture_errs.o capture-pcap-util.o capture_ui_utils.o cfile.o clopts_common.o disabled_protos.o packet-range.o print.o ps.o sync_pipe_write.o timestats.o util.o tap-rtp-common.o version_info.o airpcap_loader.o alert_box.o capture.o capture_info.o capture_opts.o capture_sync.o color_filters.o file.o fileset.o filters.o g711.o merge.o proto_hier_stats.o summary.o tempfile.o .libs/wiresharkS.o -Wl,-E  -L/opt/iexpress/libpcap/lib/ -L/usr/local/lib -L/usr/lib -L/usr/lib/X11R5/ -L/opt/iexpress/libpcap/lib -L/opt/openssl/lib gtk/libui.a codecs/libcodec.a wiretap/.libs/libwiretap.sl -L/opt/iexpress/lib epan/.libs/libwireshark.sl -lcrypto /usr/local/lib/libpcre.a -lpcap /usr/local/lib/libgtk.a -lgdk -lgmodule -lglib /usr/local/lib/libintl.a -lXext -lX11 -lm /usr/local/lib/libgcrypt.a -l:libgpg-error.a -lnsl /usr/local/lib/libgpg-error.a /usr/local/lib/libiconv.a -lz  -Wl,+b -Wl,/home/jaipal/ixpress/PHASE11/32bit/wireshark/wireshark-1.0.1/wiretap/.libs:/home/jaipal/ixpress/PHASE11/32bit/wireshark/wireshark-1.0.1/epan/.libs:/opt/iexpress/wireshark/lib
/usr/ccs/bin/ld: Unsatisfied symbols:
   protect_thread_critical_region (first referenced in gtk/libui.a(rtp_analysis.o)) (data)
   unprotect_thread_critical_region (first referenced in gtk/libui.a(rtp_analysis.o)) (data


These are the configuration options and flags  that i have used


export PATH=/usr/local/bin:$PATH
export CC="gcc -static-libgcc "
export CFLAGS="-mpa-risc-2-0 -fPIC"
export CPPFLAGS="-I/opt/adns/include -I/opt/iexpress/zlib/include -I/opt/iexpress/libpcap/include/ -I/usr/local/include"
export LDFLAGS="-L/opt/iexpress/libpcap/lib/ -L/usr/local/lib -L/usr/lib -L/usr/lib/X11R5/"
./configure --prefix=/opt/iexpress/wireshark \
            --with-ssl=/opt/openssl \
            --with-zlib=/opt/iexpress \
            --with-pcap=/opt/iexpress/libpcap \
            --with-pcre \
            --with-adns=/opt/adns \
            --enable-shared \
            --enable-wireshark \
            --with-libiconv \
            --without-net-snmp \
            --without-ucd-snmp \
            --enable-ipv6 \
            --enable-randpkt \
            --enable-dftest \
            --enable-threads \
            --with-plugins \
            --with-glib-prefix=/usr/local \
            --disable-gtk2
I am using 4.2.1 version gcc
Thanks in advance.

Thanks & Regards,
Ravindranath