Re: [MacPorts] #39122: zmq @3.2.3 test error: ‘strndup’ was not declared in this scope
MacPorts
noreply at macports.org
Mon May 20 09:03:41 PDT 2013
#39122: zmq @3.2.3 test error: ‘strndup’ was not declared in this scope
-----------------------+----------------------
Reporter: deesto@… | Owner: merijn@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: | Keywords:
Port: zmq |
-----------------------+----------------------
Comment (by jdgleeson@…):
Adding strndup is certainly a logically correct fix. However, the fprintf
calls and strndup calls have already been removed upstream (see the link
to the zeromq git repository in comment:6).
The zmq maintainers do not explain why they simply deleted strndup, so I
will speculate: test_disconnect_inproc.cpp is a test function (i.e., not a
part of the zmq library). The calls to strndup occur only in fprintf
calls. The fprintf calls were probably used just to debug the test
function itself. There is no need for the extra output they would
generate. Final decision: simplify the code.
--
Ticket URL: <https://trac.macports.org/ticket/39122#comment:12>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list