[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: 6740: undefined reference to `db_version'

From: Sander Striker <striker_at_apache.org>
Date: 2003-08-15 14:39:26 CEST

[moving to dev@]

> -----Original Message-----
> From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
> Sent: Friday, August 15, 2003 2:27 PM
> To: svn-users
> Subject: 6740: undefined reference to `db_version'

Grmbl, grmbl, grmbl.

> I'm trying to build svn rev. 6740, but ./configure fails to detect bdb.
> This is on FreeBSD-STABLE, and I have bdb3, bdb40, and bdb41 installed
> from the ports:
>
> ./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib
>
> this is in config.log:
>
> configure:8803: checking for availability of Berkeley DB
> configure:8865: gcc -o conftest -g -O2 -DNEON_ZLIB -DNEON_SSL -I/usr/home/roman/install/svn-6740/apr-util/include
> -I/usr/local/include/db41 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -L/usr/local/lib conftest.c
> -L/usr/local/lib -lexpat >&5
> /tmp/ccPK3I5o.o: In function `main':
> /usr/home/roman/install/svn-6740/configure:8839: undefined reference to `db_version'
> configure:8868: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> #line 8828 "configure"

[...]
> btw:
>
> grep -F db_version /usr/local/include/db41/db.h
> char *db_version __P((int *, int *, int *));

It seems like linking is failing, not the compile.

> how can I get rid of the problem?

Can you try the following for me:

LDFLAGS="-R/usr/local/lib"
./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib

Lemme know if that works. Thanks,

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 15 14:41:14 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.