Ethereal-dev: [Ethereal-dev] Gtk2 build fails for static builds

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Pia Sahlberg" <piabar@xxxxxxxxxxx>
Date: Mon, 29 Mar 2004 17:22:53 +0000
This happens when i try to build a static version of ethereal with gtk2


make[2]: Entering directory `/home/sahlberg/ethereal'
/bin/sh ./libtool --mode=link gcc -DINET6 -D_U_="__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pcap -I/usr/heimdal/include -L/usr/local/lib -L/usr/local/lib -o ethereal -Wl,-static -all-static pcap-util-unix.o capture_stop_conditions.o cfile.o conditions.o disabled_protos.o pcap-util.o print.o ps.o range.o ringbuffer.o timestats.o version_info.o alert_box.o capture.o file.o filters.o proto_hier_stats.o summary.o wiretap/libwiretap.la gtk/libui.a epan/libethereal.la -lcrypto -lpcap -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpangoxft-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lpthread -lglib-2.0 -lz -L/usr/heimdal/lib -lkrb5 -lasn1 -ldes -lroken -lcrypt -lresolv gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pcap -I/usr/heimdal/include -o ethereal -Wl,-static -static pcap-util-unix.o capture_stop_conditions.o cfile.o conditions.o disabled_protos.o pcap-util.o print.o ps.o range.o ringbuffer.o timestats.o version_info.o alert_box.o capture.o file.o filters.o proto_hier_stats.o summary.o -L/usr/local/lib wiretap/.libs/libwiretap.a gtk/libui.a epan/.libs/libethereal.a -L/usr/heimdal/lib -lcrypto -lpcap -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpangoxft-1.0 -lpango-1.0 /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -lz /usr/heimdal/lib/libkrb5.a /usr/heimdal/lib/libasn1.a /usr/heimdal/lib/libcom_err.a /usr/heimdal/lib/libdes.a /usr/heimdal/lib/libroken.a -ldb -lcrypt -lresolv
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/home/sahlberg/ethereal'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sahlberg/ethereal'
make: *** [all] Error 2
[sahlberg@Derek ethereal]$ uname -a
Linux Derek 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
[sahlberg@Derek ethereal]$ ./configure --with-krb5 --without-plugins --enable-static --disable-shared --enable-gtk2


Why would I want to build a static version of ethereal?
I want to do so so that I can generate one single standalone executable which I can then mail or FTP to other people for them to use instead of the previous released version which might not have urgent or current bugfixes from cvs.
These people might now want to recompile ethereal themself.

I also do not want to do a make install because I want to run these versions of ethereal from a local directory without poisoning the real version of ethereal which is also installed on the machines.
This was very simple to do before but is difficult now.

_________________________________________________________________
What's your house worth? Click here to find out: http://www.ninemsn.realestate.com.au