#39 Return type declarations of function mhash_get_hash_name differ in signedness

open
nobody
None
1
2014-06-13
2014-06-13
No

Debian package version: 0.9.9.9-5

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 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z -Wl,relro -o .libs/rest_test mhash_save_restore_test.o ../lib/.libs/libmhash.so

error: conflicting function declarations "mhash_get_hash_name"
old definition in module mhash_save_restore_test file ../include/mutils/mhash.h line 58
char * (int)
new definition in module mhash file mhash.c line 244
unsigned char * (int type)
Makefile:589: recipe for target 'rest_test' failed

It seems the header file should be adjusted to match the actual definition in order to help the compiler generate appropriate diagnostics.

Best,
Michael

Discussion


Log in to post a comment.