[Pkg-xen-devel] Bug#749612: blktap: Conflicting declarations of function __open_2

Michael Tautschnig mt at debian.org
Wed May 28 16:07:37 UTC 2014


Package: blktap
Version: 2.0.90-2
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and 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.

[...]
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libvhdio.o .libs/partition.o   -Wl,-rpath -Wl,/srv/jenkins-slave/workspace/sid-goto-cc-blktap/blktap-2.0.90/vhd/lib/.libs ./.libs/libvhd.so -ldl  -O2 -Wl,-z -Wl,relro   -Wl,-soname -Wl,libvhdio-2.0.90.so -o .libs/libvhdio-2.0.90.so

error: conflicting function declarations "__open_2"
old definition in module libvhdio file libvhdio.c line 992
signed int (const char *pathname, signed int flags, unsigned int _mode)
new definition in module libvhd file /usr/include/x86_64-linux-gnu/bits/fcntl2.h line 26
signed int (const char *, signed int)
Makefile:456: recipe for target 'libvhdio.la' failed
make[6]: *** [libvhdio.la] Error 64

As this implementation of __open_2 appears to require 3 arguments, undefined
behaviour should be expected when called as all public declarations of __open_2
suggest only 2 arguments are required (hence the value of third will remain
undefined).

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20140528/871afe95/attachment.sig>


More information about the Pkg-xen-devel mailing list