[redland-dev] OSX: problems compiling bindings
Dave Beckett
dave.beckett at bristol.ac.uk
Mon May 23 14:59:48 BST 2005
On Sun, 2005-05-22 at 22:57 +0200, bolk wrote:
> Hi,
> I'm trying to compile either the CVS or the latest snapshot
^^^ ^^^^^^^^^^^^^^^
This is the critical problem here --^-----------------^
:)
> (raptor-1.4.7, rasqal-0.9.10, redland-1.0.1 and
> redland-bindings-1.0.1.1) on OS X 10.3.9 with the necessary fink
> packages (autoconf2.5 automake1.8 curl-ssl-dev curl-ssl-shlibs db42
> db42-bin db42-shlibs flex-devel libtool14 libtool14-shlibs pkgconfig
> swig swig-shlibs), but I fail to get the bindings compile.
>
> Raptor, Rasqal and Redland build and install successfully.
> Building the python bindings, it stops immediatley with the following message:
>
> gcc -DPACKAGE_NAME=\"Redland\ RDF\ Application\ Framework\ bindings\"
> -DPACKAGE_TARNAME=\"redland-bindings\" -DPACKAGE_VERSION=\"1.0.1.1\"
> -DPACKAGE_STRING=\"Redland\ RDF\ Application\ Framework\ bindings\ 1.
> 0.1.1\" -DPACKAGE_BUGREPORT=\"http://bugs.librdf.org/\"
> -DPACKAGE=\"redland-bindings\" -DVERSION=\"1.0.1.1\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAV
> E_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -DREDLAND_POST_I
> -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I -I/usr/local/include
> -I/usr/local/include
> -I/sw/include/db4
> -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
> -g -O2 -I/usr/local/include -I/usr/local/include -I/sw/include/db4
> -g -O2 -fPIC -DPIC ./Redland_wrap.c -c -o R
> edland_wrap.so
>
> In file included from /usr/include/librdf.h:120,
> from /usr/include/redland.h:43,
> from Redland_wrap.c:1356:
> /usr/include/rdf_hash.h:138: error: parse error before "librdf_hash_factory"
> /usr/include/rdf_hash.h:157: error: parse error before '*' token
> /usr/include/rdf_hash.h:157: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:163: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:166: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:170: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:172: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:173: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:174: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:202: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:203: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:204: error: parse error before "librdf_hash_datum"
> /usr/include/rdf_hash.h:205: error: parse error before "librdf_hash_datum"
> make[2]: *** [Redland_wrap.so] Error 1
>
> Everything is configured with --prefix=/usr.
>
> Am I missing something?
Should be fixed now in CVS, and in about 12 hours, in the nightly
snapshot. I've been adding the digest and hash classes to the public
API and at the point you grabbed it, it wasn't finished.
Dave
More information about the redland-dev
mailing list