--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: mutrace: FTBFS: backtrace-symbols.c:101:55: error: ‘PTR’ undeclared (first use in this function)
- From: Lucas Nussbaum <lucas@debian.org>
- Date: Fri, 24 Jun 2022 12:01:59 +0200
- Message-id: <YrWLl0w+Zn0w7uEU@xanadu.blop.info>
Source: mutrace
Version: 0.2.0-3.4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20220624 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -pthread -I/usr/include/libiberty -g -O2 -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wwrite-strings -Wno-unused-parameter -Wno-strict-aliasing -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option -fno-omit-frame-pointer -c -o libmutrace_backtrace_symbols_la-backtrace-symbols.lo `test -f 'backtrace-symbols.c' || echo './'`backtrace-symbols.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -pthread -I/usr/include/libiberty -g -O2 -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wwrite-strings -Wno-unused-parameter -Wno-strict-aliasing -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option -fno-omit-frame-pointer -c backtrace-symbols.c -fPIC -DPIC -o .libs/libmutrace_backtrace_symbols_la-backtrace-symbols.o
> In file included from backtrace-symbols.c:53:
> /usr/include/libiberty/libiberty.h:107:6: warning: "HAVE_DECL_BASENAME" is not defined, evaluates to 0 [-Wundef]
> 107 | #if !HAVE_DECL_BASENAME
> | ^~~~~~~~~~~~~~~~~~
> /usr/include/libiberty/libiberty.h:112:14: warning: redundant redeclaration of ‘basename’ [-Wredundant-decls]
> 112 | extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
> | ^~~~~~~~
> In file included from backtrace-symbols.c:48:
> /usr/include/string.h:511:14: note: previous declaration of ‘basename’ with type ‘char *(const char *)’
> 511 | extern char *basename (const char *__filename) __THROW __nonnull ((1));
> | ^~~~~~~~
> In file included from backtrace-symbols.c:52:
> backtrace-symbols.c: In function ‘slurp_symtab’:
> backtrace-symbols.c:101:55: error: ‘PTR’ undeclared (first use in this function)
> 101 | symcount = bfd_read_minisymbols(abfd, false, (PTR) & syms, &size);
> | ^~~
> backtrace-symbols.c:101:55: note: each undeclared identifier is reported only once for each function it appears in
> backtrace-symbols.c: In function ‘translate_addresses_buf’:
> backtrace-symbols.c:215:18: error: ‘PTR’ undeclared (first use in this function)
> 215 | (PTR) NULL);
> | ^~~
> make[2]: *** [Makefile:665: libmutrace_backtrace_symbols_la-backtrace-symbols.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/06/24/mutrace_0.2.0-3.4_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---