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 [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
