[pkg-GD-devel] Bug#749111: Parameter types of any2eucjp differ in signedness

Michael Tautschnig mt at debian.org
Sat May 24 09:01:42 UTC 2014


Package: libgd2
Version: 2.1.0-3
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.

[...]
libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC  .libs/gd.o .libs/gd_color.o .libs/gd_color_map.o .libs/gd_transform.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o .libs/gd_gd2.o .libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o .libs/gd_gif_out.o .libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o .libs/gd_png.o .libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o .libs/gdcache.o .libs/gdfontg.o .libs/gdfontl.o .libs/gdfontmb.o .libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o .libs/gdhelpers.o .libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o .libs/gd_filter.o .libs/gd_nnquant.o .libs/gd_rotate.o .libs/gd_matrix.o .libs/gd_interpolation.o .libs/gd_crop.o .libs/webpimg.o .libs/gd_webp.o .libs/gd_tiff.o .libs/gd_tga.o .libs/gd_bmp.o .libs/gd_xbm.o .libs/gd_color_match.o   -ljpeg -lz -lpng12 /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig -lXpm -lX11 -lvpx -lm -L/usr/lib /usr/lib/x86_64-linux-gnu/libtiff.so  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed   -Wl,-soname -Wl,libgd.so.3 -o .libs/libgd.so.3.0.0

error: conflicting function declarations "any2eucjp"
old definition in module gdft file gdft.c line 262
signed int (char *, char *, unsigned int)
new definition in module gdkanji file gdkanji.c line 521
signed int (unsigned char *dest, unsigned char *src, unsigned int dest_max)
Makefile:601: recipe for target 'libgd.la' failed
make[3]: *** [libgd.la] Error 64
make[3]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-libgd2/libgd2-2.1.0/src'
Makefile:513: recipe for target 'all' failed
make[2]: *** [all] Error 2

Observe that the first two parameters differ in signedness of the pointer
sub-type. It may be sufficient to make the declaration here

http://sources.debian.net/src/libgd2/2.1.0-3/src/gdft.c?hl=262#L262

match the actual definition here

http://sources.debian.net/src/libgd2/2.1.0-3/src/gdkanji.c?hl=521#L521

to ensure that at the very least the compiler can generate suitable diagnostics,
and possibly warnings.

Bet,
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-gd-devel/attachments/20140524/607755fc/attachment.sig>


More information about the pkg-GD-devel mailing list