I was also getting the error:
/usr/bin/ld: cannot find -lperl
 
after reading the post I played around and found out that the make
succeeds when I make a link:
cd /usr/lib
ln -s libperl.so.5.8.8 libperl.so
 
ls -al libperl*
lrwxrwxrwx 1 root root      16 2008-10-16 06:26 libperl.so ->
libperl.so.5.8.8
lrwxrwxrwx 1 root root      16 2008-03-25 05:23 libperl.so.5.8 ->
libperl.so.5.8.8
-rw-r--r-- 1 root root 1153524 2007-11-04 23:27 libperl.so.5.8.8

 
cat /proc/version 
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-18etch1)
([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ) (gcc version 4.1.2
20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun Feb 10 22:11:31 UTC
2008

The last line of the make:
gcc -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl/5.8/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-E
-L/root/tools/net-snmp-5.4.2/agent/.libs
-L/root/tools/net-snmp-5.4.2/agent/helpers/.libs
-L/root/tools/net-snmp-5.4.2/snmplib/.libs
-L/root/tools/net-snmp-5.4.2/snmplib
-L/root/tools/net-snmp-5.4.2/agent/helpers ./.libs/libnetsnmpagent.so
helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so
/root/tools/net-snmp-5.4.2/agent/helpers/.libs/libnetsnmphelpers.so
/root/tools/net-snmp-5.4.2/agent/.libs/libnetsnmpagent.so
/root/tools/net-snmp-5.4.2/snmplib/.libs/libnetsnmp.so
../snmplib/.libs/libnetsnmp.so -L/usr/local/lib
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE
-lperl -ldl -lm -lpthread -lc -lcrypt   -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/root/tools/net-snmp-5.4.2/agent'
make: *** [subdirs] Error 1
 
 
if I execute the last command:
ts04:~/tools/net-snmp-5.4.2# cd agent/
ts04:~/tools/net-snmp-5.4.2/agent# gcc -g -O2 -Ulinux -Dlinux=linux
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -o .libs/snmpd
.libs/snmpd.o -Wl,-E  -L/root/tools/net-snmp-5.4.2/agent/.libs
-L/root/tools/net-snmp-5.4.2/agent/helpers/.libs
-L/root/tools/net-snmp-5.4.2/snmplib/.libs
-L/root/tools/net-snmp-5.4.2/snmplib
-L/root/tools/net-snmp-5.4.2/agent/helpers ./.libs/libnetsnmpagent.so
helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so
/root/tools/net-snmp-5.4.2/agent/helpers/.libs/libnetsnmphelpers.so
/root/tools/net-snmp-5.4.2/agent/.libs/libnetsnmpagent.so
/root/tools/net-snmp-5.4.2/snmplib/.libs/libnetsnmp.so
../snmplib/.libs/libnetsnmp.so -L/usr/local/lib
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE
-lperl -ldl -lm -lpthread -lc -lcrypt   -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
ts04:~/tools/net-snmp-5.4.2/agent# 



Hope this helps.  If you need anything more please ask.  I'm not sure
what will help.
 
Brian
 
[]
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to