Source: trn4 Version: 4.0-test77-16 Severity: serious Tags: ftbfs sid trixie Justification: fails to build from source (but built successfully in the past)
Hi, trn4 FTBFS with -Werror=implicit-function-declaration which was recently enabled by default in dpkg 1.22.6 to support the 64-bit time_t transition. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration debian/rules override_dh_auto_configure make[1]: Entering directory '/build/trn4-4.0-test77' cp debian/Policy.sh . # Configure adds -DDEBUG for us when we use -g. ./Configure -OdErs First let's make sure your kit is complete. Checking... Locating common programs... Checking compatibility between /usr/bin/echo and builtin echo (if any)... Symbolic links are supported. Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. aix_rs domainos i386 linux sco_3_2_4 svr4 altos486 dynix irix mc6000 sco_xenix convexos freebsd isc_2_2_1 mips sgi dec_osf1 hp9000_800 isc_3_2_2 next solaris_2 dgux hpux isc_3_2_3 sco_3 sunos Which of these apply, if any? [Policy linux] Operating system name? [linux] Select the news spool support ("local", "nntp", or "both"): [both] Do you want to use generic user-authentication? [y] Enter "local", a server name, or a file name (~name ok): [/etc/news/server] Do you expect to run these scripts and binaries on multiple machines? [n] Installation prefix to use? (~name ok) [/usr] Where is the news library directory for local news? (~name ok) [/var/lib/news] Directory /var/lib/news doesn't exist. Use that name anyway? [y] Where is the newsgroups file? ("none" ok) (~name ok) [none] Pathname where trn's inews will reside? ("none" ok) (~name ok) [/usr/lib/trn4] Directory /usr/lib/trn4 doesn't exist. Use that name anyway? [y] Which inews should be used for posting local articles? (~name ok) [/usr/bin/inews] File /usr/bin/inews doesn't exist. Use that name anyway? [y] Enter a local directory for overview files, "remote", or "none": (~name ok) [remote] Enter a local directory for thread files, "remote", or "none": (~name ok) [remote] Do you want trn to default to -x, regardless of name? [n] Should the -X option be on by default for trn (not rn)? [y] Pathname where the public executables will reside? (~name ok) [/usr/lib/trn4] Directory /usr/lib/trn4 doesn't exist. Use that name anyway? [y] What directory name should be used for the install? (~name ok) [/usr/lib/trn4] Directory /usr/lib/trn4 doesn't exist. Use that name anyway? [y] What is the distribution code for your local organization? [none] What is the distribution code for your organization? [none] What is the distribution code for your city? [none] What is the distribution code for your state/province? [none] What is the distribution code for your multi-state region? [none] What is the distribution code for your country? [none] What is the distribution code for your continent? [none] System manual is in /usr/share/man/man1. Use which C compiler? [gcc] Checking for GNU cc in disguise and/or its version number... What hostname goes on the From line of this machine's postings? [/etc/mailname] Compare how many dot-separated words from the end of the hostname? [2] Where do the manual pages (source) go? (~name ok) [/usr/share/man/man1] What directory name should be used for the install? (~name ok) [/usr/share/man/man1] Pathname where the private library files will reside? (~name ok) [/usr/share/trn4] What directory name should be used for the install? (~name ok) [/usr/share/trn4] Directory /usr/share/trn4 doesn't exist. Use that name anyway? [y] Which interactive speller should we use? ("none" ok) [/usr/bin/ispell] What options should be used? ("none" ok) [none] What global mimecap file should trn use? ("none" ok) (~name ok) [/etc/mailcap] File /etc/mailcap doesn't exist. Use that name anyway? [y] Organization: [/etc/news/organization] Do you want to include strn's scan and score features? [y] Now, how can we feed standard input to your C preprocessor... Directories to use for library searches? [/lib /lib/x86_64-linux-gnu /usr/lib /usr/lib/x86_64-linux-gnu] What is the file extension used for shared libraries? [so] Checking for optional libraries... Any additional libraries? [-lresolv -lnsl] What optimizer/debugger flag should be used? [-O] Any additional cc flags? [-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/trn4-4.0-test77=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DINET6 -D_FILE_OFFSET_BITS=64 -fpcc-struct-return] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [-Wl,-z,relro] Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: I used the command: gcc -O -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/trn4-4.0-test77=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DINET6 -D_FILE_OFFSET_BITS=64 -fpcc-struct-return -o try -Wl,-z,relro try.c -lresolv -lnsl ./try and I got the following output: try.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main() { printf("Ok\n"); exit(0); } | ^~~~ try.c: In function 'main': try.c:2:26: error: implicit declaration of function 'exit' [-Werror=implicit-function-declaration] 2 | main() { printf("Ok\n"); exit(0); } | ^~~~ try.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 1 | #include <stdio.h> +++ |+#include <stdlib.h> 2 | main() { printf("Ok\n"); exit(0); } try.c:2:26: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 2 | main() { printf("Ok\n"); exit(0); } | ^~~~ try.c:2:26: note: include '<stdlib.h>' or provide a declaration of 'exit' cc1: some warnings being treated as errors I can't compile the test program. You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure. make[1]: *** [debian/rules:13: override_dh_auto_configure] Error 1 Andreas