Dear List,
I am following the instructions from README.win32 to build net-snmp
5.1.3.1<http://5.1.3.1>with MSVC
7.1 (MS Development Environment 2003). I am building from the Workspace=20
files. So far I am able to build all the libraries and application=20
executables except for snmpd.exe.=20
As you can see from the logs below, the linker couldn't resolve function=20
getdtablesize().=20
I understand the problem is that getdtablesize() is not a Win32 library=20
function; but I couldn't find any useful information from google or the Lis=
t=20
on how to resolve it. Any help from the List will be greatly appreciated.
TIA,
-Donghai Ma
ps. Build Logs from MSVC 7.1:
Command Lines
Creating temporary file "c:\net-
snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0000F7.rsp" with contents
[
/Od /I "." /I ".." /I "..\..\snmplib" /I "..\.." /I "..\..\include" /I=20
"..\..\agent" /I "..\..\agent\mibgroup" /D "WIN32" /D "_DEBUG" /D "_CONSOLE=
"=20
/D "HAVE_WIN32_PLATFORM_SDK" /D "_MBCS" /FD /EHsc /MDd /GS /YX"stdafx.h"=20
/Fp".\Debug/snmpd.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug/" /W3 /c /Zi
"\net-snmp-5.1.3.1\snmplib\winservice.c"
"\net-snmp-5.1.3.1\agent\snmpd.c"
"\net-snmp-5.1.3.1\agent\kernel.c"
"\net-snmp-5.1.3.1\agent\auto_nlist.c"
]
Creating command line "cl.exe @"c:\net-
snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0000F7.rsp" /nologo"
Creating command line "rc.exe /d "_DEBUG" /l 0x409 /I "\net-
snmp-5.1.3.1\snmplib" /fo".\Debug/winservice.res" "\net-
snmp-5.1.3.1\snmplib\winservice.rc""
Creating temporary file "c:\net-
snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0000F8.rsp" with contents
[
/OUT:"../bin/debug/snmpd.exe" /INCREMENTAL:NO /NOLOGO=20
/LIBPATH:"../lib/debug" /DEBUG /PDB:".\Debug/snmpd.pdb" /SUBSYSTEM:CONSOLE=
=20
/MACHINE:X86 netsnmp.lib netsnmpagent.lib netsnmpmibs.lib
netsnmphelpers.libws2_32.lib
iphlpapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib=20
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib=20
odbccp32.lib "\net-snmp-5.1.3.1\win32\lib\debug\netsnmp.lib" "\net-
snmp-5.1.3.1\win32\lib\debug\netsnmpagent.lib" "\net-
snmp-5.1.3.1\win32\lib\debug\netsnmpmibs.lib" "\net-
snmp-5.1.3.1\win32\lib\debug\netsnmphelpers.lib"
".\Debug\auto_nlist.obj"
".\Debug\kernel.obj"
".\Debug\snmpd.obj"
".\Debug\winservice.obj"
".\Debug\winservice.res"
]
Creating command line "link.exe @"c:\net-
snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0000F8.rsp""
Output Window
Compiling...
winservice.c
snmpd.c
\net-snmp-5.1.3.1\agent\snmpd.c(472) : warning C4013: 'getdtablesize'=20
undefined; assuming extern returning int
kernel.c
auto_nlist.c
Compiling resources...
Linking...
snmpd.obj : error LNK2019: unresolved external symbol _getdtablesize=20
referenced in function _SnmpDaemonMain
../bin/debug/snmpd.exe : fatal error LNK1120: 1 unresolved externals
Results
Build log was saved at "
file://c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\BuildLog.htm"
snmpdsdk - 2 error(s), 1 warning(s)
------=_Part_2399_8889754.1126632873156
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Dear List,<br>
<br>
I am following the instructions from README.win32 to build net-snmp
<a href=3D"http://5.1.3.1">5.1.3.1</a> with MSVC 7.1 (MS Development Enviro=
nment 2003). I am
building from the Workspace files. So far I am able to build all
the libraries and application executables except for snmpd.exe. <br>
As you can see from the logs below, the linker couldn't resolve function ge=
tdtablesize(). <br>
<br>
I understand the problem is that getdtablesize() is not a Win32 library
function; but I couldn't find any useful information from google or the
List on how to resolve it. Any help from the List will be greatly
appreciated.<br>
<br>
<br>
TIA,<br>
<br>
<br>
-Donghai Ma<br>
<br>
<br>
ps. Build Logs from MSVC 7.1:<br>
<br>
Command Lines<br>
Creating temporary file "c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0=
000F7.rsp" with contents<br>
[<br>
/Od /I "." /I ".." /I "..\..\snmplib" /I &quo=
t;..\.." /I "..\..\include" /I
"..\..\agent" /I "..\..\agent\mibgroup" /D "WIN32&=
quot; /D "_DEBUG" /D
"_CONSOLE" /D "HAVE_WIN32_PLATFORM_SDK" /D "_MBCS&=
quot; /FD /EHsc /MDd /GS
/YX"stdafx.h" /Fp".\Debug/snmpd.pch" /Fo".\Debug/&=
quot; /Fd".\Debug/"
/FR".\Debug/" /W3 /c /Zi<br>
"\net-snmp-5.1.3.1\snmplib\winservice.c"<br>
"\net-snmp-5.1.3.1\agent\snmpd.c"<br>
"\net-snmp-5.1.3.1\agent\kernel.c"<br>
"\net-snmp-5.1.3.1\agent\auto_nlist.c"<br>
]<br>
Creating command line "cl.exe @"c:\net-snmp-5.1.3.1\win32\snmpdsd=
k\Debug\RSP0000F7.rsp" /nologo"<br>
Creating command line "rc.exe /d "_DEBUG" /l 0x409 /I
"\net-snmp-5.1.3.1\snmplib" /fo".\Debug/winservice.res"
"\net-snmp-5.1.3.1\snmplib\winservice.rc""<br>
Creating temporary file "c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0=
000F8.rsp" with contents<br>
[<br>
/OUT:"../bin/debug/snmpd.exe" /INCREMENTAL:NO /NOLOGO
/LIBPATH:"../lib/debug" /DEBUG /PDB:".\Debug/snmpd.pdb"
/SUBSYSTEM:CONSOLE /MACHINE:X86 netsnmp.lib netsnmpagent.lib
netsnmpmibs.lib netsnmphelpers.lib ws2_32.lib iphlpapi.lib kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
"\net-snmp-5.1.3.1\win32\lib\debug\netsnmp.lib"
"\net-snmp-5.1.3.1\win32\lib\debug\netsnmpagent.lib"
"\net-snmp-5.1.3.1\win32\lib\debug\netsnmpmibs.lib"
"\net-snmp-5.1.3.1\win32\lib\debug\netsnmphelpers.lib"<br>
".\Debug\auto_nlist.obj"<br>
".\Debug\kernel.obj"<br>
".\Debug\snmpd.obj"<br>
".\Debug\winservice.obj"<br>
".\Debug\winservice.res"<br>
]<br>
Creating command line "link.exe @"c:\net-snmp-5.1.3.1\win32\snmpd=
sdk\Debug\RSP0000F8.rsp""<br>
<br>
<br>
Output Window<br>
Compiling...<br>
winservice.c<br>
snmpd.c<br>
\net-snmp-5.1.3.1\agent\snmpd.c(472) : warning C4013: 'getdtablesize' undef=
ined; assuming extern returning int<br>
kernel.c<br>
auto_nlist.c<br>
Compiling resources...<br>
Linking...<br>
snmpd.obj : error LNK2019: unresolved external symbol _getdtablesize refere=
nced in function _SnmpDaemonMain<br>
../bin/debug/snmpd.exe : fatal error LNK1120: 1 unresolved externals<br>
<br>
<br>
<br>
Results<br>
Build log was saved at "<a href=3D"file://c:\net-snmp-5.1.3.1\win32\sn=
mpdsdk\Debug\BuildLog.htm">file://c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\=
BuildLog.htm</a>"<br>
snmpdsdk - 2 error(s), 1 warning(s)<br>
<br>
------=_Part_2399_8889754.1126632873156--
-------------------------------------------------------
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-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users