Package: trn4
Severity: normal
Tags: patch

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

gcc -c -O2 -g -Wall -DDEBUG  datasrc.c
In file included from datasrc.c:15:
opt.h:135: error: array type has incomplete element type
make[1]: *** [datasrc.o] Error 1
make[1]: Leaving directory `/trn4-4.0-test76'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/trn4-4.0-test76/ngstuff.c ./ngstuff.c
--- ../tmp-orig/trn4-4.0-test76/ngstuff.c       2000-12-28 22:18:07.000000000 
+0100
+++ ./ngstuff.c 2005-03-20 10:59:20.309650833 +0100
@@ -37,6 +37,8 @@
 #include "INTERN.h"
 #include "ngstuff.h"
 
+extern INI_WORDS options_ini[];
+
 void
 ngstuff_init()
 {
diff -urN ../tmp-orig/trn4-4.0-test76/opt.h ./opt.h
--- ../tmp-orig/trn4-4.0-test76/opt.h   2000-05-25 07:04:40.000000000 +0200
+++ ./opt.h     2005-03-20 10:58:49.699596161 +0100
@@ -132,7 +132,6 @@
 # define OI_SCORE_LAST                 (OI_SCAN_LAST)
 #endif
 
-extern INI_WORDS options_ini[];
 EXT char** option_def_vals;
 EXT char** option_saved_vals;
 EXT char* option_flags;
diff -urN ../tmp-orig/trn4-4.0-test76/rt-page.c ./rt-page.c
--- ../tmp-orig/trn4-4.0-test76/rt-page.c       2000-05-25 07:04:40.000000000 
+0200
+++ ./rt-page.c 2005-03-20 10:59:38.407135907 +0100
@@ -31,6 +31,8 @@
 #include "rt-page.h"
 #include "rt-page.ih"
 
+extern INI_WORDS options_ini[];
+
 bool
 set_sel_mode(ch)
 char_int ch;
diff -urN ../tmp-orig/trn4-4.0-test76/rt-select.c ./rt-select.c
--- ../tmp-orig/trn4-4.0-test76/rt-select.c     2001-02-13 23:02:48.000000000 
+0100
+++ ./rt-select.c       2005-03-20 11:00:11.633682800 +0100
@@ -44,6 +44,8 @@
 #include "rt-select.h"
 #include "rt-select.ih"
 
+extern INI_WORDS options_ini[];
+
 static char sel_ret;
 static char page_char, end_char;
 static int disp_status_line;


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

Reply via email to