Discussion:
problem building net-snmp 5.7.3
(too old to reply)
Pete Siemsen
2015-09-08 20:53:59 UTC
Permalink
I'm trying to install net-snmp 5.7.3 on a Debian 6.0.10 system.

When I do "make", it works for a while and then barfs with this:


make[1]: Entering directory `/usr/home/siemsen/tmp/net-snmp-5.7.3/agent'

/bin/sh ../libtool --mode=link gcc -fno-strict-aliasing -g -O2 -Ulinux
-Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -rpath /usr/local/lib
-version-info 30:3:0 -o libnetsnmpagent.la helpers/all_helpers.lo
helpers/baby_steps.lo helpers/bulk_to_next.lo helpers/cache_handler.lo
helpers/debug_handler.lo helpers/instance.lo helpers/mode_end_call.lo
helpers/multiplexer.lo helpers/null.lo helpers/old_api.lo
helpers/read_only.lo helpers/row_merge.lo helpers/scalar.lo
helpers/scalar_group.lo helpers/serialize.lo helpers/snmp_get_statistic.lo
helpers/stash_cache.lo helpers/stash_to_next.lo helpers/table.lo
helpers/table_array.lo helpers/table_container.lo helpers/table_data.lo
helpers/table_dataset.lo helpers/table_iterator.lo helpers/table_row.lo
helpers/table_tdata.lo helpers/watcher.lo agent_handler.lo agent_index.lo
agent_read_config.lo agent_registry.lo agent_sysORTable.lo agent_trap.lo
kernel.lo snmp_agent.lo snmp_vars.lo mibgroup/snmpv3/usmConf.lo
mibgroup/agentx/master.lo mibgroup/agentx/subagent.lo
mibgroup/utilities/execute.lo mibgroup/utilities/iquery.lo
mibgroup/mibII/vacm_conf.lo mibgroup/agentx/protocol.lo
mibgroup/agentx/client.lo mibgroup/agentx/master_admin.lo
mibgroup/agentx/agentx_config.lo ../snmplib/libnetsnmp.la -Wl,-E
-fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl
-lm -lpthread -lc -lcrypt -lm

libtool: link: gcc -shared -fPIC -DPIC helpers/.libs/all_helpers.o
helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o
helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o
helpers/.libs/instance.o helpers/.libs/mode_end_call.o
helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o
helpers/.libs/read_only.o helpers/.libs/row_merge.o helpers/.libs/scalar.o
helpers/.libs/scalar_group.o helpers/.libs/serialize.o
helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o
helpers/.libs/stash_to_next.o helpers/.libs/table.o
helpers/.libs/table_array.o helpers/.libs/table_container.o
helpers/.libs/table_data.o helpers/.libs/table_dataset.o
helpers/.libs/table_iterator.o helpers/.libs/table_row.o
helpers/.libs/table_tdata.o helpers/.libs/watcher.o .libs/agent_handler.o
.libs/agent_index.o .libs/agent_read_config.o .libs/agent_registry.o
.libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o
.libs/snmp_agent.o .libs/snmp_vars.o mibgroup/snmpv3/.libs/usmConf.o
mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o
mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o
mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o
mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o
mibgroup/agentx/.libs/agentx_config.o -Wl,-rpath
-Wl,/usr/home/siemsen/tmp/net-snmp-5.7.3/snmplib/.libs
../snmplib/.libs/libnetsnmp.so -lrt -lcrypto -L/usr/local/lib
-L/usr/lib/perl/5.10/CORE -lperl -ldl -lpthread -lc -lcrypt -lm -O2
-fstack-protector -Wl,-E -fstack-protector -Wl,-soname
-Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.3

/usr/bin/ld: cannot find -lperl

collect2: ld returned 1 exit status

make[1]: *** [libnetsnmpagent.la] Error 1

make[1]: Leaving directory `/usr/home/siemsen/tmp/net-snmp-5.7.3/agent'

make: *** [subdirs] Error 1

$


Perl is installed, and

$ cd /usr/lib

$ ls -ld *perl*

lrwxrwxrwx 1 root root 17 Mar 12 2013 libperl.so.5.10 ->
libperl.so.5.10.1

-rw-r--r-- 1 root root 1370584 Mar 6 2013 libperl.so.5.10.1

lrwxrwxrwx 1 root root 16 Aug 11 2009 libperl.so.5.6 ->
libperl.so.5.6.1

-rw-r--r-- 1 root root 798660 Mar 18 2005 libperl.so.5.6.1

drwxr-xr-x 5 root root 4096 Feb 14 2012 perl

drwxr-xr-x 38 root root 4096 Dec 23 2014 perl5

***@ML$

If I cut/paste just the gcc command, and take out the "-lperl", it
completes.

What is wrong?
​​
-- Pete
​​
​​
Alice Wonder
2015-09-08 21:48:14 UTC
Permalink
looks like you are missing libperl.so - which is probably part of a
development package.

That's just a guess though.
Post by Pete Siemsen
I'm trying to install net-snmp 5.7.3 on a Debian 6.0.10 system.
make[1]: Entering directory `/usr/home/siemsen/tmp/net-snmp-5.7.3/agent'
/bin/sh ../libtool --mode=link gcc -fno-strict-aliasing -g -O2 -Ulinux
-Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -rpath
/usr/local/lib -version-info 30:3:0 -o libnetsnmpagent.la
<http://libnetsnmpagent.la> helpers/all_helpers.lo helpers/baby_steps.lo
helpers/bulk_to_next.lo helpers/cache_handler.lo
helpers/debug_handler.lo helpers/instance.lo helpers/mode_end_call.lo
helpers/multiplexer.lo helpers/null.lo helpers/old_api.lo
helpers/read_only.lo helpers/row_merge.lo helpers/scalar.lo
helpers/scalar_group.lo helpers/serialize.lo
helpers/snmp_get_statistic.lo helpers/stash_cache.lo
helpers/stash_to_next.lo helpers/table.lo helpers/table_array.lo
helpers/table_container.lo helpers/table_data.lo
helpers/table_dataset.lo helpers/table_iterator.lo helpers/table_row.lo
helpers/table_tdata.lo helpers/watcher.lo agent_handler.lo
agent_index.lo agent_read_config.lo agent_registry.lo
agent_sysORTable.lo agent_trap.lo kernel.lo snmp_agent.lo snmp_vars.lo
mibgroup/snmpv3/usmConf.lo mibgroup/agentx/master.lo
mibgroup/agentx/subagent.lo mibgroup/utilities/execute.lo
mibgroup/utilities/iquery.lo mibgroup/mibII/vacm_conf.lo
mibgroup/agentx/protocol.lo mibgroup/agentx/client.lo
mibgroup/agentx/master_admin.lo mibgroup/agentx/agentx_config.lo
../snmplib/libnetsnmp.la <http://libnetsnmp.la> -Wl,-E
-fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl
-ldl -lm -lpthread -lc -lcrypt -lm
libtool: link: gcc -shared -fPIC -DPIC helpers/.libs/all_helpers.o
helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o
helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o
helpers/.libs/instance.o helpers/.libs/mode_end_call.o
helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o
helpers/.libs/read_only.o helpers/.libs/row_merge.o
helpers/.libs/scalar.o helpers/.libs/scalar_group.o
helpers/.libs/serialize.o helpers/.libs/snmp_get_statistic.o
helpers/.libs/stash_cache.o helpers/.libs/stash_to_next.o
helpers/.libs/table.o helpers/.libs/table_array.o
helpers/.libs/table_container.o helpers/.libs/table_data.o
helpers/.libs/table_dataset.o helpers/.libs/table_iterator.o
helpers/.libs/table_row.o helpers/.libs/table_tdata.o
helpers/.libs/watcher.o .libs/agent_handler.o .libs/agent_index.o
.libs/agent_read_config.o .libs/agent_registry.o
.libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o
.libs/snmp_agent.o .libs/snmp_vars.o mibgroup/snmpv3/.libs/usmConf.o
mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o
mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o
mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o
mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o
mibgroup/agentx/.libs/agentx_config.o -Wl,-rpath
-Wl,/usr/home/siemsen/tmp/net-snmp-5.7.3/snmplib/.libs
../snmplib/.libs/libnetsnmp.so -lrt -lcrypto -L/usr/local/lib
-L/usr/lib/perl/5.10/CORE -lperl -ldl -lpthread -lc -lcrypt -lm -O2
-fstack-protector -Wl,-E -fstack-protector -Wl,-soname
-Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.3
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la <http://libnetsnmpagent.la>] Error 1
make[1]: Leaving directory `/usr/home/siemsen/tmp/net-snmp-5.7.3/agent'
make: *** [subdirs] Error 1
$
Perl is installed, and
$ cd /usr/lib
$ls -ld *perl*
lrwxrwxrwx 1 root root 17 Mar 12 2013 libperl.so.5.10->
libperl.so.5.10.1
-rw-r--r-- 1 root root 1370584 Mar 6 2013 libperl.so.5.10.1
lrwxrwxrwx 1 root root 16 Aug 11 2009 libperl.so.5.6->
libperl.so.5.6.1
-rw-r--r-- 1 root root 798660 Mar 18 2005 libperl.so.5.6.1
drwxr-xr-x 5 root root 4096 Feb 14 2012 perl
drwxr-xr-x 38 root root 4096 Dec 23 2014 perl5
If I cut/paste just the gcc command, and take out the "-lperl", it
completes.
What is wrong?
​​
-- Pete
​​
​​
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
Quanah Gibson-Mount
2015-09-09 16:11:02 UTC
Permalink
--On Tuesday, September 08, 2015 3:53 PM -0600 Pete Siemsen
Post by Pete Siemsen
What is wrong?
apt-get install perl-dev

--Quanah



--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Pete Siemsen
2015-09-10 16:06:25 UTC
Permalink
Thank you! That fixed it.


-- Pete
--On Tuesday, September 08, 2015 3:53 PM -0600 Pete Siemsen <
What is wrong?
apt-get install perl-dev
--Quanah
--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Pete Siemsen
2015-09-10 16:10:03 UTC
Permalink
Well, actually, it was "apt-get install libperl-dev" that did it. Thanks
again!


-- Pete
Post by Pete Siemsen
Thank you! That fixed it.
-- Pete
--On Tuesday, September 08, 2015 3:53 PM -0600 Pete Siemsen <
What is wrong?
apt-get install perl-dev
--Quanah
--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Loading...