<<< Date Index >>>     <<< Thread Index >>>

Re: BDB4 from pkgsrc



Fabian Groffen --> mutt-dev (2007-04-07 14:17:41 +0200):
[...]
> > 2) My suspicions are that after this patch my segfaults in hcache are
> >    back again.  I think the reason is the following:
> 
> [snip]
> 
> > Includes are taken from db4.3, while the final linking is done against
> > db-4.5.  Somehow I can imagine that this can go wrong.
> > 
> > I can't find a way to force configure to just do "normal", so maybe I'll
> > give up on bdb, or hack the configure check for Gentoo.
> 
> Suspicions are confirmed (this is Mutt 1.5.15 on Solaris).  Without the
> pkgsrc patch, configure uses as include usr/include// (note the slash),
> and db-4.5.  Before I submitted this patch that supports 4.4 and 4.5,
> the include was still the same, seeing headers of db4.5, while linking
> with -ldb4.3.

Which bdb versions do you have installed? Which are the paths to the
include files and to the libraries?


> This also explains why other people report success with db 4.3, it is
> simply the header/library mismatch that breaks things.  Maybe mutt's
> configure can check for this.  It looks like the configure checks for
> Berkely DB aren't optimal.  Maybe Mutt can borrow some of the logic from
> apr-util in this regard?

Yes, probably it would be best to provide additional configure options,
e.g. `--with-bdb-incdir=DIR' and `--with-bdb-libdir=DIR' as Cyrus
IMAP's configure script does.

But maybe it's easier to use QDBM instead... ;-)


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~