Package: heimdal
Severity: normal
Tags: patch
When building 'heimdal' on amd64 with gcc-4.0,
I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/et
-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
-Wmissing-declarations -Wnested-externs -g -O2 -c asn1_APOptions.c -fPIC -DPIC
-o .libs/asn1_APOptions.o
In file included from asn1_APOptions.c:9:
./krb5_asn1.h:349: error: array type has incomplete element type
./krb5_asn1.h:397: error: array type has incomplete element type
./krb5_asn1.h:453: error: array type has incomplete element type
make[4]: *** [asn1_APOptions.lo] Error 1
make[4]: Leaving directory `/heimdal-0.6.3/build-tree/heimdal-0.6.3/lib/asn1'
With the attached patch 'heimdal' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/heimdal-0.6.3/debian/patches/033_gcc4_fix
./debian/patches/033_gcc4_fix
--- ../tmp-orig/heimdal-0.6.3/debian/patches/033_gcc4_fix 1970-01-01
01:00:00.000000000 +0100
+++ ./debian/patches/033_gcc4_fix 2005-03-22 00:13:08.526469548 +0100
@@ -0,0 +1,41 @@
+diff -urN tmp/lib/asn1/gen_glue.c heimdal-0.6.3/lib/asn1/gen_glue.c
+--- tmp/lib/asn1/gen_glue.c 2005-03-21 23:03:47.637549000 +0100
++++ heimdal-0.6.3/lib/asn1/gen_glue.c 2005-03-21 23:04:53.005929285 +0100
+@@ -101,11 +101,11 @@
+ Type *t = s->type;
+ Member *m;
+ int tag = -1;
+-
++/*
+ fprintf (headerfile,
+ "extern struct units %s_units[];",
+ s->gen_name);
+-
++*/
+ fprintf (codefile,
+ "struct units %s_units[] = {\n",
+ s->gen_name);
+diff -urN tmp/kdc/kerberos5.c heimdal-0.6.3/kdc/kerberos5.c
+--- tmp/kdc/kerberos5.c 2004-08-13 21:28:26.000000000 +0200
++++ heimdal-0.6.3/kdc/kerberos5.c 2005-03-22 00:12:33.680196105 +0100
+@@ -37,6 +37,8 @@
+
+ #define MAX_TIME ((time_t)((1U << 31) - 1))
+
++extern struct units KDCOptions_units[];
++
+ static void
+ fix_time(time_t **t)
+ {
+diff -urN tmp/lib/kadm5/dump_log.c heimdal-0.6.3/lib/kadm5/dump_log.c
+--- tmp/lib/kadm5/dump_log.c 2003-04-16 19:56:02.000000000 +0200
++++ heimdal-0.6.3/lib/kadm5/dump_log.c 2005-03-22 00:11:26.201221863 +0100
+@@ -36,6 +36,8 @@
+
+ RCSID("$Id: dump_log.c,v 1.13 2003/04/16 17:56:02 lha Exp $");
+
++extern struct units HDBFlags_units[];
++
+ static char *op_names[] = {
+ "get",
+ "delete",
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]