On 10 Jun 2001 16:58:41 -0400, JP Rosevear wrote:
> On 09 Jun 2001 10:15:07 +0000, Yosi wrote:
> > Hello,
> > 
> > I have downloaded the latest (200106080800) snapshot evolution source
> > rpm and wanted to compile it on my machine. However, the configuration
> > script claims it cannot find libdb 3.1.17 libraries. I looked inside
> > the configure script and saw that the script is looking for the static
> > library (namely the ".a") and not the shared library. So I turned to
> > the package redhat has, and it does not provide a static library.
> > A quick search on rpmfind.net confirmed that no distribution (except
> > Polished Linux) provides the static library. Any ideas on how to solve
> > this problem?
> 
> The static library is part of the -devel package.

libdb-3.1.a is part of the devel package:
me2v@reliant RPMS $ rpm -qlp db3-devel-3.1.17-7.i386.rpm | grep -E "\.a"
/usr/lib/libdb-3.1.a
/usr/lib/libdb_cxx-3.1.a
me2v@reliant RPMS $ rpm -qlp db3-utils-3.1.17-7.i386.rpm | grep -E "\.a"
me2v@reliant RPMS $ rpm -qlp db3-3.1.17-7.i386.rpm | grep -E "\.a"
me2v@reliant RPMS $ 
The configure script expects to find either libdb.a or libdb3.a.  I guess it's a simple enough matter to create a symlink, but IMHO, Evolution should bow to the o'erwhelming pressure of distribution differences and support everybody! (Thats' a joke, BTW).  Here's the config.log stuff for Evo:
configure:5540: checking for libdb3 version 3.1.17
configure:5566: gcc -c -g -O2 -Wall -Wunused   -I/usr/include/gtk-1.2 -I/usr/inc
lude/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include conftest.c 1>&5
configure:5669: checking for -ldb 3.1.17
configure:5705: gcc -o conftest -g -O2 -Wall -Wunused   -I/usr/include/gtk-1.2 -
I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   conftest.c
 /usr/lib//libdb.a  1>&5
gcc: /usr/lib//libdb.a: No such file or directory
configure: failed program was:
		************Program cut******************
configure:5729: checking for -ldb3 3.1.17
configure:5765: gcc -o conftest -g -O2 -Wall -Wunused   -I/usr/include/gtk-1.2 -
I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   conftest.c
 /usr/lib//libdb3.a  1>&5
You either need to rebuild db3 (I believe that was Ettore's advice in the first place), or make appropriate symlinks so that libdb.a or libdb3.a exist.  Having tried to rebuild Redhat's db3 rpm, and then successfully having built sleepycat's db3 tarball, I suggest the same thing.  Get db-3 from sleepycat and rebuild.  You gotta do two builds, though--one to build the statics, and then another configure/make to build the dynamics.  It's in the docos. that way.

The default names of the static libs as created by sleepycat are libdb.a and libdb_cxx.a.  These are what Evolution expects to find, as evidenced above.  It's the nature of Open Source, however, that distributions are free to vary from what the original developers intended, given a specific package.

Thanks for all the great work, guys!
ciao,

Matthew Vanecek perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);' ******************************************************************************** For 93 million miles, there is nothing between the sun and my shadow except me. I'm always getting in the way of something...


PGP signature

Reply via email to