Package: inetutils
Version: 2:1.9.2-1
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+pbuilder)
the build failed with the following error. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
gcc -std=gnu99  -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 
-Wformat -Werror=format-security  -Wl,-z,relro -o telnet authenc.o commands.o 
main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o 
../libtelnet/libtelnet.a ../libinetutils/libinetutils.a ../lib/libgnu.a 
-ltermcap -lcrypt -lshishi  

error: conflicting function declarations "logout"
old definition in module commands file commands.c line 1661
signed int (void)
new definition in module cleansess file /usr/include/utmp.h line 48
signed int (const char *)
Makefile:1443: recipe for target 'telnet' failed
make[3]: *** [telnet] Error 64
make[3]: Leaving directory 
'/srv/jenkins-slave/workspace/sid-goto-cc-inetutils/inetutils-1.9.2/telnet'
Makefile:1467: recipe for target 'all-recursive' failed

Reviewing the code, the maintainer might decide to raise the severity of this
bug report as wrong logout functions may be called here (with unknown
consequences). Consider the following variants:

telnet/commands.c declares the logout that cleansess.c is going to use here:

http://sources.debian.net/src/inetutils/2:1.9.2-1/telnet/commands.c?hl=1661#L1661

The only variant of logout taking an argument, however, is utmp_logout (and
looking at the file location of cleansess.c this might be the desired one):

http://sources.debian.net/src/inetutils/2:1.9.2-1/libinetutils/utmp_logout.c?hl=68#L68

Best,
Michael

Attachment: pgpoQ7G4_77co.pgp
Description: PGP signature

Reply via email to