Wireshark-users: Re: [Wireshark-users] Unable to compile static build of TShark on Fedora 7
At 05:45 PM 9/4/2007, Guy Harris wrote:
If so, you will have to configure with --without-plugins.
OK, I tried
./configure --enable-wireshark=no --enable-static=yes --without-plugins
and still got a -lgmodule-2.0 error
so I tried
./configure --enable-wireshark=no --enable-static=yes
--without-plugins --disable-gmodule
and still got a -lgmodule-2.0 error
and if I do this:
$ ./configure --enable-wireshark=no --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-shared --disable-dependency-tracking --without-plugins
I get some other errors (below)
The Wireshark package has been configured with the following options.
Build wireshark : no
Build tshark : yes
Build capinfos : yes
Build editcap : yes
Build dumpcap : yes
Build mergecap : yes
Build text2pcap : no
Build idl2wrs : yes
Build randpkt : yes
Build dftest : no
Install setuid : no
Use plugins : no
Build lua plugin : no
Build rtp_player : no
Use GTK+ v2 library : no
Use pcap library : yes
Use zlib library : yes
Use pcre library : no
Use kerberos library : no
Use GNU ADNS library : no
Use GNU crypto library : no
Use SSL crypto library : no
Use IPv6 name resolution : no
Use Net-SNMP library : no
Use gnutls library : no
$ make -j2
...
make[3]: Entering directory `/usr/src/wireshark-0.99.6/wiretap'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/local/include -I/usr/local/include -Werror
-D_U_="__attribute__((unused))" -g -O2 -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes
-Wmissing-declarations -Wno-pointer-sign -Wcast-align
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include
-I/usr/local/include -c -o libwiretap_la-erf.lo `test -f 'erf.c' || echo
'./'`erf.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include
-Werror "-D_U_=__attribute__((unused))" -g -O2 -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes
-Wmissing-declarations -Wno-pointer-sign -Wcast-align
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include
-I/usr/local/include -c erf.c -o libwiretap_la-erf.o
cc1: warnings being treated as errors
erf.c: In function 'erf_open':
erf.c:152: warning: const qualifier ignored on asm
erf.c:211: warning: const qualifier ignored on asm
erf.c:215: warning: const qualifier ignored on asm
erf.c: In function 'erf_read_header':
erf.c:364: warning: const qualifier ignored on asm
erf.c:408: warning: const qualifier ignored on asm
erf.c:443: warning: const qualifier ignored on asm
erf.c:458: warning: const qualifier ignored on asm
erf.c:458: warning: const qualifier ignored on asm
erf.c:458: warning: const qualifier ignored on asm
erf.c:458: warning: const qualifier ignored on asm
erf.c:459: warning: const qualifier ignored on asm
erf.c:468: warning: const qualifier ignored on asm
erf.c:468: warning: const qualifier ignored on asm
erf.c:468: warning: const qualifier ignored on asm
erf.c:468: warning: const qualifier ignored on asm
erf.c:469: warning: const qualifier ignored on asm
erf.c:478: warning: const qualifier ignored on asm
erf.c:478: warning: const qualifier ignored on asm
erf.c:478: warning: const qualifier ignored on asm
erf.c:478: warning: const qualifier ignored on asm
erf.c:479: warning: const qualifier ignored on asm
make[3]: *** [libwiretap_la-erf.lo] Error 1
make[3]: Leaving directory `/usr/src/wireshark-0.99.6/wiretap'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/wireshark-0.99.6/wiretap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/wireshark-0.99.6'
make: *** [all] Error 2
Thanks,
Barry