5.4.1 / Cygwin / SNMP perl module installation / Building libTrapReceiver.ddl.a failed

"Landry Caroline" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <BD939068A237684292AF8E6FFB365F1302305122@CESSSMAIL01.eu.thmulti.com>
Hello everyboy,

 

I am new in the mailing list and I am working with SNMP and net-snmp
only for few months.

I am working on Cygwin, I installed net-snmp 5.4.1 and I want to use
mib2c, but for this I need to install the SNMP perl module and this
fails.

I wrote a detailed description below of my problem and the attached file
contains the traces of the SNMP perl module installation.

I looked for a similar problem on the web site, but I found only this
one "[ 1665465 ] cygwin TrapReceiver.dll error" that is unresolved. :-(

So I hope this mailing list can help me. ;-)

 

Thanks in advance for any help! :-)

 

Caroline

 

*         Net-snmp version: 5.4.1

*         OS version: CYGWIN_NT-5.1 RENNLXPRDL1843 1.5.25(0.156/4/2)
2007-12-14 19:21 i686 Cygwin

*         OS distribution: Windows XP professional version 2002, service
pack 2

*         Compiler version: gcc version 3.4.4 (cygming special, gdc
0.12, using dmd 0.125)

*         Problem description

 

1. I downloaded the source version of net-snmp 5.4.1

 

2. I installed net-snmp 5.4.1 from the source directory
/cygdrive/c/Temp/net-snmp-5.4.1 with the following commands:

configure \

   --with-mib-modules="host agentx disman/event-mib examples/example" \

   --with-out-mib-modules=host/hr_network --with-libs="-lws2_32" \

   --prefix="/usr/local" \

   --disable-embedded-perl --without-perl-modules

 

make

 

make install

 

==> Installation OK

 

3. I tried to run mib2c, but I had the following message:

 

ERROR: You don't have the SNMP perl module installed.  Please obtain

this by getting the latest source release of the net-snmp toolkit from

http://www.net-snmp.org/download/ .  Once you download the source and

unpack it, the perl module is contained in the perl/SNMP directory.

See the README file there for instructions.

 

4. I tried to install the SNMP perl module with the following commands:

cd /cygdrive/c/Temp/net-snmp-5.4.1/perl

 

perl Makefile.PL -NET-SNMP-IN-SOURCE=true

 

make

 

==> I had the following error:

 

gcc -shared -o  TrapReceiver.dll -Wl,--out-implib=libTrapReceiver.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608
-Wl,--enable-auto-image-base \

-s -L/usr/local/lib TrapReceiver.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../apps
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/
.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib
-lnetsnmptrapd -lnetsnmpagent -lnetsnmp

/usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
`syslog_handler':

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:592: undefined
reference to `_SyslogTrap'

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:592: undefined
reference to `_SyslogTrap'

/usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
`print_handler':

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:679: undefined
reference to `_dropauth'

/usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
`event_handler':

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:962: undefined
reference to `_event_input'

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:962: undefined
reference to `_event_input'

/usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
`notification_handler':

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:1032:
undefined reference to `_log_notification'

/cygdrive/c/Temp/net-snmp-5.4.1/apps/snmptrapd_handlers.c:1032:
undefined reference to `_log_notification'

/usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
`netsnmp_subtree_load':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:415: undefined
reference to `_netsnmp_register_null_context'

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:417: undefined
reference to `_netsnmp_register_null_context'

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:419: undefined
reference to `_netsnmp_register_null_context'

/usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
`setup_tree':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:1606: undefined
reference to `_netsnmp_register_null'

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:1607: undefined
reference to `_netsnmp_register_null'

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:1608: undefined
reference to `_netsnmp_register_null'

/usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
`register_mib_context':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_registry.c:838: undefined
reference to `_netsnmp_register_old_api'

/usr/local/lib/libnetsnmpagent.a(snmp_vars.o): In function `init_agent':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/snmp_vars.c:307: undefined
reference to `_netsnmp_init_helpers'

/usr/local/lib/libnetsnmpagent.a(agent_handler.o): In function
`netsnmp_register_handler':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/agent_handler.c:246: undefined
reference to `_netsnmp_get_bulk_to_next_handler'

/usr/local/lib/libnetsnmpagent.a(master.o): In function
`agentx_got_response':

/cygdrive/c/Temp/net-snmp-5.4.1/agent/mibgroup/agentx/master.c:408:
undefined reference to `_netsnmp_bulk_to_next_fix_requests'

Creating library file: libTrapReceiver.dll.a

collect2: ld returned 1 exit status

perlld: *** system() failed to execute

gcc -shared -o  TrapReceiver.dll -Wl,--out-implib=libTrapReceiver.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608
-Wl,--enable-auto-image-base \

-s -L/usr/local/lib TrapReceiver.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../apps
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/
.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs
-L/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib
-lnetsnmptrapd -lnetsnmpagent -lnetsnmp

 

make[1]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll]
Error 2

make[1]: Leaving directory
`/cygdrive/c/Temp/net-snmp-5.4.1/perl/TrapReceiver'

make: *** [subdirs] Error 2

 

------------------------------------------------------------------------
--------------------------
Caroline Landry
Tel: +33 2 99 22 73 36
Cell: +33 6 84 54 43 86

Thomson - Grass Valley / NTA / QoS
------------------------------------------------------------------------
--------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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