Re: gdb package errors out

Hanspeter Niederstrasser <[email protected]> Wed, 12 Feb 2020 07:07:19 -0600
Newsgroups gmane.os.apple.fink.devel
Organization Snaggled Works
Message-ID <[email protected]>
On 2/11/20 9:12 PM, Merle Reinhart via Fink-devel wrote:
> Thanks.  Worked well on Mojave (xcode 10.3).  On Catalina (xcode 11.3.1), it failed in building exuberant-ctags with errors in the macos headers (see below).  I don’t know if this is another issue with the macos headers or something else.
> 
> Merle
> 
> 
> 
> configure: checking for new missing prototypes...
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> /usr/bin/make
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c args.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c ant.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c asm.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c asp.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c awk.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c basic.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c beta.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c c.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c cobol.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c dosbatch.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c eiffel.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c entry.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c erlang.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c flex.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c fortran.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c get.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c html.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c jscript.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c keyword.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c lisp.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c lregex.c
> lregex.c:411:29: warning: format string is not a string literal
>        (potentially insecure) [-Wformat-security]
>                          error (WARNING | PERROR, regexfile);
>                                                   ^~~~~~~~~
> lregex.c:411:29: note: treat the string as an argument to avoid this
>                          error (WARNING | PERROR, regexfile);
>                                                   ^
>                                                   "%s",
> 1 warning generated.
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c lua.c
> gcc -I. -I. -DHAVE_CONFIG_H -Os -c main.c
> In file included from main.c:62:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/dirent.h:80:2: error:
>        use of undeclared identifier 'unused'
>          __unused long   __padding; /* (__dd_rewind space left for bincompat) */
>          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:161:40: note:
>        expanded from macro '__unused'
> #define __unused        __attribute__((__unused__))
>                                         ^
> ./general.h:60:37: note: expanded from macro '__unused__'
> # define __unused__  __attribute__((unused))

This is a change in behavior (addition?) with the Xcode headers for 10.14+

See https://github.com/fink/fink-distributions/issues/573

Hanspeter


_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel