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

freebsd questions

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-10-28 14:34:42 CET

Hey FreeBSD people (Garrett in particular, since he does our port):

So I've just installed totally clean copies of FreeBSD 4.7 on my home
computer, and on the new, non-broken Thinkpad... and I'm back to a
problem I had a long time ago.

Basically, I'm having trouble making svn detect Berkeley DB 4.0.

If I install the db4 port, it creates

    /usr/local/lib/libdb4.so
    /usr/local/include/db4/db.h

and svn's ./configure script still reports:

checking for built-in Berkeley DB... no
checking for Berkeley DB in the standard places... no
checking for Berkeley DB in /usr/local/include/db4 and /usr/local/lib... no
checking for Berkeley DB in /usr/local... no
checking for Berkeley DB in /usr/local/BerkeleyDB.4.0... no
checking for Berkeley DB in /usr/include/db4 and /usr/lib... no

Notice the third check. IIRC, Jim Blandy actually wrote that check
*specifically* for me, a long time ago. config.log shows that it's
trying to link -ldb, not -ldb4:

configure:8451: checking for Berkeley DB in /usr/local/include/db4 and /usr/local/lib
configure:8498: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DNEON_ZLIB -DNEON_SSL -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/db4 -L/usr/local/lib conftest.c -L/usr/local/lib -ldb >&5
configure:8473: warning: return-type defaults to `int'
/usr/libexec/elf/ld: cannot find -ldb

Is this something fixable? How does our port work, exactly?

My other two solutions in the past have been:

* drop db4 right into the svn tree. Of course, then compiling svn
  takes a really long time.

* install db4 by hand, by building from sourceball. This creates
  /usr/local/BerkeleyDB4.0/ and friends, but then if I put them into
  $PATH, it often confuses other programs looking for the "system"
  db.h in /usr/include/db.h.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 28 14:35:01 2002

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

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