Re: problem building net-snmp 5.7.3

Alice Wonder <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
looks like you are missing libperl.so - which is probably part of a 
development package.

That's just a guess though.

On 09/08/2015 01:53 PM, Pete Siemsen wrote:
> 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
> <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
>
> netserver@ML$
>
> If I cut/paste just the gcc command, and take out the "-lperl", it
> completes.
>
> What is wrong?
>
> ​​
> -- Pete
> ​​
> ​​
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.