Package: moria Version: 5.6.debian.1-1 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.
[...] cc -o moria -O2 `dpkg-buildflags --get CFLAGS` -D_FORTIFY_SOURCE=2 main.o misc1.o misc2.o misc3.o misc4.o store1.o files.o io.o create.o desc.o generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o wizard.o store2.o signals.o moria1.o moria2.o moria3.o moria4.o monsters.o treasure.o variable.o rnd.o recall.o unix.o player.o tables.o -lcurses `dpkg-buildflags --get LDFLAGS` -D_FORTIFY_SOURCE=2 error: conflicting function declarations "getuid" old definition in module main file main.c line 114 unsigned short int () new definition in module unix file /usr/include/unistd.h line 697 unsigned int (void) Makefile:71: recipe for target 'moria' failed make[2]: *** [moria] Error 64 make[2]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-moria/moria-5.6.debian.1/build' Makefile:11: recipe for target 'moria' failed make[1]: *** [moria] Error 1 The inappropriate declaration in main.c will cause spurious failures for any UID greater or equal to 2^16 or about any UID on big endian systems as only some of the bytes of the actual return value of setuid will be used. Best, Michael
pgpNWBaRgAJih.pgp
Description: PGP signature