Ethereal-users: Re: [Ethereal-users] 0.10.5 compile error on Fedora Core 2

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

From: Jerry Talkington <jtalkington@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Jul 2004 20:36:43 -0700
On Fri, Jul 09, 2004 at 10:42:07AM +1000, Craig Bumpstead wrote:
> Hi,
> 
> I get the following error:
> 
> (cd .libs && gcc -c -fno-builtin "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 -pthread -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/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/rpm -DINET6 -O2 -g -pipe -march=i386 -mcpu=i686 -Dlinux -I/usr/include/rpm -I. -I/usr/include/net-snmp -o .libs/ethereal pcap-util-unix.o capture_stop_conditions.o cfile.o conditions.o disabled_protos.o pcap-util.o range.o ringbuffer.o timestats.o version_info.o alert_box.o capture.o file.o filters.o g711.o merge.o proto_hier_stats.o summary.o .libs/etherealS.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L/usr/local/lib gtk/libui.a wiretap/.libs/libwiretap.so epan/.libs/libethereal.so -L/usr/lib /usr/lib/libnetsnmp.so -lelf -lcrypto /usr/local/lib/libpcre.so -lpcap -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lz -Wl,--rpath -Wl,/usr/local/lib
> /usr/bin/ld: cannot find -lelf
> collect2: ld returned 1 exit status
> make[2]: *** [ethereal] Error 1
> make[2]: Leaving directory `/home/cbumpste/src/ethereal-0.10.5'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/cbumpste/src/ethereal-0.10.5'
> make: *** [all] Error 2
> 
> So, as far as my very basic understanding of ld goes, ld is looking for a library? elf? ".a" ?

It's looking for the library libelf, which appears to only be shared
(.so vs .a.)

Install the elfutils package and the elfutils-libelf will be installed
as a dependency (you might be able to get away with just installing
elfutils-libelf, but elfutils are probably necessary to do anything
useful with it.)

-- 
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762