zeromq 3.2.3: fails to build in MacOSX 10.6 (Snow Leopard) - missing strndup

Description

zeromq 3.2.3 fails to build in Mac OS X 10.6 (Snow Leopard) due to a non-existent strndup function (it only appeared in Mac OS X 10.7).

----------
...
CXXLD test_router_mandatory
CXX test_disconnect_inproc.o
test_disconnect_inproc.cpp: In function ‘int main(int, char**)’:
test_disconnect_inproc.cpp:48: error: ‘strndup’ was not declared in this scope
test_disconnect_inproc.cpp:52: error: ‘strndup’ was not declared in this scope
test_disconnect_inproc.cpp:72: error: ‘strndup’ was not declared in this scope
make[1]: *** [test_disconnect_inproc.o] Error 1
make: *** [all-recursive] Error 1
----------

More information in the following Macports' ticket:

Environment

None

Activity

Show:

Details

Assignee

Reporter

Components

Affects versions

Priority

Created May 17, 2013 at 1:29 AM
Updated May 17, 2013 at 1:29 AM