Package: lgeneral
Version: 1.2.3+dfsg-1
Usertags: goto-cc
Tags: upstream

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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -fPIE 
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security 
-Wall  -fPIE -pie -Wl,-z,relro -Wl,-z,now -o testfile  testfile-file.o 
testfile-list.o testfile-misc.o ../util/libutil.a -lm 

error: conflicting function declarations "char_width"
old definition in module file file file.c line 230
void ()
new definition in module misc file sdl.h line 100
signed int (struct _Font *, char)
Makefile:346: recipe for target 'testfile' failed
make[4]: *** [testfile] Error 64

Reviewing the code here

http://sources.debian.net/src/lgeneral/1.2.3%2Bdfsg-1/src/file.c?hl=229,230#L228

it seems the linker is just shut up in a proper way as, really, at least the
types should match to avoid a chance of undefined behaviour.

Best,
Michael

Attachment: pgpte8Ualtdxy.pgp
Description: PGP signature

Reply via email to