Bug#957902: uronode: ftbfs with GCC-10
Package: src:uronode
Version: 2.10-1
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/uronode_2.10-1_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
[...]
system.c:108:5: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
108 | chown(ptyname, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~
system.c: In function ‘login_open’:
system.c:169:5: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
169 | dup(0);
| ^~~~~~
system.c:170:5: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
170 | dup(0);
| ^~~~~~
system.c:205:5: warning: ignoring return value of ‘setgid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
205 | setgid(pw->pw_gid);
| ^~~~~~~~~~~~~~~~~~
system.c:206:5: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
206 | setuid(pw->pw_uid);
| ^~~~~~~~~~~~~~~~~~
system.c:269:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
269 | write(ptyfd, buf, cnt);
| ^~~~~~~~~~~~~~~~~~~~~~
system.c: In function ‘lastlog’:
system.c:538:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
538 | write(last, (char *)&ll, sizeof(ll));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipc.c: In function ‘usr2_handler’:
ipc.c:41:7: warning: implicit declaration of function ‘node_prompt’ [-Wimplicit-function-declaration]
41 | node_prompt();
| ^~~~~~~~~~~
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 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c axdigi.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 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c calibrate.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 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c flexd.c
flexd.c: In function ‘download_dest’:
flexd.c:146:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
146 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:155:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
155 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:170:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
170 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:183:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
183 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:190:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
190 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:211:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
211 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:240:2: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
240 | write(STDOUT_FILENO, buffer, strlen(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flexd.c:292:2: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
292 | write(s, commands[cmd_send], 2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wl,-z,relro -Wl,-z,now -o nodeusers user.o util.o nodeusers.o -lax25 -lax25io
gcc -Wl,-z,relro -Wl,-z,now -o calibrate calibrate.o -lax25 -lax25io
gcc -Wl,-z,relro -Wl,-z,now -o uronode user.o util.o node.o cmdparse.o config.o command.o jheard.o axcalluser.o gateway.o extcmd.o procinfo.o router.o system.o sysinfo.o ipc.o -lax25 -lax25io
gcc -Wl,-z,relro -Wl,-z,now -o axdigi axdigi.o -lax25 -lax25io
/usr/bin/ld: config.o:(.bss+0x20): multiple definition of `HostName'; util.o:(.bss+0x8): first defined here
/usr/bin/ld: config.o:(.data.rel.local+0x8): multiple definition of `Prompt'; util.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:96: uronode] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: