Hi Ekkehard.

Ekkehard Domning wrote:
-MinGW with MSYS using configure

I will check this. I would like to use Bloodshed, because is has an IDE etc.
Meanwhile I solved the problem from my first post, but found new problems :-(
To solve the problem
> 1540 D:\Misc\net-snmp-5.2.1\win32\net-snmp\net-snmp-config.h syntax
> error before "uint32_t"
simply by undefining WIN32 und defining HAVE_SIZE_T


But, the new problem is "segmentation fault" in scapi.c and some other files.

> Have you tried using configure with MinGW?
No, maybe I have to create the makefile using config and force Bloodshed to use this make file.

I installed Dev-C++ 4.9.9.2 to take a quick look at the options. I see that in Project Options on the Parameters tab it uses the following compiler options:


-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS

When compiling with MinGW, we check to see if 'mingw32' is defined in various files. You will probably have better results if you change it to:

-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -Dmingw32

The net-snmp-config.h in win32\net-snmp\ is manually updated for MSVC. I suggest you try running configure for MinGW/MSYS as described in the README.win32 file. Then take the generated include/net-snmp/net-snmp-config.h file (NOT from the win32 folder) and copy it in to win32\net-snmp\. That way it will have all the correct defines for the MinGW compiler. You may need to copy the other files such as agent_module_config.h, mib_module_config.h etc. With some luck maybe it will work. :)

It would be nice if the IDE worked with the make files generated by configure. Do you know if that is possible?

Alex


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to