Package: libf2c2
Version: 20090411-2
Usertags: goto-cc
Tags: upstream

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 -shared -Wl,-soname,libf2c_i2.so.2\
                 -o libf2c_i2.so.2.1 *.o -lc -lm

error: conflicting function declarations "F77_aloc"
old definition in module f77_aloc file f77_aloc.c line 29
char * (signed int Len, const char *whence)
new definition in module getenv_ file getenv_.c line 11
char * (signed short int, const char *)
debian/make_lib:4: recipe for target 'all' failed
make[1]: *** [all] Error 64

The original declarations can be reviewed here:

http://sources.debian.net/src/libf2c2/20090411-2/f77_aloc.c?hl=14#L14
http://sources.debian.net/src/libf2c2/20090411-2/getenv_.c?hl=11#L11

It seems that the latter should be adjusted, replacing ftnlen by integer. One
may hope that the remaining bytes (for all systems with sizeof(short
int)<sizeof(int)) happen to be zero - but on big endian systems this should
yield some fun. (Not.)

Best,
Michael

Attachment: pgpEnH6LT86AO.pgp
Description: PGP signature

Reply via email to