Package: libnids
Version: 1.23-2
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.

[...]
x86_64-linux-gnu-gcc -shared -Wl,-soname,libnids.so.1.21 -o libnids.so.1.21 
checksum_pic.o ip_fragment_pic.o ip_options_pic.o killtcp_pic.o libnids_pic.o 
scan_pic.o tcp_pic.o util_pic.o allpromisc_pic.o hash_pic.o -lgthread-2.0 -lnsl 
 -lglib-2.0  -lgthread-2.0 -pthread -lglib-2.0  -lnet -L/usr/lib -lpcap

error: conflicting function declarations "ip_fast_csum"
old definition in module checksum file checksum.c line 259
unsigned short int (unsigned short int *addr, signed int len)
new definition in module libnids file checksum.h line 5
unsigned short int (unsigned char *, unsigned int)
Makefile:68: recipe for target 'libnids.so.1.21' failed
make[2]: *** [libnids.so.1.21] Error 64
make[2]: Leaving directory 
'/srv/jenkins-slave/workspace/sid-goto-cc-libnids/libnids-1.23/src'
Makefile:10: recipe for target 'shared' failed
make[1]: *** [shared] Error 2

Note that there are two errors here, with the first one being worse: passing in
a char* and interpreting it as short int* will break for all systems with
sizeof(short)>sizeof(char). Also the signedness of the second parameter should
be fixed to ensure correct operation.

Best,
Michael

Attachment: pgpaXYYMxlLaS.pgp
Description: PGP signature

Reply via email to