[MacPorts] #61635: calc @2.12.6.8: error: expected parameter declarator (was: calc-2.12.6.8 errors calling __builtin___memmove_chk when building with Big Sur/Xcode 12.2)
MacPorts
noreply at macports.org
Tue Nov 24 06:09:54 UTC 2020
#61635: calc @2.12.6.8: error: expected parameter declarator
-----------------------+----------------------
Reporter: leuliett | Owner: pmetzger
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur
Port: calc |
-----------------------+----------------------
Changes (by ryandesign):
* owner: (none) => pmetzger
* status: new => assigned
* port: calc-2.12.6.8 => calc
* keywords: Big Sur => bigsur
Comment:
{{{
:info:build ../alloc.h:88:14: error: expected parameter declarator
:info:build E_FUNC void *memmove(void *s1, CONST void *s2, MEMMOVE_SIZE_T
n);
:info:build ^
:info:build
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/secure/_string.h:70:47:
note: expanded from macro 'memmove'
:info:build __builtin___memmove_chk (dest, __VA_ARGS__,
__darwin_obsz0 (dest))
:info:build ^
}}}
It looks like it's trying to redefine the standard `memmove` function. The
project's build system has code that's supposed to determine whether the
system has a standard `memmove` function; that determination might not be
working correctly in this case.
If this were a normal autotools project we would look for implicit
declaration of function errors in the config.log but this project does not
use autotools and does not have a config.log so I'm not sure if the errors
are saved anywhere for us to look at.
The determination of `memmove` availability is made using the source file
have_memmv.c. In that file I see that it is trying to use the function
`memmove` but does not have the line `#include <string.h>` which is where
that function is defined. Adding that line to that file may help, but
there may be other tests that need similar fixes.
It looks like we could get the build system to disable quiet mode and thus
maybe see the results of running these tests by adding `Q=` to the build
args.
A new version of calc is available. We should probably start by updating
to that version and see if that improves the situation.
--
Ticket URL: <https://trac.macports.org/ticket/61635#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list