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. Other than that it is a typical ./configure ; make ; make install. Are you using MSyS or some compatible shell?
Regards, Andy --- Andy Smith [EMAIL PROTECTED] --- > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Alex > Burger > Sent: Friday, June 25, 2004 6:07 PM > To: Gisle Vanem > Cc: [EMAIL PROTECTED] > Subject: Re: Win32/MingW build > > > Gisle Vanem wrote: > > I must say the build for Win32 is very confusing. First, what are > > Which version are you trying to compile? It should be 5.1.1 or higher. > 5.1.1 and 5.1.2pre2 compile fine with MinGW. Are you trying to build > from MAIN in CVS? I haven't tried it lately. Did you read the MinGW > section in README.WIN32? > > > these files: > > win32\config.h.borland > > win32\config.h > > > > doing there? They are not included anywhere AFAICS. Isn't > > "win32\net-snmp-config.h" supposed to used instead? I like > > this naming better. > > Both are old files which can probably be removed. The Borland compiler > is no longer supported, only because there doesn't seem to be anyone > trying to compile Net-SNMP with it. I don't think the other file is > referenced by anything. > > > There presence of config.h is dangerous since <net-snmp-root>\win32 > > must be in the include-path to use this library. Thus > potentially shadowing > > another config.h elsewhere. Why must there be a special win32\ directory > > for headers anyway? Windows isn't that special. > > The win32 folder only used for MSVC. It is not used at all for MinGW or > Cygwin. > > Alex > > > > And how is "system/mingw32.h" supposed to be included? It should be > > included in "win32\net-snmp-config.h" AFAICS. > > And lines like > > "#define DEFAULT_MIBDIRS INSTALL_BASE ## "/share/snmp/mibs" > > > > are not valid preprocessor statements. Has anybody built with > MingW lately? > > > > Here are my patches needed to build this thing: > > > > ------------------ > > > > --- CVS-latest\win32\net-snmp\net-snmp-config.h Wed Jun 02 14:37:52 2004 > > +++ win32\net-snmp\net-snmp-config.h Fri Jun 25 18:26:20 2004 > > @@ -22,7 +22,7 @@ > > > > /* default location to look for mibs to load using the above tokens > > and/or those in the MIBS envrionment variable*/ > > -#define DEFAULT_MIBDIRS INSTALL_BASE ## "/share/snmp/mibs" > > +#define DEFAULT_MIBDIRS INSTALL_BASE "/share/snmp/mibs" > > > > /* default mib files to load, specified by path. */ > > /* #undef DEFAULT_MIBFILES */ > > @@ -65,7 +65,7 @@ > > /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving > > persisant information to this directory in the form of configuration > > lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */ > > -#define PERSISTENT_DIRECTORY INSTALL_BASE ## "/snmp/persist" > > +#define PERSISTENT_DIRECTORY INSTALL_BASE "/snmp/persist" > > > > /* PERSISTENT_MASK: the umask permissions to set up persistent > files with */ > > /* XXX no win32 umask #define PERSISTENT_MASK 077 */ > > @@ -96,10 +96,10 @@ > > > > /* SNMPLIBDIR contains important files */ > > > > -#define SNMPLIBPATH INSTALL_BASE ## "/lib" > > -#define SNMPSHAREPATH INSTALL_BASE ## "/share/snmp" > > -#define SNMPCONFPATH INSTALL_BASE ## "/etc/snmp" > > -#define SNMPDLMODPATH INSTALL_BASE ## "/lib/dlmod" > > +#define SNMPLIBPATH INSTALL_BASE "/lib" > > +#define SNMPSHAREPATH INSTALL_BASE "/share/snmp" > > +#define SNMPCONFPATH INSTALL_BASE "/etc/snmp" > > +#define SNMPDLMODPATH INSTALL_BASE "/lib/dlmod" > > > > /* LOGFILE: If defined it closes stdout/err/in and opens this > in out/err's > > place. (stdin is closed so that sh scripts won't wait for it) */ > > @@ -134,7 +134,7 @@ > > #define UNAMEPROG "/bin/uname" > > > > /* pattern for temporary file names */ > > -#define NETSNMP_TEMP_FILE_PATTERN INSTALL_BASE ## "/temp/snmpdXXXXXX" > > +#define NETSNMP_TEMP_FILE_PATTERN INSTALL_BASE "/temp/snmpdXXXXXX" > > > > /* testing code sections. */ > > /* #undef SNMP_TESTING_CODE */ > > @@ -1495,8 +1495,12 @@ > > > > #ifdef WIN32 > > > > +#ifdef __MINGW32__ > > +#include <net-snmp/system/mingw32.h> > > +#else > > typedef unsigned short mode_t; > > typedef unsigned __int32 uint32_t; > > +#endif > > > > /* Define if you have the closesocket function. */ > > #define HAVE_CLOSESOCKET 1 > > > > ------------------ > > > > --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 > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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
