Ethereal-users: Re: [Ethereal-users] Problem compiling ethereal 0.10.0a

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 28 Jan 2004 23:04:24 -0800
On Thu, Jan 29, 2004 at 05:12:59AM +0100, Pierre wrote:

	...

> gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -Wcast-qual 
> -Wcast-align -s -O3 -march=i686 -I/usr/local/include -pthread 
> -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
> -I/usr/local/include/atk-1.0 -I/usr/local/include -I/usr/X11R6/include 
> -I/usr/local/include/pango-1.0 -I/usr/local/include/freetype2 
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O3 
> -march=i686 -Dlinux -o ethereal packet-aarp.o packet-acap.o packet-afp.o 
> packet-afs.o packet-aim.o packet-ajp13.o packet-alcap.o packet-ans.o 

	...

> timestats.o util.o xdlc.o xmlstub.o register.o capture.o file.o 
> filters.o proto_hier_stats.o summary.o .libs/etherealS.o 
> -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L/usr/local/lib 
> -L/usr/local/ssl/lib wiretap/libwiretap.a gtk/libui.a epan/libethereal.a 
> epan/ftypes/libftypes.a epan/dfilter/libdfilter.a -lcrypto 
> /usr/local/lib/libpcre.so -lpcap -L/usr/X11R6/lib 
> /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so 
> /usr/local/lib/libatk-1.0.so -L/usr/local/BerkeleyDB.4.1/lib 
> /usr/local/lib/libgdk_pixbuf-2.0.so -lm /usr/local/lib/libXcursor.so 
> /usr/local/lib/libpangoxft-1.0.so /usr/local/lib/libpangox-1.0.so 
> /usr/local/lib/libXrender.so -lgpm -lX11 /usr/local/lib/libpango-1.0.so 
> /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl 
> /usr/local/lib/libgthread-2.0.so -lpthread /usr/local/lib/libglib-2.0.so 
> -ladns -lz -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
> packet-cops.o(.text+0x19fa): In function `decode_cops_pr_asn1_data':
> : undefined reference to `tree_head'
> packet-cops.o(.text+0x1a28): In function `decode_cops_pr_asn1_data':
> : undefined reference to `get_tree'
> packet-cops.o(.text+0x1ab0): In function `decode_cops_pr_asn1_data':
> : undefined reference to `sprint_realloc_by_type'

It's not linking with "-lsnmp", so part of the configuration thinks
there's no SNMP library, but "packet-cops.c" was configured to use an
SNMP library.

Do "make distclean", re-run the configure script (saving the output to a
file), and try the make again.  If that doesn't work, send us the
output of the configure script and the "config.log" file.