Dear List,

I am following the instructions from README.win32 to build net-snmp 5.1.3.1 with MSVC 7.1 (MS Development Environment 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.  
As you can see from the logs below, the linker couldn't resolve function getdtablesize().  

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.


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 "..\..\agent" /I "..\..\agent\mibgroup" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "HAVE_WIN32_PLATFORM_SDK" /D "_MBCS" /FD /EHsc /MDd /GS /YX"stdafx.h" /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 /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"
".\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' undefined; assuming extern returning int
kernel.c
auto_nlist.c
Compiling resources...
Linking...
snmpd.obj : error LNK2019: unresolved external symbol _getdtablesize 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)

Reply via email to