Yes, I was able to build the main package via the VC++ workspace GUI. I need to use the mib2c compiler, so I understand I need to build the SNMP Perl modules for that. I also followed the "Microsoft Visual C++ Workspace Building the Perl SNMP module" section, however I could not get past nmakeperl.bat !
Looking at snmptrapd.c, I see that it uses the <net-snmp/library/winservice.h> which I do have in my " C:\net-snmp-5.2.rc2\include\net-snmp\library" directory and contains all the function definitions for RegisterService(), RunAsService(), etc. But the linker complains about _RegisterService or _RunAsService, which I cannot figure out! Allen -----Original Message----- From: Alex Burger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 1:04 PM To: Nourdeh, Allen (US SSA) Cc: [EMAIL PROTECTED] Subject: Re: nmakeperl.bat error Were you able to get the main package to compile. If so, how? Alex Nourdeh, Allen (US SSA) wrote: > I am getting the following error when running the nmakeperl.bat to build > the Perl SNMP modules. Any idea how to fix it? > > I am installing net-snmp-5.2.rc2 on XP professional. > > > > Cheers, > > Allen > > > > Running Mkbootstrap for NetSNMP::TrapReceiver () > > C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 > TrapReceiver.bs > > link > -out:..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.dll -dll - > > nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" > -machine: > > x86 TrapReceiver.obj C:\Perl\lib\CORE\perl58.lib > c:\usr\lib\netsnmp.lib c:\usr > > \lib\netsnmpagent.lib c:\usr\lib\netsnmphelpers.lib > c:\usr\lib\netsnmpmibs.lib c > > :\usr\lib\netsnmptrapd.lib C:\PROGRA~1\MICROS~3\VC98\lib\oldnames.lib > C:\PROGRA~ > > 1\MICROS~3\VC98\lib\kernel32.lib > C:\PROGRA~1\MICROS~3\VC98\lib\user32.lib C:\PRO > > GRA~1\MICROS~3\VC98\lib\gdi32.lib > C:\PROGRA~1\MICROS~3\VC98\lib\winspool.lib C:\ > > PROGRA~1\MICROS~3\VC98\lib\comdlg32.lib > C:\PROGRA~1\MICROS~3\VC98\lib\advapi32.l > > ib C:\PROGRA~1\MICROS~3\VC98\lib\shell32.lib > C:\PROGRA~1\MICROS~3\VC98\lib\ole32 > > .lib C:\PROGRA~1\MICROS~3\VC98\lib\oleaut32.lib > C:\PROGRA~1\MICROS~3\VC98\lib\ne > > tapi32.lib C:\PROGRA~1\MICROS~3\VC98\lib\uuid.lib > C:\PROGRA~1\MICROS~3\VC98\lib\ > > wsock32.lib C:\PROGRA~1\MICROS~3\VC98\lib\mpr.lib > C:\PROGRA~1\MICROS~3\VC98\lib\ > > winmm.lib C:\PROGRA~1\MICROS~3\VC98\lib\version.lib > C:\PROGRA~1\MICROS~3\VC98\li > > b\odbc32.lib C:\PROGRA~1\MICROS~3\VC98\lib\odbccp32.lib > C:\PROGRA~1\MICROS~3\VC9 > > 8\lib\msvcrt.lib -def:TrapReceiver.def > > Creating library > ..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.lib and > > object ..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.exp > > netsnmptrapd.lib(snmptrapd.obj) : error LNK2001: unresolved external > symbol _Run > > AsService > > netsnmptrapd.lib(snmptrapd.obj) : error LNK2001: unresolved external > symbol _Reg > > isterStopFunction > > netsnmptrapd.lib(snmptrapd.obj) : error LNK2001: unresolved external > symbol _Unr > > egisterService > > netsnmptrapd.lib(snmptrapd.obj) : error LNK2001: unresolved external > symbol _Reg > > isterService > > netsnmptrapd.lib(snmptrapd.obj) : error LNK2001: unresolved external > symbol _Par > > seCmdLineForServiceOption > > ..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.dll : fatal error > LNK1120: 5 > > unresolved externals > > NMAKE : fatal error U1077: 'link' : return code '0x460' > > Stop. > > NMAKE : fatal error U1077: 'cd' : return code '0x2' > > Stop. > ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
