Re: Please help: Unresolved getdtablesize while building snmpd.exe with MS .Net (MSVC7.1)
Alex Burger <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Donghai Ma wrote:
> 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 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().
You can modify snmpd.c so that the call to getdtablesize is excluded for
Windows (MSVC / MinGW). This has been fixed in CVS so it will be also
fixed in the next release.
#ifndef WIN32
/*
* close all non-standard file descriptors we may have
* inherited from the shell.
*/
for (i = getdtablesize() - 1; i > 2; --i) {
(void) close(i);
}
#endif /* #WIN32 */
I am not sure what problem the above code is supposed to fix. Maybe
Robert can comment on it as he was the one who added it. I don't think
it is an issue with Windows.
Alex
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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