Frédéric,

I'm curious as to how you are configuring the windows_port branch. When I try to cross-compile, configure complains about socklen_t:

$ ./configure --host=i686-pc-mingw32
Network UPS Tools version 2.4.3
[...]
checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t

The test (m4/nut_type_socklen_t.m4) is only looking in sys/types.h and sys/socket.h, which don't exist in either of the two mingw32 cross- compiler setups that I have tried (on Ubuntu 10.04 and Fink).

I am unsure as to whether rsync (the apparent source of that autoconf test) will properly compile on mingw32.

We might be able to do something like this, but I am open to other ideas (and I am not suggesting we depend on gnulib):

http://www.mail-archive.com/[email protected]/msg01920.html
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to