Re: gdb package errors out

Merle Reinhart via Fink-devel <[email protected]> Tue, 11 Feb 2020 22:12:44 -0500
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>
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))
                                    ^
1 error generated.
make: *** [main.o] Error 1
### execution of /usr/bin/make failed, exit code 2
### execution of /tmp/fink.JseA3 failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-exuberant-ctags-5.8-1
(Reading database ... 442618 files and directories currently installed.)
Removing fink-buildlock-exuberant-ctags-5.8-1 ...
Failed: phase compiling: exuberant-ctags-5.8-1 failed

Before reporting any errors, please run "fink selfupdate" and try again.

If you continue to have issues, please check to see if the FAQ on Fink's 
website solves the problem.  If not, ask on one (not both, please) of
these mailing lists:

	The Fink Users List <[email protected]>
	The Fink Beginners List <[email protected]>,

with a carbon copy to the maintainer:

	Daniel Johnson <[email protected]>

Note that this is preferable to emailing just the maintainer directly,
since most fink package maintainers do not have access to all possible
hardware and software configurations.

Please try to include the complete error message in your report.  This
generally consists of a compiler line starting with e.g. "gcc" or "g++"
followed by the actual error output from the compiler.

Also include the following system information:
Package manager version: 0.45.0
Distribution version: selfupdate-git Tue Feb 11 20:52:48 2020, 10.15, x86_64
Trees: local/main stable/main local/injected
Xcode.app: 11.3.1
Xcode command-line tools: 11.3.1.0.1.1576735732
Max. Fink build jobs:  1



> On Feb 11, 2020, at 8:15 PM, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 2/11/20 6:49 PM, Merle Reinhart via Fink-devel wrote:
>> All,
>> The updated gdb package seems to have a problem:
>> [~] % fink update-all
>> Information about 10215 packages read in 1 seconds.
>> The package 'gdb' will be built and installed.
>> Reading build dependency for gdb-8.3.1-3...
>> WARNING: While resolving dependency "pkg-config" for package "gdb-8.3.1-3", package "pkg-config" was not found.
>> Can't resolve dependency "pkg-config" for package "gdb-8.3.1-3" (no matching
>> packages/versions found)
>> Exiting with failure.
>> In the BuildDepends, one of the dependencies is pkg-config.  I think the hyphen is a typo and should be remove (pkgconfig exists, but not pkg-config).
> 
> Fixed.  Silly typo.
> 
> 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