[redland] Cannot build Redland on OS X with Fink-installed BDB 3.3.11
l.m.orchard <deus_x at pobox.com>
deus_x at pobox.com
Tue Dec 10 18:33:04 GMT 2002
Hi there again. Also trying to build Redland (from
redland-0.9.11.2.tar.gz) on my iBook under OS X. Things seem to work
fine if I leave BDB out of the picture. But when I include it in the
config, things break. It appears that the config & build process is
not finding, or incorrectly identifying my BDB 3.3.11 install under /sw
I'm using this config with these parameters:
./configure --prefix=/opt/redland-0.9.11 --with-bdb=/sw
--with-bdb-lib=/sw/lib --with-bdb-include=/sw/include/db3
And when I run make, it dies at with this error:
-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<-
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/sw/include -I/sw/include/libxml2 -I/sw/include
-DLIBRDF_INTERNAL=1 -I/sw/include -I/sw/include/libxml2 -I/sw/include
-c rdf_hash_bdb.c
rm -f .libs/rdf_hash_bdb.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include -I/sw/include/libxml2
-I/sw/include -DLIBRDF_INTERNAL=1 -I/sw/include -I/sw/include/libxml2
-I/sw/include -c rdf_hash_bdb.c -fno-common -DPIC -o
.libs/rdf_hash_bdb.lo
rdf_hash_bdb.c: In function `librdf_hash_bdb_open':
rdf_hash_bdb.c:195: structure has no member named `set_flags'
rdf_hash_bdb.c:195: `DB_DUP' undeclared (first use in this function)
rdf_hash_bdb.c:195: (Each undeclared identifier is reported only once
rdf_hash_bdb.c:195: for each function it appears in.)
rdf_hash_bdb.c:204: `DB_CREATE' undeclared (first use in this function)
rdf_hash_bdb.c:204: `DB_RDONLY' undeclared (first use in this function)
rdf_hash_bdb.c:206: `DB_TRUNCATE' undeclared (first use in this function)
rdf_hash_bdb.c:208: structure has no member named `open'
rdf_hash_bdb.c: In function `librdf_hash_bdb_close':
rdf_hash_bdb.c:287: too many arguments to function
rdf_hash_bdb.c: In function `librdf_hash_bdb_exists':
rdf_hash_bdb.c:794: `bdb' undeclared (first use in this function)
rdf_hash_bdb.c:811: `dbc' undeclared (first use in this function)
rdf_hash_bdb.c: In function `librdf_hash_bdb_get_fd':
rdf_hash_bdb.c:977: too many arguments to function
make[2]: *** [rdf_hash_bdb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<-
I assume that this happens because -I/sw/include/db3 doesn't appear in
any calls to libtool or gcc. I hack the Makefile to add one, and then
make, which dies with this error:
-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<-
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/sw/include -I/sw/include/libxml2 -I/sw/include
-DLIBRDF_INTERNAL=1 -I/sw/include -I/sw/include/db3
-I/sw/include/libxml2 -I/sw/include -c rdf_hash_bdb.c
rm -f .libs/rdf_hash_bdb.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include -I/sw/include/libxml2
-I/sw/include -DLIBRDF_INTERNAL=1 -I/sw/include -I/sw/include/db3
-I/sw/include/libxml2 -I/sw/include -c rdf_hash_bdb.c -fno-common
-DPIC -o .libs/rdf_hash_bdb.lo
rdf_hash_bdb.c: In function `librdf_hash_bdb_cursor_get':
rdf_hash_bdb.c:473: structure has no member named `seq'
rdf_hash_bdb.c:485: structure has no member named `seq'
rdf_hash_bdb.c:485: `R_FIRST' undeclared (first use in this function)
rdf_hash_bdb.c:485: (Each undeclared identifier is reported only once
rdf_hash_bdb.c:485: for each function it appears in.)
rdf_hash_bdb.c:495: structure has no member named `seq'
rdf_hash_bdb.c:495: `R_NEXT' undeclared (first use in this function)
rdf_hash_bdb.c:548: structure has no member named `seq'
rdf_hash_bdb.c: In function `librdf_hash_bdb_put':
rdf_hash_bdb.c:674: warning: passing arg 2 of pointer to function from
incompatible pointer type
rdf_hash_bdb.c:674: too few arguments to function
rdf_hash_bdb.c: In function `librdf_hash_bdb_exists':
rdf_hash_bdb.c:784: warning: passing arg 2 of pointer to function from
incompatible pointer type
rdf_hash_bdb.c:784: too few arguments to function
rdf_hash_bdb.c:794: structure has no member named `seq'
rdf_hash_bdb.c:794: `bdb' undeclared (first use in this function)
rdf_hash_bdb.c:811: structure has no member named `seq'
rdf_hash_bdb.c:811: `dbc' undeclared (first use in this function)
rdf_hash_bdb.c:811: `R_NEXT' undeclared (first use in this function)
rdf_hash_bdb.c: In function `librdf_hash_bdb_delete_key':
rdf_hash_bdb.c:851: warning: passing arg 2 of pointer to function from
incompatible pointer type
rdf_hash_bdb.c:851: too few arguments to function
rdf_hash_bdb.c: In function `librdf_hash_bdb_delete_key_value':
rdf_hash_bdb.c:928: structure has no member named `seq'
rdf_hash_bdb.c:935: `R_CURSOR' undeclared (first use in this function)
rdf_hash_bdb.c:935: warning: passing arg 2 of pointer to function from
incompatible pointer type
rdf_hash_bdb.c:935: too few arguments to function
make[2]: *** [rdf_hash_bdb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<-
Any hints?
More information about the redland-dev
mailing list