Opened 2 months ago

Last modified 8 weeks ago

#61635 assigned defect

calc @2.12.6.8: error: expected parameter declarator

Reported by: leuliett (Eric Leuliette) Owned by: pmetzger (Perry E. Metzger)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc: mrichmon (Michael Richmond)
Port: calc

Description (last modified by ryandesign (Ryan Schmidt))

The function declarations for memmove and __builtin___memmove_chk in alloc.h aren't compatible with the include files with Xcode12.2/BigSure: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/secure/

Attachments (1)

main.log (20.1 KB) - added by leuliett (Eric Leuliette) 2 months ago.
calc/main.log

Download all attachments as: .zip

Change History (6)

Changed 2 months ago by leuliett (Eric Leuliette)

Attachment: main.log added

calc/main.log

comment:1 Changed 2 months ago by leuliett (Eric Leuliette)

Port: calc-2.12.6.8 added

comment:2 Changed 2 months ago by mrichmon (Michael Richmond)

Cc: mrichmon added

comment:3 Changed 2 months ago by ryandesign (Ryan Schmidt)

Keywords: bigsur added; Big Sur removed
Owner: set to pmetzger
Port: calc added; calc-2.12.6.8 removed
Status: newassigned
Summary: calc-2.12.6.8 errors calling __builtin___memmove_chk when building with Big Sur/Xcode 12.2calc @2.12.6.8: error: expected parameter declarator
: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.

comment:4 Changed 2 months ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

comment:5 Changed 8 weeks ago by mrichmon (Michael Richmond)

Attempted basic compile of current latest calc-2.12.7.1 code. Same memmove type error occurs. Opened issue on calc github repo: https://github.com/lcn2/calc/issues/19

Note: See TracTickets for help on using tickets.