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

Re: Problems compiling subversion 1.2.0 on solaris with berkeley db

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-06-14 09:58:02 CEST

Pierre Girard wrote:
> i'm trying to compile subversion on a solaris machine and when i try
> the configure command it doesn't find the berkeley db. I compiled the
> db and put it in a directory and i give the additional
> -with-berkeley-db= but it still doesn't find it.

The most popular one is to ignore the messages that 'make install' prints for
libraries, i.e. that you need to tell the runtime (dynamic) linker where to
find the created libs. That's not the one biting you here though.

> Here are few commands i tried to get configure to work:
> ./configure --with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
> --prefix=/home/i386-pc-solaris2/subversion-1.2.0

I guess you configured BDB with '--prefix=/home/i386-pc-solaris2/db-4.3.28',
right?

> CFLAGS="-O2" CPPFLAGS="-I$FWD/db-4.3.28/include"
> LDFLAGS="-L//home/i386-pc-solaris2/db-4.3.28/lib -lthread" ./configure
> --with-berkeley-db=/home/i386-pc-solaris2/db-4.3.28
> --prefix=/home/i386-pc-solaris2/subversion-1.2.0

You tell configure via CPPFLAGS/LDFLAGS and via --with-berkeley
where to find BDB, once should be enough.

> bash-3.00$ ls /home/i386-pc-solaris2/db-4.3.28/{lib,include}
> /home/i386-pc-solaris2/db-4.3.28/include:
> db.h db_cxx.h
>
> /home/i386-pc-solaris2/db-4.3.28/lib:
> libdb-4.3.a libdb.a
>
> Some selected output from configure:
> checking for Berkeley DB 4.3 in /home/i386-pc-solaris2/db-4.3.28...
> checking db43/db.h usability... no
> checking db43/db.h presence... no
> checking for db43/db.h... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no

These are ok, as your headers are not installed in a db4 or db43 subsolder.

> checking db.h usability... yes
> checking db.h presence... yes

Here, it picked up your headers.

> [...]
> checking db_185.h presence... no
> checking for db_185.h... no
> checking for Berkeley DB... not found
> configure: error: Berkeley DB not found.
> configure failed for apr-util

Did I say it's not the runtime linker not picking up files? Hmmm, I might be
wrong after all. Also, I think BDB installs a few binaries that have to be in
$PATH for them to work.

Also, I wonder what the '[...]' output above was and what additional info is
in config.log, in particular what the last test was that failed.

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 14 09:57:48 2005

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.