taner memet ali wrote:
Hi,
i have downloaded the patch and copied it to the snmplib folder.Now
there is another error:
windres winservicerc.rc -DDL_EXPORT -DPIC -o .libs/winservicerc.lo
winders: winservicerc.rc:1: syntax error
make[1]: *** [winsrvicerc.lo] Error1
make[1]: Leaving directory '.../snmplib/'
i really need this API for my thesis and i'm wasting time (i try it
since 1 week) on compiling it . i need your help:-(
Try this:
-update Cygwin. I downloaded 4.1 and did an online install on August
14th, 2005. Make sure you include Perl in the installation (the Cygwin
Perl).
-launch a shell and type 'where perl.exe'. Make sure it finds the one
in the Cygwin folder first. I also have ActiveState installed, but
under Cygwin it finds the Cygwin version first.
-extract net-snmp-5.2.1.2.tar.gz to a new folder
-apply the patches in:
http://sourceforge.net/tracker/index.php?func=detail&aid=1258726&group_id=12694&atid=312694
(this is a different patch than what you tried before)
-compile the main Net-SNMP package using:
./configure --with-mib-modules="host agentx disman/event-mib
examples/example" --with-out-mib-modules=host/hr_network
-edit perl/Makefile.PL and change this line:
'DIR' => [qw(default_store ASN OID agent SNMP TrapReceiver)]
to:
'DIR' => [qw(default_store ASN OID agent SNMP)]
This will remove the TrapReceiver from the build as it does not
currently compile under Cygwin.
-Build following the instructions in perl/SNMP/README:
Win32 (Cygwin):
cd net-snmp\perl
perl Makefile.PL -NET-SNMP-IN-SOURCE=true
make
make test
make install
Make test will probably fail, but hopefully the modules you want to use
will work as expected.
After installing, test the SNMP module by running:
perl win32/dist/scripts/net-snmp-perl-test.pl
It will do a test translate using the Perl module.
Alex
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders