Re: net-snmp compilation including perl module

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, Jan 29, 2010 at 1:39 AM, 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:
>
> [ ... ]
>
> /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.
>

(replying to an e-mail of about six months ago)

This has been fixed on the trunk. Perl support - both the Perl modules and
embedding Perl - works fine in my tests as long as I do not restart snmpd or
snmptrapd via SIGHUP. The Net-SNMP trunk source code, which is currently in
5.6 prerelease stage, can be obtained by running the following command:

svn co https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk/net-snmp

Any feedback is welcome.

Bart.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

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