I followed the installation instructions.
When it came to make, it issues compile errors:
The output is too long to copy, but it ends like:
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,/root/installs/net-snmp-5.7.3/snmplib/.libs ../snmplib/.libs/libnetsnmp.so -lrt -lcrypto -L/usr/local/lib -L/usr/lib/perl/5.14/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: error: ld returned 1 exit status
make[1]: [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/root/installs/net-snmp-5.7.3/agent'
make: [subdirs] Error 1
Yes, indeed, that was the problem.
I'd expect ./configure (or make) to check for dependencies and give a
meaningful error message if some of them is not met (such as "you need
to install library/package XXX"), rather than having make fail after
several minutes of compiling stuff with an error message that is hard to
decypher.
On 27/04/15 09:42, Niels Baggesen wrote:
Related
Bugs: #2623
I agree. The configure script has all of these "try/yes/no" checks for "can I build with perl"; it should check to see if it can link too, and turn "try" to "no" and turn "yes" to "error".
You probably need to install the libperl-dev package
what net-snmp release is this?