Package: bazaar Version: 1.3.2-1 Severity: normal Tags: patch When building 'bazaar' on amd64/unstable with gcc-4.0, I get the following error:
cc -DFOR_MAKEFILE_DEPENDENCIES -E -I/bazaar-1.3.2/debian/build/config-include -I/bazaar-1.3.2/debian/build -I/bazaar-1.3.2/src -g -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast /bazaar-1.3.2/src/hackerlab/os/errno-to-string.c | sed -f /bazaar-1.3.2/src/build-tools/Makefiles/cpp-to-includes.sed | sort -u | sed -e 's/$/ \\/' >> errno-to-string.d echo >> errno-to-string.d printf "%s %s.o %s.d: " char-cmp-locale char-cmp-locale char-cmp-locale > char-cmp-locale.d cc -DFOR_MAKEFILE_DEPENDENCIES -E -I/bazaar-1.3.2/debian/build/config-include -I/bazaar-1.3.2/debian/build -I/bazaar-1.3.2/src -g -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast /bazaar-1.3.2/src/hackerlab/os/char-cmp-locale.c | sed -f /bazaar-1.3.2/src/build-tools/Makefiles/cpp-to-includes.sed | sort -u | sed -e 's/$/ \\/' >> char-cmp-locale.d echo >> char-cmp-locale.d make[3]: Leaving directory `/bazaar-1.3.2/debian/build/hackerlab/os' make[3]: Entering directory `/bazaar-1.3.2/debian/build/hackerlab/os' cc -I/bazaar-1.3.2/debian/build/config-include -I/bazaar-1.3.2/debian/build -I/bazaar-1.3.2/src -g -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -c -o char-class-locale.o /bazaar-1.3.2/src/hackerlab/os/char-class-locale.c cc -I/bazaar-1.3.2/debian/build/config-include -I/bazaar-1.3.2/debian/build -I/bazaar-1.3.2/src -g -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -c -o char-cmp-locale.o /bazaar-1.3.2/src/hackerlab/os/char-cmp-locale.c cc -I/bazaar-1.3.2/debian/build/config-include -I/bazaar-1.3.2/debian/build -I/bazaar-1.3.2/src -g -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -c -o errno-to-string.o /bazaar-1.3.2/src/hackerlab/os/errno-to-string.c cc1: warnings being treated as errors /bazaar-1.3.2/src/hackerlab/os/errno-to-string.c: In function 'errno_to_string': /bazaar-1.3.2/src/hackerlab/os/errno-to-string.c:21: warning: pointer targets in return differ in signedness make[3]: *** [errno-to-string.o] Error 1 make[3]: Leaving directory `/bazaar-1.3.2/debian/build/hackerlab/os' There are a lot more warnings with gcc-4.0 and also one error in src/hackerlab/vu/vu-virtual-null.{h,c} where a function is declared as 'extern' and later defined as 'static' which is not allowed by the C standard. With the attached patch 'bazaar' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/bazaar-1.3.2/debian/rules ./debian/rules --- ../tmp-orig/bazaar-1.3.2/debian/rules 2005-04-19 08:18:55.600832958 +0200 +++ ./debian/rules 2005-04-19 08:18:42.626331664 +0200 @@ -4,7 +4,7 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else - CFLAGS += -O2 -Wall -Werror -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast + CFLAGS += -O2 -Wall -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast # -Wcast-qual -Wbad-function-cast -Wextra endif export CFLAGS diff -urN ../tmp-orig/bazaar-1.3.2/src/hackerlab/vu/vu-virtual-null.h ./src/hackerlab/vu/vu-virtual-null.h --- ../tmp-orig/bazaar-1.3.2/src/hackerlab/vu/vu-virtual-null.h 2005-04-14 10:52:19.000000000 +0200 +++ ./src/hackerlab/vu/vu-virtual-null.h 2005-04-19 07:57:43.669788956 +0200 @@ -22,7 +22,7 @@ * An in-process emulation of /dev/null. * */ -extern struct vu_fs_discipline vu_virtual_null_vtable; +static struct vu_fs_discipline vu_virtual_null_vtable; /* automatically generated __STDC__ prototypes */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]