Gisle Vanem wrote:
"Andy Smith" wrote:


Actually I have been building fine from CVS using MinGW for a while now.
Nothing special aside from configuring with a --prefix without spaces needs
to be done. I might suggest downloading my regex package for MinGW if you
haven't already. the URL is in the README.win32 I believe.


What's wrong with the regex that comes with MingW?

There isn't one. GNU Regex is not included in the MinGW libc.


Other than that it is a typical ./configure ; make ; make install. Are you using MSyS or some compatible shell?


No, why? A package that supposedly is for Window too, should IMHO be able to configure and build using the default shell (cmd or 4NT etc.).
E.g. by perl Configure.pl. Everyone have Perl, right?

Fair enough. Just realize that you cannot use the autoconf scripts to build as they require an sh type shell. I am not familiar with Configure.pl. Perl is more Alex's realm.


Frankly most package building procedures sucks. Mostly because Configure
requires so many tools normally not found on Windows. Therefore I've adapted the habbit of writing my own GNU Makefile for every open-source project
I'm involved with. That way it's easier to learn what exactly is going on.
It just that building net-snmp seems to suck much more than others.
Don't take this personally, but someone should get a grip and update this
to a more modern and intuitive design. E.g. take a look at OpenSSL where internals are put in *-internal.h files. No need to pollute the name-space with un-needed stuff
and expose e.g. DEFAULT_MIBDIRS to applications. That info should IMHO be returned at runtime, not by a compile-time define.



And it can be. The values are compiled in defaults. You can set them to whatever you wish at run time through the config files and command line options.


One thing is it doesn't allow me to define '-DHAVE_xx' in my Makefile since most are "#undef'ed" in net-snmp-config.h and never redefined in mingw32.h.
Ton's of required HAVE_xx are *not* in mingw32.h.

But ARE defined if you use the autoconf script to generate the makefiles. MSyS is designed to work with MinGW. It includes most of the tools you need to build many open source packages out of the box, or with few changes.


E.g. net-snmp-config.h does "#undef HAVE_RAND" then "#ifdef HAVE_RAND" ..
But before the SYSTEM_INCLUDE_FILE gets parsed !? What the rationale
behind this? How on earth did this work for MingW? Windows (msvcrt.dll) doesn't
have random(), but rand().

Again, build environment. What exactly are you using to configure the package? Patches can be submitted through the SF site. There is a link on http://www.net-snmp.com


Regards,
Andy

--gv




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



-- -------------------------- Andy Smith, MCP [EMAIL PROTECTED] --------------------------



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to