[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#749785: oidentd: Inconsistent use of -funsigned-char



Package: oidentd
Version: 2.0.8-5
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.

[...]
gcc -funsigned-char -O0 -fvar-tracking -g3 -ggdb  -g3 -ggdb -O0 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall  -Wl,-z,relro -o oidentd  oidentd.o oidentd_util.o oidentd_inet_util.o oidentd_user_db.o oidentd_options.o oidentd_masq.o oidentd_cfg_scan.o oidentd_cfg_parse.o os.o -Lmissing -lmissing  

conflict on char_is_unsigned:
old value in module oidentd: 1
new value in module inet_aton: 0
Makefile:259: recipe for target 'oidentd' failed
make[4]: *** [oidentd] Error 64
make[4]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-oidentd/oidentd-2.0.8/src'
Makefile:326: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1

Indeed inet_aton is compiled without -funsigned-char:

make[4]: Entering directory '/srv/jenkins-slave/workspace/sid-goto-cc-oidentd/oidentd-2.0.8/src/missing'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src  -D_FORTIFY_SOURCE=2 -O0 -fvar-tracking -g3 -ggdb  -g3 -ggdb -O0 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -c inet_aton.c
[...]

This inconsistency may lead to undefined behaviour.

Best,
Michael

Attachment: pgppu4l0voppw.pgp
Description: PGP signature


Reply to: