Hello

I have problems building the 5.4 line on linux. I get the following error 
message:

make[2]: Leaving directory 
`/home/eno/prj/open-source/net-snmp/net-snmp-5.4/agent/mibgroup'
/bin/sh ../libtool  --mode=link gcc -g -Wall -Ulinux -Dlinux=linux 
-I/usr/include/rpm  -o snmpd snmpd.lo    libnetsnmpmibs.la libnetsnmpagent.la 
helpers/libnetsnmphelpers.la  ../snmplib/libnetsnmp.la -ldl -lrpm -lrpmio 
-lpopt  -lz -lcrypto -lm  -Wl,-E 
-Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE  -L/usr/local/lib 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl 
-lm -lcrypt -lutil -lpthread -lc 
gcc -g -Wall -Ulinux -Dlinux=linux -I/usr/include/rpm -o .libs/snmpd 
.libs/snmpd.o -Wl,-E -Wl,-rpath 
-Wl,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE  
./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so 
helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so 
/usr/lib/librpm.so -L/var/tmp/rpm-root/usr/lib -L/usr/lib /usr/lib/librpmdb.so 
-L/usr/local/lib -lelf -lselinux /usr/lib/librpmio.so /usr/lib/libbeecrypt.so 
-lrt -lbz2 /usr/lib/libpopt.so -lz -lcrypto 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl 
-lm -lcrypt -lutil -lpthread -lc  -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory 
`/home/eno/prj/open-source/net-snmp/net-snmp-5.4/agent'
make: *** [subdirs] Error 1

The library libelf seems to be installed:

$ ls -l /usr/lib/libelf*
-rwxr-xr-x  1 root root 65492 Aug 13  2006 /usr/lib/libelf-0.97.1.so
lrwxrwxrwx  1 root root    16 Feb 21 09:13 /usr/lib/libelf.so.1 -> 
libelf-0.97.1.so


System:
uname -a
Linux odin02.lokal.lan 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 
i686 i386 GNU/Linux

Configure command:

$ ./configure --with-cflags=-g -Wall --with-default-snmp-version=1 
--without-sys-contact --without-sys-location --with-logfile=/var/log/snmpd.log 
--with-persistent-directory=/var/net-snmp --with-out-transports=AAL5PVC IPX 
--enable-mfd-rewrites --with-perl-modules --enable-embedded-perl 
--enable-shared --disable-mib-loading


_______________________________________________________

Eirik Nordbrøden           Telephone     (+47) 90174789
moreCom A/S                Switchboard   (+47) 90064444
Tønne Huitfeldts plass 2   Fax.          (+47) 69188119
N-1767 Halden              Home          (+47) 69187899
Norway

Email: mailto:[EMAIL PROTECTED]
WWW:   http://www.moreCom.no/
_______________________________________________________
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to