Re: net-snmp compilation including perl module
Group <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Is there any way to avoid compiling Trapreceiver directory by disabling any module? as i'm not using any traps. I just want to bypass the compilation, Please let me know if there is any alternative way. I couldnot proceed any further with this compilation. On Thu, Jan 28, 2010 at 5:39 PM, Group <[email protected]> wrote: > Hi, > > I 'm getting compilation issues, i couldnot proceed from here. > Here are the steps which i ran: > > $ ./configure --with-perl-modules --with-openssl="/usr" > $ make > [Getting errors related to openssl package] > > ->Added -lcrypto to LDLOADLIBS > as...LDLOADLIBS= <existingcode> -lcrypto > in Makefiles present in > perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile > agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile > > The above Makefiles are places where its expecting openssl package, so i > added in those locations. > > Ran the command again > $ make > Now i'm getting the following errors: > > g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols > -Wl,--stack,838 > 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector > -L/usr/lib > TrapReceiver.o -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll \ > > /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne > t-snmp-5.5/perl/TrapReceiver/../../apps/.libs > -L/home/test/net-snmp-5.5/perl/T > rapReceiver/../../apps > -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent > /.libs -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent > -L/home/test/ > net-snmp-5.5/perl/TrapReceiver/../../agent/helpers/.libs > -L/home/test/net-snmp > -5.5/perl/TrapReceiver/../../agent/helpers > -L/home/test/net-snmp-5.5/perl/Trap > Receiver/../../snmplib/.libs > -L/home/test/net-snmp-5.5/perl/TrapReceiver/../.. > /snmplib -lnetsnmptrapd -lnetsnmpagent -lnetsnmp -lcrypto \ > > /usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function > `notificatio > n_handler': > /home/test/net-snmp-5.5/apps/snmptrapd_handlers.c:912: undefined reference > to > `_log_notification' > /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function > `setup_tree': > /home/test/net-snmp-5.5/agent/agent_registry.c:1636: undefined reference to > `_ > netsnmp_register_null' > /home/test/net-snmp-5.5/agent/agent_registry.c:1637: undefined reference to > `_ > netsnmp_register_null' > /home/test/net-snmp-5.5/agent/agent_registry.c:1638: undefined reference to > `_ > netsnmp_register_null' > /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function > `register_mib_co > ntext': > /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to > `_n > etsnmp_register_old_api' > /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to > `_n > etsnmp_register_old_api' > /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to > `_n > etsnmp_register_old_api' > /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function > `netsnmp_subtree > _load': > /home/test/net-snmp-5.5/agent/agent_registry.c:545: undefined reference to > `_n > etsnmp_register_null_context' > /home/test/net-snmp-5.5/agent/agent_registry.c:547: undefined reference to > `_n > etsnmp_register_null_context' > /home/test/net-snmp-5.5/agent/agent_registry.c:549: undefined reference to > `_n > etsnmp_register_null_context' > /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function > `register_mib_co > ntext': > /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to > `_n > etsnmp_register_old_api' > /usr/local/lib/libnetsnmpagent.a(snmp_vars.o): In function `init_agent': > /home/test/net-snmp-5.5/agent/snmp_vars.c:310: undefined reference to > `_netsnm > p_init_helpers' > /usr/local/lib/libnetsnmpagent.a(master.o): In function > `agentx_got_response': > /home/test/net-snmp-5.5/agent/mibgroup/agentx/master.c:401: undefined > referenc > e to `_netsnmp_bulk_to_next_fix_requests' > /usr/local/lib/libnetsnmpagent.a(agent_handler.o): In function > `netsnmp_register > _handler': > /home/test/net-snmp-5.5/agent/agent_handler.c:251: undefined reference to > `_ne > tsnmp_get_bulk_to_next_handler' > collect2: ld returned 1 exit status > make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll] > Error 1 > make[2]: Leaving directory `/home/test/net-snmp-5.5/perl/TrapReceiver' > make[1]: *** [subdirs] Error 2 > make[1]: Leaving directory `/home/test/net-snmp-5.5/perl' > make: *** [perlmodules] Error 1 > > Please help me out on how to resolve this issue. Thanks. > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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