Andrew Hood wrote:
Andy Smith wrote:
Thomas Anders wrote:
-Coders,
is there anyone who can give feedback on how/whether 5.3.1.pre2 (or
pre3/rcX when it comes out) builds on Windows with MSVC/MinGW/Cygwin?
Builds with "Microsoft Visual Studio .NET". How do you run tests without
using CygWin/MinGW?
Alex may have a way to do this without a sh type shell, but I have
always used MSyS in the past. I was in a bit of a hurry this time and
just threw together a quick Windows vm.
Won't cross compile (MinGW environment running on Linux), but I haven't
ever tried this before.
cross-configure.sh --prefix=/usr --with-endianness=little --disable-agent
[...]
In my build script the MinGW section looks like this:
mingw)
cross-configure.sh --prefix='c:/usr/Net-SNMP' \
--sysconfdir='c:/usr/etc' \
--with-persistent-directory='c:/usr/persist' \
--with-mibdirs='c:/usr/share/snmp/mibs' \
--with-default-snmp-version=3 \
--with-logfile='C:/usr/logs/snmpd.log' \
--with-sys-contact='[EMAIL PROTECTED]' \
--with-sys-location='Here' \
--with-libs="-lregex" \
--with-endianness=little \
--enable-developer \
--with-out-mib-modules="host disman/schedule
disman/event-mib"
cross-make.sh
;;
I have cross compiled successfully on linux in the past with the above
script. I just recently built the candidate MinGW on SUSE 10.1 but the
errors I am getting are from the disman/schedule mib. For some reason on
Linux the '--with-out-mib-modules' line is not working correctly. So far
that is the only problem I have found with that version of MinGW.
[...]
> which acts as if I'd said '--cache-file=cross-config.cache'
> '--target=i386-mingw32msvc' '--host=i386-mingw32msvc'
> '--build=i386-linux' '--prefix=/usr' '--with-endianness=little'
> '--disable-agent' 'build_alias=i386-linux' > > > > >'
>host_alias=i386-mingw32msvc'
> 'target_alias=i386-mingw32msvc'
That is correct. I did a Q&D fix for that in the mingw32msvc.h system
header. It defines mingw so all of the #ifdef's work.
the libs and apps build fine with MinGW using gcc 3.4.2. Evidently I
don't have kill.exe so the 'make test' failed.
kill.exe is in the resource kit. You can probably use pskill.exe from
the tools at sysinternals.com. Just put a copy in the PATH and rename it.
I was lazy :-) I will put a little more energy into the MinGW stuff when
I get the cross tools working again. I am hoping to have a little time
to work this project into my list again, but will probably concentrate
more on x86_64 Linux. Any help with MinGW would be appreciated.
Regards,
Andy
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders