Ettore Perazzoli wrote:
> 
> OK, I see many people are having troubles with this.  So, the following
> is a safe way to compile Evolution from CVS:
> 
>     * Get the Sleepycat tarball from:
> 
>         http://www.sleepycat.com/update/3.1.17/db-3.1.17.tar.gz
> 
>     * Compile according to instructions, but installing into some custom
>       prefix, e.g:
> 
>         ../dist/configure --prefix=/opt/berkeleydb-3.1.17
> 
>     * Autogen Evolution specifying that it has to look for the DB
>       library there, eg.:
> 
>         ./autogen.sh --prefix=/opt/gnome
>         --with-db3-includes=/opt/berkeleydb-3.1.17/include
>         --with-db3-libs=/opt/berkeleydb-3.1.17/lib
> 
>   Notice that this method also works if you have a different version of
> Berkeley DB installed already, and doesn't mess up your existing
> packages or your distribution.
> 
>   I strongly suggest doing this until we figure out a way to make the
> libdb situation less painful for users.
> 
>   I hope this helps,
> 
> --
> Ettore
> 
> _______________________________________________
> evolution maillist  -  [EMAIL PROTECTED]
> http://lists.helixcode.com/mailman/listinfo/evolution

-It doesn't appear to work.  I've got db3 installed (3.1.17), and
configure/autogen.sh still barfs.  I copied the following bit of code
from the end of config.log, added the #warnings and the fprintf, and ran
it:


#if 0
#warning db3/db.h
#include <db3/db.h>
#else
#warning db.h
#include <db.h>
#endif
#include <stdio.h>

int
main (void)
{
        int major, minor, patch;
        db_version (&major, &minor, &patch);

        fprintf(stdout, "%d.%d.%d\n", major, minor, patch);
                                
        if (major == 3 &&
            minor == 1 &&
            patch == 17)
                return 0;
        else
                return 1;
}

Here is the output:

me2v@reliant tmp $ gcc -o conftest conftest.c -L/usr/lib -ldb  
conftest.c:5:2: warning: #warning db.h
me2v@reliant tmp $ ./conftest 
3.1.17

Evidently, autogen.sh and configure are messed up somewhere in here. 
Haven't had time to track it down yet, though...

The above snippet was geneerated from a configure using

    --with-db3-includes=/usr/include \
    --with-db3-libs=/usr/lib
The tail end of configure says:

checking for libdb3 version 3.1.17... yes
checking for -ldb 3.1.17... no
checking for -ldb3 3.1.17... no
configure: error: Didn't find libdb 3.1.17 libraries.  You must have
libdb version 3.1.17 installed to compile evolution

Now, if *I*, a mere mortal, can compile and link a program against
db3-3.1.17, wherefore cannot configure do the same?

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...

_______________________________________________
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/evolution-hackers

Reply via email to