Package: tf
Severity: normal
Tags: patch

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

gcc -O2 -g -Wall    -c -o expr.o expr.c
In file included from expr.c:38:
history.h:34: error: array type has incomplete element type
history.h:34: error: array type has incomplete element type
make[1]: *** [expr.o] Error 1
make[1]: Leaving directory `/tf-4.0s1/src'
make: *** [binary-arch] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/tf-4.0s1/src/history.c ./src/history.c
--- ../tmp-orig/tf-4.0s1/src/history.c  1999-03-06 23:43:24.000000000 +0100
+++ ./src/history.c     2005-03-19 09:31:11.759689297 +0100
@@ -38,18 +38,6 @@
 #define LOCALSIZE      100     /* local history size */
 #define INPUTSIZE      100     /* command history buffer size */
 
-typedef struct History {       /* circular list of Alines, and logfile */
-    struct Aline **alines;
-    int size;                  /* actual number of lines currently saved */
-    int maxsize;               /* maximum number of lines that can be saved */
-    int first;                 /* position of first line in circular array */
-    int last;                  /* position of last line in circular array */
-    int index;                 /* current recall position */
-    int total;                 /* total number of lines ever saved */
-    TFILE *logfile;
-    CONST char *logname;
-} History;
-
 #define empty(hist) (!(hist)->alines || !(hist)->size)
 
 static void     FDECL(alloc_history,(History *hist, int maxsize));
diff -urN ../tmp-orig/tf-4.0s1/src/history.h ./src/history.h
--- ../tmp-orig/tf-4.0s1/src/history.h  1999-03-06 23:43:24.000000000 +0100
+++ ./src/history.h     2005-03-19 09:31:04.441102640 +0100
@@ -31,6 +31,18 @@
 #define record_global(aline)  recordline(globalhist, (aline))
 #define record_local(aline)   recordline(localhist, (aline))
 
+typedef struct History {       /* circular list of Alines, and logfile */
+    struct Aline **alines;
+    int size;                  /* actual number of lines currently saved */
+    int maxsize;               /* maximum number of lines that can be saved */
+    int first;                 /* position of first line in circular array */
+    int last;                  /* position of last line in circular array */
+    int index;                 /* current recall position */
+    int total;                 /* total number of lines ever saved */
+    TFILE *logfile;
+    CONST char *logname;
+} History;
+
 extern struct History globalhist[], localhist[];
 extern int log_count, norecord, nolog;
 


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

Reply via email to