Package: cvsd
Severity: normal
Tags: patch
When building 'cvsd' on amd64 with gcc-4.0,
I get the following error:
make[2]: Entering directory `/cvsd-1.0.5'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -pedantic -Wall -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations
-Wformat-literal -c cvsd.c
cc1: error: unrecognized command line option "-Wformat-literal"
make[2]: *** [cvsd.o] Error 1
make[2]: Leaving directory `/cvsd-1.0.5'
With the attached patch 'cvsd' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/cvsd-1.0.5/configure ./configure
--- ../tmp-orig/cvsd-1.0.5/configure 2005-03-05 19:14:23.000000000 +0100
+++ ./configure 2005-03-07 21:53:14.566004071 +0100
@@ -9007,7 +9007,7 @@
# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
enableval="$enable_warnings"
- if test "x$enableval" != "no" ; then CFLAGS="$CFLAGS -pedantic -Wall
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations
-Wformat-literal" ; fi
+ if test "x$enableval" != "no" ; then CFLAGS="$CFLAGS -pedantic -Wall
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Waggregate-return
-Wmissing-declarations" ; fi
fi;
# check wether we want use tcp wrappers (yes,no,maybe)
diff -urN ../tmp-orig/cvsd-1.0.5/configure.ac ./configure.ac
--- ../tmp-orig/cvsd-1.0.5/configure.ac 2005-03-05 19:12:28.000000000 +0100
+++ ./configure.ac 2005-03-07 21:52:16.860142367 +0100
@@ -173,7 +173,7 @@
AC_ARG_ENABLE(warnings,
AS_HELP_STRING([--enable-warnings],
[enable extra compiler warnings (gcc)]),
- [if test "x$enableval" != "no" ; then CFLAGS="$CFLAGS -pedantic
-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations
-Wformat-literal" ; fi])
+ [if test "x$enableval" != "no" ; then CFLAGS="$CFLAGS -pedantic
-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Waggregate-return
-Wmissing-declarations" ; fi])
# check wether we want use tcp wrappers (yes,no,maybe)
WANT_LIBWRAP="no"
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]