Package: nn
Version: 6.7.3-8
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and 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.

[...]
cc -o mkprefix -Iconf -O2 -fno-strength-reduce -fomit-frame-pointer -pipe -O2 
prefix.o global.o -L/usr/lib
global.o: In function `new_temp_file':
global.c:(.text+0x37c): warning: the use of `mktemp' is dangerous, better use 
`mkstemp' or `mkdtemp'
file nn_term.h line 98: 

error: conflicting function declarations "nn_exitmsg"
old definition in module prefix file prefix.c line 156
void (void)
new definition in module global file nn_term.h line 98
void (signed int, char *, ...)
ymakefile:52: recipe for target 'mkprefix' failed
make[2]: *** [mkprefix] Error 64
make[2]: Leaving directory 
'/srv/jenkins-slave/workspace/sid-goto-cc-nn/nn-6.7.3'
Makefile:36: recipe for target 'all' failed
make[1]: *** [all] Error 2

It seems a range of implementations of nn_exitmsg exist, seemingly leaving it to
the linker to pick one by chance:

http://sources.debian.net/src/nn/6.7.3-8/prefix.c?hl=156#L156
http://sources.debian.net/src/nn/6.7.3-8/master.c?hl=1011#L1011
http://sources.debian.net/src/nn/6.7.3-8/account.c?hl=557#L557

The first one of these, however, not even matches the common forward
declaration:

http://sources.debian.net/src/nn/6.7.3-8/nn_term.h?hl=98#L98

There's a need for cleanup here.

Best,
Michael

Attachment: pgpNOryzlylxl.pgp
Description: PGP signature

Reply via email to