Windows build broken in 2.1, 2.2, 3.0

Description

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.

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

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.

Fixed

Details

Assignee

Reporter

Due date

Components

Affects versions

Priority

Created September 3, 2011 at 9:11 PM
Updated August 29, 2013 at 4:20 PM
Resolved September 4, 2011 at 10:54 AM