Hi Andy.
Andy Smith wrote:
Could you please make the change below to net-snmp-config.h.in? It might be best to wrap it in an #ifdef WIN32 or #ifdef mingw32.
It's in. I checked for mingw32 as it is not needed for Cygwin, and MSVC doesn't use the file.
Thanks Alex! I am working on some documentation for the HR stuff. I am hoping to have that available soon.
Andy
Alex
Andy
Alex Burger wrote:
Hi Andy.
When compiling main under MinGW, it stops with:
table_dataset.c: In function `netsnmp_config_parse_table_set': table_dataset.c:832: called object is not a function make[2]: *** [table_dataset.lo] Error 1 make[2]: Leaving directory `/work/agent/helpers'
I was able to work around it by modifying some defines in net-snmp-config.h:
#ifndef HAVE_INDEX #ifdef HAVE_STRCHR # define index strchr # define rindex strrchr #endif #endif
to:
#ifndef HAVE_INDEX #ifdef HAVE_STRCHR # define index(a,b) strchr(a,b) # define rindex(a,b) strrchr(a,b) #endif #endif
The generated net-snmp-config.h has HAVE_STRCHR defined, but not HAVE_INDEX. I made the same change to the static net-snmp-config.h for MSVC a long time ago. I don't know why all of a sudden it is needed for MinGW. Any ideas?
I was able to compile using Cygwin without any modifications.
Alex
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders