Hi,
I am getting following linker errors in nmake.out when I run
win32\nmakeperl.bat.
....
TrapReceiver.xs(140) : warning C4101: 'sv' : unreferenced local variable
"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:\Program Files\Microsoft Visual Studio
8\VC\LIB\oldnames.lib" "C:\Program Files\Microsoft Platform SDK for
Windows Server 2003 R2\Lib\kernel32.lib" "C:\Program Files\Microsoft
Platform SDK for Windows Server 2003 R2\Lib\user32.lib" "C:\Program
Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib"
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib\winspool.lib" "C:\Program Files\Microsoft Platform SDK for
Windows Server 2003 R2\Lib\comdlg32.lib" "C:\Program Files\Microsoft
Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib" "C:\Program
Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\shell32.lib"
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib\ole32.lib" "C:\Program Files\Microsoft Platform SDK for Windows
Server 2003 R2\Lib\oleaut32.lib" "C:\Program Files\Microsoft Platform
SDK for Windows Server 2003 R2\Lib\netapi32.lib" "C:\Program
Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\uuid.lib"
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib\wsock32.lib" "C:\Program Files\Microsoft Platform SDK for Windows
Server 2003 R2\Lib\mpr.lib" "C:\Program Files\Microsoft Platform SDK for
Windows Server 2003 R2\Lib\winmm.lib" "C:\Program Files\Microsoft
Platform SDK for Windows Server 2003 R2\Lib\version.lib" "C:\Program
Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\odbc32.lib"
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib\odbccp32.lib" "C:\Program Files\Microsoft Visual Studio
8\VC\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 LNK2019: unresolved external
symbol _RunAsService referenced in function _main
netsnmptrapd.lib(snmptrapd.obj) : error LNK2019: unresolved external
symbol _RegisterStopFunction referenced in function _main
netsnmptrapd.lib(snmptrapd.obj) : error LNK2019: unresolved external
symbol _UnregisterService referenced in function _main
netsnmptrapd.lib(snmptrapd.obj) : error LNK2019: unresolved external
symbol _RegisterService referenced in function _main
netsnmptrapd.lib(snmptrapd.obj) : error LNK2019: unresolved external
symbol _ParseCmdLineForServiceOption referenced in function _main
..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.dll : fatal error
LNK1120: 5 unresolved externals
I am using the following:
OSType - WinXP SP2 Microsoft Windows XP [Version 5.1.2600] on 32bit
Perl - ActiveState Perl (perl, v5.8.0 built for
MSWin32-x86-multi-thread)
Net-snmp - 5.4.2.1
Compiler - MS VC Express 2005 [Microsoft (R) 32-bit C/C++ Optimizing
Compiler Version 14.00.50727.762 for 80x86]
I have followed the steps as described in README.win32 and then in
perl/snmp/README files.
Any pointer will be much appreciated.
Thanks in advance,
Watsh
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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