Menu

#2623 broken: doesn't compile on Debian

debian
open
None
3
2015-07-08
2015-04-26
teo8976
No

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

Related

Bugs: #2623

Discussion

  • Niels Baggesen

    Niels Baggesen - 2015-04-27
    • assigned_to: Niels Baggesen
     
    • sistisette

      sistisette - 2015-04-27

      You probably need to install the libperl-dev package

      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:

      • assigned_to: Niels Baggesen
      • Comment:

      You probably need to install the libperl-dev package


      [bugs:#2623] http://sourceforge.net/p/net-snmp/bugs/2623 broken:
      doesn't compile on Debian

      Status: open
      Group: 64-bit
      Created: Sun Apr 26, 2015 08:24 PM UTC by teo8976
      Last Updated: Sun Apr 26, 2015 08:24 PM UTC
      Owner: Niels Baggesen

      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


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/net-snmp/bugs/2623/
      https://sourceforge.net/p/net-snmp/bugs/2623

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      https://sourceforge.net/auth/subscriptions

       

      Related

      Bugs: #2623

      • Bill Fenner

        Bill Fenner - 2015-07-07

        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".

         
  • Niels Baggesen

    Niels Baggesen - 2015-04-27

    You probably need to install the libperl-dev package

     
  • Robert Story

    Robert Story - 2015-07-08
    • Group: 64-bit --> debian
    • Priority: 5 --> 3
     
  • Robert Story

    Robert Story - 2015-07-08

    what net-snmp release is this?

     

Log in to post a comment.