Package: libarchive
Version: 3.1.2-8
Severity: minor
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.

[...]
  CCLD   libarchive_test
file libarchive/test/test_read_truncated.c line 29: error: conflicting array 
sizes for variable "buff2"
old definition in module test_read_data_large file 
libarchive/test/test_read_data_large.c line 42
char [10000000l]
new definition in module test_read_truncated file 
libarchive/test/test_read_truncated.c line 29
char [100000l]
Makefile:3858: recipe for target 'libarchive_test' failed
make[4]: *** [libarchive_test] Error 64
make[4]: Leaving directory 
'/srv/jenkins-slave/workspace/sid-goto-cc-libarchive/libarchive-3.1.2'
Makefile:11498: recipe for target 'check-am' failed

Reviewing the code, it seems these array declarations might just lack a "static"
to ensure they are file local. As is, they will share the storage space, and the
interaction may even have unexpected side effects.

Best,
Michael

Attachment: pgpmaH2pmXiQQ.pgp
Description: PGP signature

Reply via email to