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

Brian Granger ellisonbg at gmail.com
Mon Feb 15 19:18:05 CET 2010


It seems that

AI_NUMERICSERV is not available on OS X:

http://github.com/ry/node/issues/issue/6

Brian

On Mon, Feb 15, 2010 at 10:12 AM, Brian Granger <ellisonbg at gmail.com> 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
>
> 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
>
> Thoughts?
>
> Cheers,
>
> Brian
>
> On Mon, Feb 15, 2010 at 10:02 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>> Some more data:
>>
>> pkg.m4 is missing:
>>
>> bgranger$ ls `aclocal --print-ac-dir`
>> bison-i18n.m4   libxml.m4       ltdl.m4
>> libtool.m4      libxslt.m4      wxwin.m4
>>
>> OS X does not come with pkg-config, so I installed it by hand.  Do I
>> need to install pkg.m4 separately?
>>
>> This diagnosis is consistent because when I comment out this:
>>
>> if test "x$have_pkg_config" != "xno"; then
>>   #  First instance of PKG_CHECK_ has to be executed
>>   PKG_CHECK_EXISTS([dummy_pkg], [], [])
>> fi
>>
>> I see get an error from something else pkg.m4:
>>
>> ./configure: line 23918: syntax error near unexpected token `GLIB,'
>> ./configure: line 23918: `    PKG_CHECK_MODULES(GLIB, glib-2.0 gthread-2.0)'
>>
>> Cheers,
>>
>> Brian
>>
>> On Mon, Feb 15, 2010 at 9:04 AM, Pavol Malosek <malosek at fastmq.com> wrote:
>>> Hello,
>>>
>>> Seems like PKG_CHECK_EXISTS macro is not getting expanded.
>>>
>>> Have a look if you have pkg.m4 file in aclocal --print-ac-dir
>>>
>>> and check pkg.m4 file if there is something like
>>> AC_DEFUN([PKG_CHECK_EXISTS],
>>>
>>> malo
>>>
>>> ----- Original Message ----- From: "Brian Granger" <ellisonbg at gmail.com>
>>> To: "zeromq-dev" <zeromq-dev at lists.zeromq.org>
>>> Sent: Saturday, February 13, 2010 9:36 PM
>>> Subject: [zeromq-dev] Build problems with trunk on OS X 10.5
>>>
>>>
>>>> Hi,
>>>>
>>>> I am trying to track down problems with zmq_poll and it sounds like
>>>> some of the issues have been fixed in trunk.  Thus, I am trying to
>>>> build trunk on OS X:
>>>>
>>>> * XCode 3.1.4 (latest version of XCode - also tried with older version)
>>>> * 10.5
>>>> * pkg-config 0.23
>>>>
>>>> I am doing this:
>>>>
>>>> ./autogen.sh
>>>> ./configure --prefix=/usr/local/zeromq-dev --with-c --with-cpp
>>>>
>>>> After some scrolling of configure output I see:
>>>>
>>>> checking for pkg-config... yes
>>>> ./configure: line 21985: syntax error near unexpected token `dummy_pkg,'
>>>> ./configure: line 21985: `    PKG_CHECK_EXISTS(dummy_pkg, , )'
>>>
>>
>>
>>
>> --
>> Brian E. Granger, Ph.D.
>> Assistant Professor of Physics
>> Cal Poly State University, San Luis Obispo
>> bgranger at calpoly.edu
>> ellisonbg at gmail.com
>>
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com



More information about the zeromq-dev mailing list