[MacPorts] #42845: daemon @0.6.4 fails build on mavericks
MacPorts
noreply at macports.org
Sat Mar 15 08:34:00 PDT 2014
#42845: daemon @0.6.4 fails build on mavericks
----------------------+--------------------------------
Reporter: mtb19@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: daemon |
----------------------+--------------------------------
Comment (by mtb19@…):
After minimal investigation, it seems mavericks defines its own strlcpy
and strlcat (as macros). libslack (included by daemon) has redundant
definitions as C functions in slack/str.[hc]. Their implementations are
guarded by #ifndef HAVE_STRLC(AT|PY) statements in str.c, but their
prototype definitions are not similarly guarded in str.h.
Also, while HAVE_STRLC(AT|PY) are properly set to 1 in config.h for
Darwin, config.h is not included by daemon.c before daemon.c includes
slack/str.h, so even if the str.h definitions were guarded, compiling
daemon.c would fail to exclude them.
Attached is a patch that addresses both of these problems.
--
Ticket URL: <https://trac.macports.org/ticket/42845#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list