[MacPorts] #67462: libplist @2.3.0 build failure: plistutil.c:119:36: error: use of undeclared identifier 'PLIST_FORMAT_BINARY'
MacPorts
noreply at macports.org
Fri May 19 21:25:50 UTC 2023
#67462: libplist @2.3.0 build failure: plistutil.c:119:36: error: use of undeclared
identifier 'PLIST_FORMAT_BINARY'
-----------------------+--------------------------
Reporter: dbl001 | Owner: JacksonIsaac
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: libplist |
-----------------------+--------------------------
Comment (by ryandesign):
The order of the include flags is wrong:
{{{
-I. -I.. -I/opt/local/include [...] -I../include
}}}
So if there is any file in ../include that also exists in
/opt/local/include, the one in /opt/local/include will be used, and that
will probably be the wrong file. It might be an unrelated file, or it
could be a file from a previous version of libplist.
Try with trace mode to hide files from ports that are not declared as
dependencies:
{{{
sudo port clean libplist
sudo port -st install libplist
}}}
If that fixes it, the solution is for the order of the flags to be
corrected. If that is not possible, another solution is to change
`-I/opt/local/include` to `-isystem/opt/local/include`:
{{{
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
}}}
`-isystem` paths are searched after `-I` paths. Or to remove
`-I${prefix}/include` entirely since libplist doesn't have any library
dependencies:
{{{
configure.cppflags-delete -I${prefix}/include
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67462#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list