Bug#957028: axmail: ftbfs with GCC-10
Package: src:axmail
Version: 2.9-2
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/axmail_2.9-2_unstable_gcc10.log
The last lines of the build log are at the end of this report.
To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html
[...]
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c mbox.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c head.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c lock.c
mailcmd.c: In function ‘do_send’:
mailcmd.c:298:30: warning: zero-length gnu_printf format string [-Wformat-zero-length]
298 | { fprintf( f,"" );
| ^~
mailcmd.c: In function ‘do_read’:
mailcmd.c:125:26: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
125 | system(str);
| ^~~~~~~~~~~
mailcmd.c: In function ‘do_send’:
mailcmd.c:320:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
320 | fgets(str, LINESIZE, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mailcmd.c:372:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
372 | system(str);
| ^~~~~~~~~~~
mailcmd.c:376:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
376 | system(str);
| ^~~~~~~~~~~
mailcmd.c: In function ‘do_psend’:
mailcmd.c:482:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
482 | fgets(str, LINESIZE, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mailcmd.c:534:25: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
534 | system(str);
| ^~~~~~~~~~~
mailcmd.c:538:25: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
538 | system(str);
| ^~~~~~~~~~~
mailcmd.c: In function ‘do_fax’:
mailcmd.c:750:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
750 | fgets(str, LINESIZE, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mailcmd.c:776:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
776 | system(str);
| ^~~~~~~~~~~
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c axmail.c
axmail.c: In function ‘init_user’:
axmail.c:236:9: warning: implicit declaration of function ‘setgroups’; did you mean ‘getgroups’? [-Wimplicit-function-declaration]
236 | if ( (setgroups(0, NULL) == -1) || (setgid(pw->pw_gid) == -1) || (setuid(pw->pw_uid) == -1) )
| ^~~~~~~~~
| getgroups
axmail.c: In function ‘main’:
axmail.c:284:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
284 | fgets(p, 1023, stdin);
| ^~~~~~~~~~~~~~~~~~~~~
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c quit.c
quit.c: In function ‘save_mbox’:
quit.c:195:6: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
195 | freopen(mailbox, "a+", mb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -o axmail utils.o config.o adduser.o command.o mailcmd.o mbox.o head.o lock.o axmail.o quit.o -lcrypt -Wl,-z,relro -Wl,-z,now
/usr/bin/ld: config.o:(.bss+0xe0): multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: adduser.o:./utils.h:15: multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: command.o:(.bss+0x0): multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: mailcmd.o:(.bss+0x0): multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: mbox.o:./utils.h:15: multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: lock.o:./utils.h:15: multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: axmail.o:(.bss+0x0): multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
/usr/bin/ld: quit.o:./utils.h:15: multiple definition of `callsign'; utils.o:./utils.h:15: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:42: axmail] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: