Wireshark-users: [Wireshark-users] Unable to compile static build of TShark on Fedora 7
From: "Barry Gould" <mailinglists@xxxxxxxxxxxxxxxxx>
Date: Mon, 3 Sep 2007 16:07:50 -0700 (PDT)
Hi, with WireShark 0.99.6, I am having trouble building TShark statically.

If I do this:
./configure --enable-static --disable-wireshark
make

I get an error about -lgmodule

However, I seem to have the appropriate libraries installed:
$ locate gmodule
/lib/libgmodule-2.0.so.0
/lib/libgmodule-2.0.so.0.1200.13
/usr/include/glib-1.2/gmodule.h
/usr/include/glib-2.0/gmodule.h
/usr/lib/libgmodule-1.2.so.0
/usr/lib/libgmodule-1.2.so.0.0.10
/usr/lib/libgmodule-2.0.so
/usr/lib/libgmodule.so
/usr/lib/pkgconfig/gmodule-2.0.pc
/usr/lib/pkgconfig/gmodule-export-2.0.pc
/usr/lib/pkgconfig/gmodule-no-export-2.0.pc
/usr/lib/pkgconfig/gmodule.pc
/usr/lib/python2.5/lib-dynload/rgbimgmodule.so
/usr/lib/python2.5/lib-dynload/timingmodule.so
/usr/lib/python2.5/site-packages/ixf86configmodule.so
[barry@brwebn13 wireshark-0.99.6]$ rpm -q --whatprovides /usr/lib/libgmodule*
glib-1.2.10-26.fc7
glib-1.2.10-26.fc7
glib2-devel-2.12.13-1.fc7
glib-devel-1.2.10-26.fc7


If I do this:
 ./configure --enable-static --disable-wireshark --without-krb5
--without-ssl --disable-text2pcap --enable-dftest=no --enable-randpct=no
--enable-ipv6=no --enable-threads=no --without-portaudio --disable-gtk2
--without-lua --enable-dftest=no --enable-static=yes --with-net-snmp=no
--with-ucd-snmp=no --without-adns --disable-gtkplus --disable-gmodule
--disable-glib --disable-shared --disable-dependency-tracking
or
 ./configure --enable-static --disable-wireshark --without-krb5
--without-ssl --disable-text2pcap --enable-dftest=no --enable-randpct=no
--enable-ipv6=no --enable-threads=no --without-portaudio --disable-gtk2
--without-lua --enable-dftest=no --enable-static=yes --with-net-snmp=no
--with-ucd-snmp=no --without-adns --disable-gtkplus --disable-gmodule
--disable-glib --disable-shared --disable-dependency-tracking
--disable-krb5

I get
/usr/bin/ld: cannot find -lkrb5

even though:
$ rpm -qa|grep krb5
krb5-devel-1.6.1-2.1.fc7
krb5-libs-1.6.1-2.1.fc7
krb5-auth-dialog-0.7-2


How can I do a static compile of TShark?

I've also tried on Fedora 6 and RHEL4, btw.

Thanks,
Barry