Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Please help: Unresolved getdtablesize while building snmpd.exe with MS .Net (MSVC7.1)

0 views
Skip to first unread message

Donghai Ma

unread,
Sep 13, 2005, 1:35:20 PM9/13/05
to
------=_Part_2399_8889754.1126632873156
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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).&nbsp; I am
building from the Workspace files.&nbsp; So far I am able to build all
the libraries and application executables except for snmpd.exe. &nbsp;<br>
As you can see from the logs below, the linker couldn't resolve function ge=
tdtablesize(). &nbsp;<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.&nbsp; 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 &quot;c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0=
000F7.rsp&quot; with contents<br>
[<br>
/Od /I &quot;.&quot; /I &quot;..&quot; /I &quot;..\..\snmplib&quot; /I &quo=
t;..\..&quot; /I &quot;..\..\include&quot; /I
&quot;..\..\agent&quot; /I &quot;..\..\agent\mibgroup&quot; /D &quot;WIN32&=
quot; /D &quot;_DEBUG&quot; /D
&quot;_CONSOLE&quot; /D &quot;HAVE_WIN32_PLATFORM_SDK&quot; /D &quot;_MBCS&=
quot; /FD /EHsc /MDd /GS
/YX&quot;stdafx.h&quot; /Fp&quot;.\Debug/snmpd.pch&quot; /Fo&quot;.\Debug/&=
quot; /Fd&quot;.\Debug/&quot;
/FR&quot;.\Debug/&quot; /W3 /c /Zi<br>
&quot;\net-snmp-5.1.3.1\snmplib\winservice.c&quot;<br>
&quot;\net-snmp-5.1.3.1\agent\snmpd.c&quot;<br>
&quot;\net-snmp-5.1.3.1\agent\kernel.c&quot;<br>
&quot;\net-snmp-5.1.3.1\agent\auto_nlist.c&quot;<br>
]<br>
Creating command line &quot;cl.exe @&quot;c:\net-snmp-5.1.3.1\win32\snmpdsd=
k\Debug\RSP0000F7.rsp&quot; /nologo&quot;<br>
Creating command line &quot;rc.exe /d &quot;_DEBUG&quot; /l 0x409 /I
&quot;\net-snmp-5.1.3.1\snmplib&quot; /fo&quot;.\Debug/winservice.res&quot;
&quot;\net-snmp-5.1.3.1\snmplib\winservice.rc&quot;&quot;<br>
Creating temporary file &quot;c:\net-snmp-5.1.3.1\win32\snmpdsdk\Debug\RSP0=
000F8.rsp&quot; with contents<br>
[<br>
/OUT:&quot;../bin/debug/snmpd.exe&quot; /INCREMENTAL:NO /NOLOGO
/LIBPATH:&quot;../lib/debug&quot; /DEBUG /PDB:&quot;.\Debug/snmpd.pdb&quot;
/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
&quot;\net-snmp-5.1.3.1\win32\lib\debug\netsnmp.lib&quot;
&quot;\net-snmp-5.1.3.1\win32\lib\debug\netsnmpagent.lib&quot;
&quot;\net-snmp-5.1.3.1\win32\lib\debug\netsnmpmibs.lib&quot;
&quot;\net-snmp-5.1.3.1\win32\lib\debug\netsnmphelpers.lib&quot;<br>
&quot;.\Debug\auto_nlist.obj&quot;<br>
&quot;.\Debug\kernel.obj&quot;<br>
&quot;.\Debug\snmpd.obj&quot;<br>
&quot;.\Debug\winservice.obj&quot;<br>
&quot;.\Debug\winservice.res&quot;<br>
]<br>
Creating command line &quot;link.exe @&quot;c:\net-snmp-5.1.3.1\win32\snmpd=
sdk\Debug\RSP0000F8.rsp&quot;&quot;<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 &quot;<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>&quot;<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

0 new messages