Package: klic
Severity: normal
Tags: patch

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

gcc -c  -O2 -fomit-frame-pointer -g  -o kmain.o -I../include -I/usr/include -I. 
kmain.c
In file included from kmain.c:46:
../include/klic/options.h:23: error: array type has incomplete element type
kmain.c: In function 'klic_main':
kmain.c:141: warning: incompatible implicit declaration of built-in function 
'exit'
Compilation failed for file kmain.c
make[2]: *** [kmain.o] Segmentation fault
make[2]: Leaving directory `/klic-3.003/runtime'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/klic-3.003/include/klic/options.h ./include/klic/options.h
--- ../tmp-orig/klic-3.003/include/klic/options.h       1999-03-25 
08:33:22.000000000 +0100
+++ ./include/klic/options.h    2005-03-22 12:03:05.650138481 +0100
@@ -20,7 +20,6 @@
     ARG_NOT_USED
 };
 
-extern Const struct opttable opttable[];
 
 char *parse_opts();
 
diff -urN ../tmp-orig/klic-3.003/runtime/trace.c ./runtime/trace.c
--- ../tmp-orig/klic-3.003/runtime/trace.c      1999-03-25 08:33:33.000000000 
+0100
+++ ./runtime/trace.c   2005-03-22 12:03:37.111064370 +0100
@@ -33,8 +33,6 @@
 
 extern char *realloc_check();
 extern char *malloc_check();
-extern char *calloc();
-extern void free();
 
 static struct trace_info_rec *trace_info_recs;
 static long num_info_recs, info_rec_size;


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

Reply via email to