[MacPorts] #67248: grep/coreutils: tiger: error: expected '=', ',', '; ', 'asm' or '__attribute__' before 'mcontext64_t'

MacPorts noreply at macports.org
Mon Feb 5 20:50:46 UTC 2024


#67248: grep/coreutils: tiger: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'mcontext64_t'
-----------------------------+-------------------------
  Reporter:  barracuda156    |      Owner:  Schamschula
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.8.1
Resolution:                  |   Keywords:  tiger
      Port:  grep coreutils  |
-----------------------------+-------------------------

Comment (by ballapete):

 While checking why `lighttpd` does not find a few installed things I saw
 this in `configure.log`:

 {{{
 configure:7622: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -I/opt/local/include
 -I/opt/local/include/LegacySupport conftest.c >&5
 conftest.c:39: error: expected ';', ',' or ')' before 'ip'
 conftest.c:40: error: '_Restrict' undeclared here (not in a function)
 conftest.c:41: error: '_Restrict' undeclared here (not in a function)
 conftest.c: In function 'main':
 conftest.c:47: error: nested functions are disabled, use -fnested-
 functions to re-enable
 conftest.c:47: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before 't'
 conftest.c:47: error: 't' undeclared (first use in this function)
 conftest.c:47: error: (Each undeclared identifier is reported only once
 conftest.c:47: error: for each function it appears in.)
 conftest.c:49: warning: implicit declaration of function 'foo'
 conftest.c:49: error: type of formal parameter 1 is incomplete
 configure:7622: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "lighttpd"
 | #define PACKAGE_TARNAME "lighttpd"
 | #define PACKAGE_VERSION "1.4.73"
 | #define PACKAGE_STRING "lighttpd 1.4.73"
 | #define PACKAGE_BUGREPORT
 "https://redmine.lighttpd.net/projects/lighttpd/boards/2"
 | #define PACKAGE_URL "https://www.lighttpd.net/"
 | #define PACKAGE "lighttpd"
 | #define VERSION "1.4.73"
 | #define HAVE_STDIO_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_WCHAR_H 1
 | #define STDC_HEADERS 1
 | #define _ALL_SOURCE 1
 | #define _DARWIN_C_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _HPUX_ALT_XOPEN_SOCKET_API 1
 | #define _NETBSD_SOURCE 1
 | #define _OPENBSD_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
 | #define __STDC_WANT_LIB_EXT2__ 1
 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
 | #define _TANDEM_SOURCE 1
 | #define __EXTENSIONS__ 1
 | /* end confdefs.h.  */
 | typedef int *int_ptr;
 |          int foo (int_ptr _Restrict ip) { return ip[0]; }
 |          int bar (int [_Restrict]); /* Catch GCC bug 14050.  */
 |          int bar (int ip[_Restrict]) { return ip[0]; }
 |
 | int
 | main (void)
 | {
 | int s[1];
 |          int *_Restrict t = s;
 |          t[0] = 0;
 |          return foo (t) + bar (t);
 |
 |   ;
 |   return 0;
 | }
 }}}

 Is this the cure?

 {{{
 error: nested functions are disabled, use -fnested-functions to re-enable
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67248#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list