"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?

> 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?

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.

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.

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().

--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

Reply via email to