[redland-dev] Can't compile on Red Hat Linux

Dave Beckett dave.beckett at bristol.ac.uk
Mon Mar 24 16:37:08 GMT 2003


>>>Eric Jain said:

(you don't say which redhat; I develop on 7.3 and it works on 8.0 too)

> Here's where I get stuck, any ideas?
> 
> ...
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I../expat/xmlparse -I/usr/include/libxm
> l2 -I/work/bdb/include -I.. -I../raptor -DLIBRDF_INTERNAL=1 -g -c
> rdf_node.c  -fPIC -DPIC -o .libs/rdf_node.lo
> In file included from rdf_utf8.h:32,
>                  from rdf_node.c:34:
> rdf_types.h:41:6: #error u32 type not defined
> rdf_types.h:51:6: #error byte type not defined

This is usually caused by switching configure options and
config.cache being out of date with respect to the current setup.  I
see you are using a berkeley DB from somewhere else - /work/bdb - so
maybe you need to:
  rm config.cache
and run configure again with the set of options you need
(I assume it is --with=bdb=/work/bdb at the very least)


The rest are consequences of the above

> In file included from rdf_node.c:34:
> rdf_utf8.h:35: parse error before "librdf_unichar"
> rdf_utf8.h:35: warning: data definition has no type or storage class
> rdf_utf8.h:37: parse error before "c"
> rdf_utf8.h:38: parse error before '*' token
> rdf_utf8.h:39: parse error before '*' token
> rdf_utf8.h:39: parse error before '*' token
> rdf_utf8.h:39: warning: data definition has no type or storage class
> rdf_utf8.h:40: parse error before '*' token
> rdf_utf8.h:40: parse error before '*' token
> rdf_utf8.h:40: warning: data definition has no type or storage class
> rdf_utf8.h:41: parse error before '*' token
> rdf_node.c: In function `librdf_node_get_literal_value_as_latin1':
> rdf_node.c:576: parse error before "byte"
> make[4]: *** [rdf_node.lo] Error 1
> make[4]: Leaving directory `/work/rdf/redland/redland-0.9.12/librdf'
> make[3]: *** [../librdf/librdf.la] Error 2
> make[3]: Leaving directory `/work/rdf/redland/redland-0.9.12/raptor'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/work/rdf/redland/redland-0.9.12/raptor'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/work/rdf/redland/redland-0.9.12/raptor'
> make: *** [all-recursive] Error 1

Dave



More information about the redland-dev mailing list