Ethereal-users: [Ethereal-users] Make error with 0.9.16

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

From: "McNutt, Justin M." <McNuttJ@xxxxxxxxxxxx>
Date: Tue, 4 Nov 2003 14:04:15 -0600
creating .libs/etherealS.c
(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "etherealS.c")
rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT
gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/rpm -DINET6 -O2 -march=i386 -mcpu=i686 -Dlinux -I/usr/include/rpm -I. -I/usr/include/net-snmp -o ethereal packet-aarp.o packet-acap.o packet-afp.o packet-[snip]
xmlstub.o register.o capture.o file.o filters.o proto_hier_stats.o summary.o .libs/etherealS.o -rdynamic -Wl,--export-dynamic  -L/usr/local/lib wiretap/libwiretap.a gtk/libui.a epan/libethereal.a epan/ftypes/libftypes.a epan/dfilter/libdfilter.a /usr/lib/libnetsnmp.so -lelf -lcrypto -lpcap -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lXi -lXext -lX11 -lm -lz
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
rm -f .libs/etherealS.o
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/usr/src/ethereal-0.9.16'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ethereal-0.9.16'
make: *** [all] Error 2

[root@bucket ethereal-0.9.16]# ls -la /usr/lib/libelf*
lrwxrwxrwx    1 root     root           15 Dec 31  2002 /usr/lib/libelf.so.0 -> libelf.so.0.8.2
-rwxr-xr-x    1 root     root        95162 Aug 26  2002 /usr/lib/libelf.so.0.8.2

RedHat 8.0 with net-snmp-5.0.6-8.80.2 and net-snmp-devel-5.0.6-8.80.2.

If I re-run ./configure with --without-net-snmp and --without-ucd-snmp, it compiles successfully.

Is this a Makefile problem, a Net-SNMP problem, or a RedHat 8.0 problem?

Thanks!

Justin McNutt
Network Systems Analyst - Principal
DNPS, Mizzou Telecom
(573) 882-5183

"All knowledge is learning and therefore, good."
        --D.A.R.Y.L.