[zeromq-dev] Build problems with trunk on OS X 10.5

Martin Sustrik sustrik at fastmq.com
Mon Feb 15 19:16:49 CET 2010


Brian Granger wrote:
> Getting closer maybe:
> 
> $ sudo cp /usr/X11/share/aclocal/pkg.m4 /usr/share/aclocal
> $ ./autogen.sh
> $ ./configure --prefix=/usr/local/zeromq2    # This works now!
> $ make

Nice. I have no idea what's going on here. Is there a way to get this 
into the standard build?

> After a while:
> 
>  g++ -DHAVE_CONFIG_H -I. -Wall -Wno-uninitialized -g -O2 -MT
> libzmq_la-ip.lo -MD -MP -MF .deps/libzmq_la-ip.Tpo -c ip.cpp
> -fno-common -DPIC -o .libs/libzmq_la-ip.o
> ip.cpp: In function 'int zmq::resolve_ip_interface(sockaddr_storage*,
> socklen_t*, const char*)':
> ip.cpp:242: error: 'AI_NUMERICSERV' was not declared in this scope
> ip.cpp: In function 'int zmq::resolve_ip_hostname(sockaddr_storage*,
> socklen_t*, const char*)':
> ip.cpp:291: error: 'AI_NUMERICSERV' was not declared in this scope
> make[2]: *** [libzmq_la-ip.lo] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1

Ok, that's new IPv6 related code. Not checked on OSX yet. Easy hack 
would be:

#if !defined ZMQ_HAVE_OSX
     //  Restrict hostname/service to literals to avoid any DNS lookups or
     //  service-name irregularity due to indeterminate socktype.
     req.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV;
#endif

Same trick on line 291.

Let us know whether it helps.
Martin



More information about the zeromq-dev mailing list