The attached patch uses a different fix for the FTBFS problem with gcc-4.0.
The previous patch apparently caused buffer overflows.
Regards Andreas Jochens
diff -urN ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix ./debian/patches/gcc4_fix --- ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix 1970-01-01 01:00:00.000000000 +0100 +++ ./debian/patches/gcc4_fix 2005-03-24 12:59:58.830365233 +0100 @@ -0,0 +1,12 @@ +diff -urN tmp/src/cf.extern.h cfengine-2.1.13/src/cf.extern.h +--- tmp/src/cf.extern.h 2005-01-06 14:29:51.000000000 +0100 ++++ cfengine-2.1.13/src/cf.extern.h 2005-03-24 12:59:53.676756819 +0100 +@@ -28,6 +28,8 @@ + /* */ + /*******************************************************************/ + ++#include "getopt.h" ++ + #if defined HAVE_PTHREAD_H && (defined HAVE_LIBPTHREAD || defined BUILDTIN_GCC_THREAD) + extern pthread_mutex_t MUTEX_SYSCALL; + extern pthread_mutex_t MUTEX_LOCK;
The attached patch uses a different fix for the FTBFS problem with gcc-4.0.
The previous patch apparently caused buffer overflows.
Regards
Andreas Jochens
diff -urN ../tmp- orig/cfengine2- 2.1.13/ debian/ patches/ gcc4_fix ./debian/ patches/ gcc4_fix orig/cfengine2- 2.1.13/ debian/ patches/ gcc4_fix 1970-01-01 01:00:00.000000000 +0100 patches/ gcc4_fix 2005-03-24 12:59:58.830365233 +0100 2.1.13/ src/cf. extern. h 2.1.13/ src/cf. extern. h 2005-03-24 12:59:53.676756819 +0100 ******* ******* ******* ******* ******* ******* ******* ******* *****/ GCC_THREAD)
--- ../tmp-
+++ ./debian/
@@ -0,0 +1,12 @@
+diff -urN tmp/src/cf.extern.h cfengine-
+--- tmp/src/cf.extern.h 2005-01-06 14:29:51.000000000 +0100
++++ cfengine-
+@@ -28,6 +28,8 @@
+ /* */
+ /******
+
++#include "getopt.h"
++
+ #if defined HAVE_PTHREAD_H && (defined HAVE_LIBPTHREAD || defined BUILDTIN_
+ extern pthread_mutex_t MUTEX_SYSCALL;
+ extern pthread_mutex_t MUTEX_LOCK;