Bug#749161: Conflicting function definitions

Michael Tautschnig mt at debian.org
Sat May 24 15:56:05 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140524/d481b2dd/attachment.sig>


More information about the Pkg-games-devel mailing list