Re: Compiling Net-SNMP with Mingw based Bloodshed Dev-C++?

This is a discussion on Re: Compiling Net-SNMP with Mingw based Bloodshed Dev-C++? within the SNMP Coders forums, part of the Networking and Network Related category; Hi Ekkehard. Ekkehard Domning wrote: >> -MinGW with MSYS using configure > > I will check this. I would ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-18-2005
Alex Burger
 
Posts: n/a
Default Re: Compiling Net-SNMP with Mingw based Bloodshed Dev-C++?

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/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0