[MacPorts] #69838: R-nloptr: stpncpy: error: expected parameter declarator
MacPorts
noreply at macports.org
Mon Apr 29 00:07:08 UTC 2024
#69838: R-nloptr: stpncpy: error: expected parameter declarator
---------------------------------------+--------------------------
Reporter: ryandesign | Owner: barracuda156
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: R-nloptr, legacy-support |
---------------------------------------+--------------------------
Comment (by fhgwright):
Replying to [comment:14 kencu]:
> the new stpncpy macro is coming from the 10.7 SDK.
>
> https://github.com/alexey-lysiuk/macos-
sdk/blob/2e3a0a902a4d8e641d44224ef2860a4f1ebfd9d7/MacOSX10.7.sdk/usr/include/secure/_string.h#L109
>
> I think we do need to add something to legacysupport for the new
function, like is done for others here:
>
> https://github.com/alexey-lysiuk/macos-
sdk/blob/main/MacOSX10.6.sdk/usr/include/secure/_string.h
If the intent is to fully support `_USE_FORTIFY_LEVEL`, then this
treatment would need to be applied to many functions, with `stpncpy()`
being just the tip of the iceberg. OTOH, if ignoring `_USE_FORTIFY_LEVEL`
is acceptable, then a simple `#undef` should be sufficient to fix the
problem. It might make sense to do the latter in the short term, with
more elaborate rework to come later.
--
Ticket URL: <https://trac.macports.org/ticket/69838#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list