Package: framerd
Severity: normal
Tags: patch

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

gcc -Iinclude -fPIC -rdynamic -g -O2 -g0 -DINSTALL_PREFIX=/usr 
-DFD_DATESTAMP=20021205 -o src/cons/libdtypes.o -c src/cons/libdtypes.c
In file included from include/framerd/common.h:390,
                 from include/framerd/dtypes.h:32,
                 from include/dtypes.h:36,
                 from src/cons/libdtypes.c:31:
include/framerd/oids.h:149: error: array type has incomplete element type

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/framerd-2.4.1/include/framerd/oids.h 
./include/framerd/oids.h
--- ../tmp-orig/framerd-2.4.1/include/framerd/oids.h    2002-04-10 
21:00:10.000000000 +0200
+++ ./include/framerd/oids.h    2005-03-20 11:54:23.794964391 +0100
@@ -146,7 +146,6 @@
 #define FD_MAKE_OID fd_make_oid
 #endif /* not FD_INLINE_OIDS */
 
-DTYPES_EXPORT struct FD_HASHTABLE _fd_oid_buckets[FD_OID_BUCKETS];
 
 /* Note that we don't have to do OID locking when saving values here because,
    the hashtables do it for us. */
diff -urN ../tmp-orig/framerd-2.4.1/include/framerd/odb.h 
./include/framerd/odb.h
--- ../tmp-orig/framerd-2.4.1/include/framerd/odb.h     2002-07-24 
04:05:47.000000000 +0200
+++ ./include/framerd/odb.h     2005-03-20 11:57:35.507862006 +0100
@@ -139,6 +139,7 @@
 FRAMERD_EXPORT fd_lisp fd_get_oid_value(fd_lisp oref);
 
 #if (FD_USING_THREADS)
+extern struct FD_HASHTABLE _fd_oid_buckets[FD_OID_BUCKETS];
 FASTOP fd_lisp fd_oid_value(fd_lisp) UNUSED;
 FASTOP fd_lisp fd_oid_value(fd_lisp obj)
 {


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

Reply via email to