Comment 3 for bug 6624

Revision history for this message
In , Andreas Jochens (aj-andaco) wrote : cfengine2: [NEW PATCH] FTBFS (amd64/gcc-4.0): array type has incomplete element type

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;