[redland] error when cross compiling

Seth Ladd seth at brivo.net
Wed Sep 4 13:26:27 BST 2002


Hello,

I'm trying to compile redland 0.9.11 for the AXIS linux board 
(http://developer.axis.com).  I've successfully compiled libxml2 for 
this board, and now I'm onto redland.

Some background info:

compiling redland 0.9.11 on linux 2.4.17 with a cross compiler named 
gcc-cris, target is an axis communications chip running linux 2.4.14.

I get a strange error when compiling.  When I use the standard gcc for 
x86, all the source compiles fine.  When I use the compiler for the axis 
board (called gcc-cris), I get the below errors.  I can usually track 
down simple problems, but this errors points to a line in the code that 
doesn't make any sense.

Any hints or tips would be greatly appreciated.  We're committed to 
using redland on this board, so I hope we can get it compiled. :)

Thanks very much!
Seth


make[2]: Entering directory `/home/seth/downloads/redland-0.9.11'
/bin/sh ./libtool --mode=compile gcc-cris -mlinux -isystem 
/home/seth/downloads/axis/devboard_lx/target/cris-axis-linux-gnu/include 
-DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libxml2  -O2 -c rdf_init.c
gcc-cris -mlinux -isystem 
/home/seth/downloads/axis/devboard_lx/target/cris-axis-linux-gnu/include 
-DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/libxml2 -O2 -c rdf_init.c -o 
rdf_init.o
In file included from rdf_init.c:35:
rdf_hash.h:120: parse error before `*'
rdf_hash.h:121: parse error before `*'
rdf_hash.h:121: warning: data definition has no type or storage class
rdf_hash.h:132: parse error before `librdf_hash_factory'
rdf_hash.h:151: parse error before `*'
rdf_hash.h:151: parse error before `librdf_hash_datum'
rdf_hash.h:151: warning: data definition has no type or storage class
rdf_hash.h:157: parse error before `librdf_hash_datum'
rdf_hash.h:160: parse error before `librdf_hash_datum'
rdf_hash.h:163: parse error before `librdf_hash_datum'
rdf_hash.h:165: parse error before `librdf_hash_datum'
rdf_hash.h:166: parse error before `librdf_hash_datum'
rdf_hash.h:167: parse error before `librdf_hash_datum'
rdf_hash.h:195: parse error before `librdf_hash_datum'
rdf_hash.h:196: parse error before `librdf_hash_datum'
rdf_hash.h:197: parse error before `librdf_hash_datum'
rdf_hash.h:198: parse error before `librdf_hash_datum'
rdf_init.c: In function `librdf_new_world':
rdf_init.c:63: sizeof applied to an incomplete type
rdf_init.c: In function `librdf_error':
rdf_init.c:136: dereferencing pointer to incomplete type
rdf_init.c:137: dereferencing pointer to incomplete type
rdf_init.c:137: dereferencing pointer to incomplete type
rdf_init.c: In function `librdf_warning':
rdf_init.c:161: dereferencing pointer to incomplete type
rdf_init.c:162: dereferencing pointer to incomplete type
rdf_init.c:162: dereferencing pointer to incomplete type
rdf_init.c: In function `librdf_world_set_error':
rdf_init.c:189: dereferencing pointer to incomplete type
rdf_init.c:190: dereferencing pointer to incomplete type
rdf_init.c: In function `librdf_world_set_warning':
rdf_init.c:207: dereferencing pointer to incomplete type
rdf_init.c:208: dereferencing pointer to incomplete type
rdf_init.c: In function `librdf_world_set_digest':
rdf_init.c:224: dereferencing pointer to incomplete type
rdf_init.c: In function `librdf_world_set_uris_hash':
rdf_init.c:240: dereferencing pointer to incomplete type
make[2]: *** [rdf_init.lo] Error 1
make[2]: Leaving directory `/home/seth/downloads/redland-0.9.11'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/seth/downloads/redland-0.9.11'









More information about the redland-dev mailing list