Package: ekg
Severity: normal
Tags: patch

When building 'ekg' on amd64 with gcc-4.0,
I get the following error:

x86_64-linux-gcc  -I.. -I../lib -g -O2 -pthread -pthread    
-I/usr/include/python2.3 -DWITH_IOCTLD -DIOCTLD_PATH=\"/usr/lib/ekg/ioctld\" 
-Wall -DDATADIR=\"/usr/share/ekg\" -DSYSCONFDIR=\"/etc\"   -c -o stuff.o stuff.c
In file included from stuff.c:68:
stuff.h:75: error: array type has incomplete element type
In file included from stuff.c:71:
userlist.h:75: error: array type has incomplete element type

With the attached patch 'ekg' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ekg-1.5+20050227/src/stuff.h ./src/stuff.h
--- ../tmp-orig/ekg-1.5+20050227/src/stuff.h    2005-02-26 04:36:20.000000000 
+0100
+++ ./src/stuff.h       2005-03-17 16:16:20.934597363 +0100
@@ -71,14 +71,14 @@
        INACTIVE_EVENT = TOGGLE_BIT(22)
 };
 
-#define EVENT_LABELS_COUNT 21  /* uaktualni� ! */
-struct event_label event_labels[EVENT_LABELS_COUNT + 2];
-
 struct event_label {
        int event;
        char *name;
 };
 
+#define EVENT_LABELS_COUNT 21  /* uaktualni� ! */
+struct event_label event_labels[EVENT_LABELS_COUNT + 2];
+
 struct process {
        int pid;                /* id procesu */
        int died;               /* proces umar�, ale najpierw pobieramy do 
ko�ca z bufora dane */
diff -urN ../tmp-orig/ekg-1.5+20050227/src/userlist.h ./src/userlist.h
--- ../tmp-orig/ekg-1.5+20050227/src/userlist.h 2004-01-13 18:41:10.000000000 
+0100
+++ ./src/userlist.h    2005-03-17 16:16:41.757660162 +0100
@@ -71,14 +71,14 @@
        IGNORE_ALL = 255
 };
 
-#define        IGNORE_LABELS_COUNT 6
-struct ignore_label ignore_labels[IGNORE_LABELS_COUNT + 1];
-
 struct ignore_label {
        int level;
        char *name;
 };
 
+#define        IGNORE_LABELS_COUNT 6
+struct ignore_label ignore_labels[IGNORE_LABELS_COUNT + 1];
+
 list_t userlist;
 
 int userlist_read();


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to