Re: net-snmp compilation problem
Group <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm coming up with the same problem as below if i include perl-modules. (i need perl module for mib2c) I tried in two different ways: 1. ran $ make clean $ ./configure --without-perl-modules --disable-embedded-perl --with-openssl="/usr" $ make [Getting same errors as earlier i.e related to openssl package] 2. 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: rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll 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 let me know if there is any way to get through with this. Thanks in advance. On Wed, Jan 27, 2010 at 2:10 AM, Bart Van Assche <[email protected]>wrote: > On Tue, Jan 26, 2010 at 8:05 PM, Group <[email protected]> wrote: > >> Thanks for your reply. I have cygwin with full installation which includes >> all the packages and also the openssl-0.9.8 package came from cygwin. Also, >> i have openssl-devel package shown as already installed (This is confirmed >> by going through the setup.exe, and selecting openssl-devel, the status is >> keep (for options: Reinstall, Uninstall, keep, Source).). >> >> Is there any other way to check that openssl-devel package is already >> installed?. >> >> Bart, also you were mentioning that net-snmp configure script can be >> mentioned about path of the header files. Can you let me know how can i do >> this. Any documentation is also helpful. Thanks in advance. >> > > Building for Cygwin is documented here: > http://net-snmp.sourceforge.net/docs/README.win32.html > > The command below works fine on my setup (Cygwin 1.7). As you can see the > Net-SNMP 5.5 configure script is able to detect the OpenSSL library > (-lcrypto) and header files even without passing --with-openssl=/usr to the > configure script. This should also work with older Cygwin versions. > > $ ./configure --with-defaults --without-perl-modules > --disable-embedded-perl && grep -E 'NETSNMPLIBS|SSL' config.status && make > -s && agent/snmpd -f -Lo > [ ... ] > S["LNETSNMPLIBS"]=" -lcrypto" > D["HAVE_OPENSSL_AES_H"]=" 1" > D["HAVE_OPENSSL_DH_H"]=" 1" > D["HAVE_OPENSSL_DES_H"]=" 1" > D["HAVE_OPENSSL_HMAC_H"]=" 1" > D["HAVE_OPENSSL_EVP_H"]=" 1" > D["NETSNMP_USE_OPENSSL"]=" 1" > [ ... ] > 2010-01-27 09:03:27 Turning on AgentX master support. > 2010-01-27 09:03:27 NET-SNMP version 5.5 > > Bart. > ------------------------------------------------------------------------------ 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