Windows build broken in 2.1, 2.2, 3.0
Description
Environment
Windows
Activity
Show:

PieterP September 4, 2011 at 10:54 AM
Great! I'm marking as resolved then. Thanks.

Mikko Koppanen September 4, 2011 at 10:31 AM
https://build.zero.mq/job/libzmq2-1_mingw32-debian/299/ looks OK now.

Mikko Koppanen September 4, 2011 at 10:29 AM
Hi,
I think 3.0 is OK. I think I misread the build output, as there is no build for 3.0 at the moment.

PieterP September 4, 2011 at 8:59 AM
I've fixed & pushed err.hpp in 2-1 and 2-2. 3-0 already has this, so I'm unsure why that build would break.

Martin Sustrik September 4, 2011 at 6:21 AM
There are following two lines in err.hpp in the trunk:
// 0MQ-specific error codes are defined in zmq.h
#include "../include/zmq.h"
They don't seem to appear in 2-1 repo.
ip.cpp: In function 'int zmq::resolve_local_path(sockaddr_storage*, socklen_t*, const char*)':
ip.cpp:353:13: error: 'EPROTONOSUPPORT' was not declared in this scope
make[2]: *** [libzmq_la-ip.lo] Error 1
make[2]: Leaving directory `/c/hudson/workspace/libzmq2-2_mingw32-win7/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/hudson/workspace/libzmq2-2_mingw32-win7/src'
make: *** [all-recursive] Error 1
This can be fixed by adding #include "../include/zmq.h" at the top of the includes in ip.cpp, as this header defines EPROTONOSUPPORT. I can commit the fix if you want.