Opened 11 months ago
Last modified 11 months ago
#72071 assigned defect
bash50 @5.0.18: error: expected identifier or '('
| Reported by: | dlamija (Muhammed Ramiza) | Owned by: | raimue (Rainer Müller) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.5 |
| Keywords: | sequoia | Cc: | |
| Port: | bash50 |
Description
bash50 required for bashdb but failed to be build with error related to SDK (SDKs/MacOSX15.sdk) on Sequoia
:info:build /usr/bin/clang -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"darwin24.3.0"' -DCONF_MACHTYPE='"x86_64-apple-darwin24.3.0"' -DCONF_VENDOR='"apple"' -DLOCALEDIR='"/opt/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DMACOSX -I. -I. -I./include -I./lib -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -pipe -Os -DSSH_SOURCE_BASHRC -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch x86_64 -Wno-parentheses -Wno-format-security -c siglist.c
:info:build ***********************************************************
:info:build * *
:info:build In file included from siglist.c:36:
:info:build In file included from ./xmalloc.h:25:
:info:build In file included from ./bashansi.h:28:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/string.h:58:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_string.h:134:7: error: expected identifier or '('
:info:build 134 | char *strsignal(int __sig);
:info:build | ^
:info:build ./siglist.h:37:27: note: expanded from macro 'strsignal'
:info:build 37 | # define strsignal(sig) (char *)sys_siglist[sig]
:info:build | ^
:info:build In file included from siglist.c:36:
:info:build In file included from ./xmalloc.h:25:
:info:build In file included from ./bashansi.h:28:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/string.h:58:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_string.h:134:7: error: expected ')'
:info:build ./siglist.h:37:27: note: expanded from macro 'strsignal'
:info:build 37 | # define strsignal(sig) (char *)sys_siglist[sig]
:info:build | ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_string.h:134:7: note: to match this '('
:info:build ./siglist.h:37:26: note: expanded from macro 'strsignal'
:info:build 37 | # define strsignal(sig) (char *)sys_siglist[sig]
:info:build | ^
:info:build siglist.c:38:7: error: redefinition of 'sys_siglist' with a different type: 'char *[32]' vs 'const char *const[32]'
:info:build 38 | char *sys_siglist[NSIG];
:info:build | ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: previous declaration is here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ^
:info:build siglist.c:46:20: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 46 | sys_siglist[i] = (char *)0x0;
:info:build | ~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:48:18: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 48 | sys_siglist[0] = _("Bogus signal");
:info:build | ~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:51:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 51 | sys_siglist[SIGHUP] = _("Hangup");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:55:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 55 | sys_siglist[SIGINT] = _("Interrupt");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:59:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 59 | sys_siglist[SIGQUIT] = _("Quit");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:63:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 63 | sys_siglist[SIGILL] = _("Illegal instruction");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:67:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 67 | sys_siglist[SIGTRAP] = _("BPT trace/trap");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:75:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 75 | sys_siglist[SIGABRT] = _("ABORT instruction");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:79:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 79 | sys_siglist[SIGEMT] = _("EMT instruction");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:83:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 83 | sys_siglist[SIGFPE] = _("Floating point exception");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:87:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 87 | sys_siglist[SIGKILL] = _("Killed");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:91:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 91 | sys_siglist[SIGBUS] = _("Bus error");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:95:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 95 | sys_siglist[SIGSEGV] = _("Segmentation fault");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:99:23: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 99 | sys_siglist[SIGSYS] = _("Bad system call");
:info:build | ~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:103:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 103 | sys_siglist[SIGPIPE] = _("Broken pipe");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build siglist.c:107:24: error: cannot assign to variable 'sys_siglist' with const-qualified type 'const char *const[32]'
:info:build 107 | sys_siglist[SIGALRM] = _("Alarm clock");
:info:build | ~~~~~~~~~~~~~~~~~~~~ ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/signal.h:70:30: note: variable 'sys_siglist' declared const here
:info:build 70 | extern __const char *__const sys_siglist[NSIG];
:info:build | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make: *** [siglist.o] Error 1
Change History (1)
comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | raimue removed |
|---|---|
| Keywords: | sequoia added; bash50 bashdb removed |
| Owner: | set to raimue |
| Status: | new → assigned |
| Summary: | bash50 error building siglist.c → bash50 @5.0.18: error: expected identifier or '(' |
Note: See
TracTickets for help on using
tickets.

We see the same problem on our macOS 15 build server.
https://build.macports.org/builders/ports-15_x86_64-builder/builds/23029/steps/install-port/logs/stdio
I can reproduce the problem on macOS 12 by building with MacPorts clang-19.
It is likely that some of these warnings are related to this issue: