Package: drivel Version: 3.0.5-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.
libtool: link: gcc
-DDRIVEL_GLADE_FILE=\"/usr/share/drivel/glade/drivel-gtk.glade\"
-DDATADIR=\"/usr/share\" -DPREFIX=\"/usr\" -DG_LOG_DOMAIN=\"Drivel\" -I.. -Wall
-Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wdeclaration-after-statement -pthread -I/usr/include/gnome-vfs-2.0
-I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2
-I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm
-I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/dbus-1.0
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtksourceview-2.0
-I/usr/include/gtkspell-2.0 -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -Wall -g -O2 -g2 -Wall -Wl,-z -Wl,relro -Wl,-z
-Wl,defs -Wl,--as-needed -o drivel about.o atom.o blog_advogato.o blog_atom.o
blog_blogger.o blog_lj.o blog_mt.o blog_offline.o dialogs.o drivel_request.o
gtkdateentry.o insert_poll_dialog.o query_music_players.o journal.o login.o
main.o msg_queue.o network.o tray.o utils.o xmlrpc.o soup-xmlrpc-message.o
soup-xmlrpc-response.o -Wl,--export-dynamic -pthread -pthread -pthread
/usr/lib/x86_64-linux-gnu/libgnomevfs-2.so -lgconf-2 -lgthread-2.0
-lgmodule-2.0 -lgtksourceview-2.0 -lsoup-2.4 -lxml2 -lgtkspell -lgtk-x11-2.0
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 /usr/lib/x86_64-linux-gnu/libcairo.so
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig
/usr/lib/x86_64-linux-gnu/libfreetype.so -ldbus-glib-1 -ldbus-1 -lgobject-2.0
-lglib-2.0 -ldl -lm -pthread
error: conflicting function declarations "stat"
old definition in module about file /usr/include/x86_64-linux-gnu/sys/stat.h
line 453
signed int (const char *__path, struct stat *__statbuf)
new definition in module blog_blogger file
/usr/include/x86_64-linux-gnu/sys/stat.h line 453
signed int (const char *__path, struct stat *__statbuf)
reason for conflict at __statbuf in types listed below (struct/struct):
composite type component counts differ (15/18)
struct stat {
unsigned long int st_dev;
unsigned long int st_ino;
unsigned long int st_nlink;
unsigned int st_mode;
unsigned int st_uid;
unsigned int st_gid;
signed int __pad0;
unsigned long int st_rdev;
signed long int st_size;
signed long int st_blksize;
signed long int st_blocks;
struct timespec st_atim;
struct timespec st_mtim;
struct timespec st_ctim;
signed long int [3l] __unused;
}
struct stat {
unsigned long int st_dev;
unsigned long int st_ino;
unsigned long int st_nlink;
unsigned int st_mode;
unsigned int st_uid;
unsigned int st_gid;
signed int __pad0;
unsigned long int st_rdev;
signed long int st_size;
signed long int st_blksize;
signed long int st_blocks;
signed long int st_atime;
unsigned long int st_atimensec;
signed long int st_mtime;
unsigned long int st_mtimensec;
signed long int st_ctime;
unsigned long int st_ctimensec;
signed long int [3l] __unused;
}
This conflict of struct types is caused by a #define _XOPEN_SOURCE being present
in blog_blogger.c, whereas it is missing from (at least) about.c. It would be
advised to set _XOPEN_SOURCE on the compiler command line or in a project-wide
config file.
Best,
Michael
pgpI742PJ_PX6.pgp
Description: PGP signature

