You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Timothee Besset <tt...@idsoftware.com> on 2003/12/07 23:05:25 UTC

httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

SVN 0.34 recommends DB 4.2 ..

However, I've found that apr-util in httpd 2.0.48 can't be built against
4.2. The configure script will check the minor version to be == 0, and
will bail out otherwise.

~/Build/httpd-2.0.48$ cat ./config.nice
#! /bin/sh
#
# Created by configure
 
"./configure" \
"--enable-dav" \
"--enable-so" \
"--prefix=/usr/local/apache2/" \
"--enable-ssl" \
"--enable-deflate" \
"--with-mpm=worker" \
"--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
"--with-dbm=db4" \
"$@"

checking checking for Berkeley DB 4.0 in /usr/local/BerkeleyDB.4.2/...
checking for db4/db.h... no
checking for db.h... yes
checking for db-4.0... no
checking for db4/db.h... no
checking for db.h... yes
checking for db4... no
checking for db4/db.h... no
checking for db.h... yes
checking for db... no
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util

from srclib/apr-util/config.log:

configure:8823: gcc -o conftest  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.2//include  -L/usr/local/BerkeleyDB.4.2//lib conftest.c  -ldb-4.0 1>&5
configure: failed program was:
[..]
  if (0 != -1) {
    if (minor < 0)
      exit (1);
    if (minor > 0)
      exit (0);
  }
That will *NOT* let 4.2 through

Another thing I'd mention, is that the INSTALL file doesn't mention
anywhere that you need to pass Berkeley DB info to apr-util config. If you
don't though, svn's configure stage won't agree to build server stuff. And
also that httpd 2.0.48's toplevel configure doesn't mention anything about
Berkeley DB either in it's --help (as it's stuff that's going to be passed
to srclib/apr-util/configure). 

TTimo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Josef Wolf <jw...@raven.inka.de>.
On Wed, Jan 07, 2004 at 06:22:30PM +0100, Sander Striker wrote:
> On Wed, 2004-01-07 at 17:20, Josef Wolf wrote:

> > Sander, I just did:
> [ ... ]
> huh?

Argh! Me little idiot checked out in a wrong directory. Works now.

Sorry for the confusion!

-- 
-- Josef Wolf -- jw@raven.inka.de --

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Wed, 2004-01-07 at 17:20, Josef Wolf wrote:
> Sander Striker wrote:
> >I backported it to the APU_0_9_BRANCH of apr-util, so it will be in
> >the next apr(-util) release, aswell as the next httpd release.  In the
> >meantime, I'd advise using apr-util APU_0_9_BRANCH (or at least
> >updating configure.in and build/dbm.m4 to that version).
> 
> Sander, I just did:
> 
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -r APU_0_9_BRANCH apr-util
> 
> but srclib/build/dbm.m4 still don't have a section for db42. In contrast, a
> section for db41 exists. Would you mind to add one?

huh?

"""
Revision 1.3.2.2
Sun Dec 7 09:59:54 2003 UTC (4 weeks, 3 days ago) by striker
Branch: APU_0_9_BRANCH

Backport from 1.0.

* configure.in

  Set EXTRA_OS_LIBS correctly for BeOS.


* build/dbm.m4

  Add a BeOS search path for Berkeley DB 4 and 4.1.  Add detection
  for Berkeley DB 4.2.
"""

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Josef Wolf <jw...@raven.inka.de>.
Sander Striker wrote:
>I backported it to the APU_0_9_BRANCH of apr-util, so it will be in
>the next apr(-util) release, aswell as the next httpd release.  In the
>meantime, I'd advise using apr-util APU_0_9_BRANCH (or at least
>updating configure.in and build/dbm.m4 to that version).

Sander, I just did:

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -r APU_0_9_BRANCH apr-util

but srclib/build/dbm.m4 still don't have a section for db42. In contrast, a
section for db41 exists. Would you mind to add one?

-- 
-- Josef Wolf -- jw@raven.inka.de --

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Garret Wilson wrote:
> /usr/X11R6/lib
> /usr/kerberos/lib
> /usr/lib
> /usr/local/lib
> /usr/lib/mysql
> 
> Is this some sort of new requirement for httpd 2.0.48? httpd 2.0.47 
> configures fine with Berkeley DB 4.1, and there doesn't seem to be any 
> reference to Berkeley DB 4.1 in my ld.so.conf file.

I don't know why 2.0.47 and BDB4.1 wouldn't need it, too; the ld.so.conf 
file needs to have path's to all shared library files OR you need to 
specify the path explicitely using -L.  Perhaps 2.0.47's configure knows 
to look at the "standard" BDB installation paths, and that was made more 
general in 2.0.48 (and hence misses things).

The change to ld.so.conf is not in anyway dangerous (AFAIK).  I believe 
that when building BDB 4.2.52, I even saw explicit instructions to make 
that change...

John


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
Thanks, everyone, for the help. I've successfully configured and built 
httpd 2.0.48, now.

The Subversion installation documentation talks about ld.so.conf in the 
context of Subversion, but not Apache/Berkeley DB, as far as I can tell. 
It should probably indicate that the ld.so.conf modifications need to be 
made for https 2.0.48 to find Berkeley DB 4.2.

It should probably made clear as well that the correct entry to 
ld.so.conf is /usr/local/BerkeleyDB.4.2/lib, not /usr/local/BerkeleyDB.4.2 .

Cheers,

Garret

Sander Striker wrote:
> The reason you didn't 'need' the LDFLAGS=-R... or LD_LIBRARY_PATH=.. (or
> select other options), is because the old logic didn't check if the db
> it found for linking was the correct version.  It would detect the db4
> header file and detect it could link to some version of db (in /usr/lib
> for instance).  The new code checks to see if it can actually link to
> the version of db that has the same version as was being looked for.
> Hence the need for being able to resolve the path to the library at
> runtime.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Mon, 2003-12-29 at 07:48, Justin Erenkrantz wrote:
> --On Sunday, December 28, 2003 12:20 PM -0800 Garret Wilson 
> <ga...@globalmentor.com> wrote:
> 
> > I can try making the change, but I'd first like to know why this would be
> > any different in httpd 2.0.48 before I blindly change a file that has worked
> > before.
> 
> Just follow Erik's suggestion of adding the right -R flag to your LDFLAGS 
> variable before running configure.
> 
> There's no need to add to ld.so.conf here if you do that.
> 
> As to why it's different, 2.0.48 has revamped autoconf logic to detect BDB 
> installations.  It's much better now.

The reason you didn't 'need' the LDFLAGS=-R... or LD_LIBRARY_PATH=.. (or
select other options), is because the old logic didn't check if the db
it found for linking was the correct version.  It would detect the db4
header file and detect it could link to some version of db (in /usr/lib
for instance).  The new code checks to see if it can actually link to
the version of db that has the same version as was being looked for.
Hence the need for being able to resolve the path to the library at
runtime.


Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Sunday, December 28, 2003 12:20 PM -0800 Garret Wilson 
<ga...@globalmentor.com> wrote:

> I can try making the change, but I'd first like to know why this would be
> any different in httpd 2.0.48 before I blindly change a file that has worked
> before.

Just follow Erik's suggestion of adding the right -R flag to your LDFLAGS 
variable before running configure.

There's no need to add to ld.so.conf here if you do that.

As to why it's different, 2.0.48 has revamped autoconf logic to detect BDB 
installations.  It's much better now.  (Thanks to Sander for this!)  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
Erik Huelsmann wrote:
> Garret,
> 
> It is possible to achieve the same (ie as ldconfig and adjusting ld.so.conf)
> by specifying
[cut]

So what I'm hearing is that I need to change my ld.so.conf file, which 
currently contains:

/usr/X11R6/lib
/usr/kerberos/lib
/usr/lib
/usr/local/lib
/usr/lib/mysql

Is this some sort of new requirement for httpd 2.0.48? httpd 2.0.47 
configures fine with Berkeley DB 4.1, and there doesn't seem to be any 
reference to Berkeley DB 4.1 in my ld.so.conf file.

I can try making the change, but I'd first like to know why this would 
be any different in httpd 2.0.48 before I blindly change a file that has 
worked before.

Cheers,

Garret


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Erik Huelsmann <e....@gmx.net>.
Garret,

It is possible to achieve the same (ie as ldconfig and adjusting ld.so.conf)
by specifying

  LDFLAGS=-R/usr/local/BerkeleyDB.4.2 ./configure
--with-berkeley-db=/usr/local/BerkelyDB.4.2

the -R option is passed to the linker to specify an extra dependency on the
resulting dynamic executable/library only.

HTH,

Erik.

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
David Summers wrote:
> On Sun, 28 Dec 2003, Garret Wilson wrote:
>>I'm using Red Hat Linux ~7. (BTW, how can I find out the exact version 
>>of Red Hat?)
> 
> cat /etc/redhat-release

Thanks. I'm using:

Red Hat Linux release 7.0 (Guinness)

Garret



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by David Summers <da...@summersoft.fay.ar.us>.
On Sun, 28 Dec 2003, Garret Wilson wrote:

> I'm using Red Hat Linux ~7. (BTW, how can I find out the exact version 
> of Red Hat?)
> 

cat /etc/redhat-release

-- 
David Wayne Summers          "Linux: Because reboots are for hardware upgrades!"
david@summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
John Peacock wrote:
> Garret Wilson wrote:
>> I can't even get httpd 2.0.48 to recognize Berkeley DB 4.1. httpd 
>> 2.0.47 seems to recognize Berkeley DB 4.1 just fine.
> 
> Did you add the BerkeleyDB path to /etc/ld.so.conf and run ldconfig?

No, but apparently I didn't do that for Berkeley DB 4.1, either, so that 
shouldn't make a difference.

> What platform are you using?

I'm using Red Hat Linux ~7. (BTW, how can I find out the exact version 
of Red Hat?)

 > I have had no problem doing this with both
> Mandrake 9.1 and SuSE 9 (i.e. build BDB 4.2.52 and Apache 2.0.48 from 
> scratch prior to building Subversion).

It's strange. I use the exact .configure settings for httpd 2.0.47 and 
httpd 2.0.48, and it works for the former and not the latter.

Garret



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Garret Wilson wrote:
> I can't even get httpd 2.0.48 to recognize Berkeley DB 4.1. httpd 2.0.47 
> seems to recognize Berkeley DB 4.1 just fine. I'm using the following 
> commands:
> 
> ./buildconf
> ./configure --enable-proxy --enable-dav --enable-ssl --enable-so 
> --enable-auth_digest --enable-deflate --with-ssl=/usr/local/ssl 
> --with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB.4.1

Did you add the BerkeleyDB path to /etc/ld.so.conf and run ldconfig? 
What platform are you using?  I have had no problem doing this with both 
Mandrake 9.1 and SuSE 9 (i.e. build BDB 4.2.52 and Apache 2.0.48 from 
scratch prior to building Subversion).

John


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
Garret Wilson wrote:
> Right now, I'm going back to the http 2.0.48 from the tar file and going 
> back to Berkeley DB 4.1 to see if that works.

I can't even get httpd 2.0.48 to recognize Berkeley DB 4.1. httpd 2.0.47 
seems to recognize Berkeley DB 4.1 just fine. I'm using the following 
commands:

./buildconf
./configure --enable-proxy --enable-dav --enable-ssl --enable-so 
--enable-auth_digest --enable-deflate --with-ssl=/usr/local/ssl 
--with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB.4.1

What's going wrong?

Thanks,

Garret


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Garret Wilson <ga...@globalmentor.com>.
Sander Striker wrote:
> I backported it to the APU_0_9_BRANCH of apr-util, so it will be in
> the next apr(-util) release, aswell as the next httpd release.  In the
> meantime, I'd advise using apr-util APU_0_9_BRANCH (or at least
> updating configure.in and build/dbm.m4 to that version).

Hmmm... I've tried to update apr to recognize Berkeley DB 4.2 by using 
the following:

cd srclib
rm -rf apr
rm -rf apr-lib
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -r 
APR_0_9_BRANCH apr
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -r 
APU_0_9_BRANCH apr-util

I then try to .configure Apache, and I get the same error---that Apache 
cannot find Berkeley DB 4.

Right now, I'm going back to the http 2.0.48 from the tar file and going 
back to Berkeley DB 4.1 to see if that works. Any idea what I'm doing wrong?

Garret



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Branko Čibej <br...@xbc.nu>.
Sander Striker wrote:

>On Mon, 2003-12-08 at 00:09, Branko ÄŒibej wrote:
>  
>
>>Timothee Besset wrote:
>>
>>    
>>
>>>SVN 0.34 recommends DB 4.2 ..
>>>
>>>However, I've found that apr-util in httpd 2.0.48 can't be built against
>>>4.2. The configure script will check the minor version to be == 0, and
>>>will bail out otherwise.
>>> 
>>>
>>>      
>>>
>>Yes, that's why I ended up using dbm.m4 from apr-util HEAD instead of
>>the one bundled in the httpd-2.0.48 sources...
>>    
>>
>
>I backported it to the APU_0_9_BRANCH of apr-util, so it will be in
>the next apr(-util) release, aswell as the next httpd release.  In the
>meantime, I'd advise using apr-util APU_0_9_BRANCH (or at least
>updating configure.in and build/dbm.m4 to that version).
>  
>
Great. BTW, it turns out that just upgrading build/dbm.m4 is enough.

Of course, the funny thing is that apr-util's configure says it found
bdb4.0 in the 4.2 directory -- because it's not looking for an exact
version match. Oh, well, that's a minor nit.


-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Mon, 2003-12-08 at 00:09, Branko Čibej wrote:
> Timothee Besset wrote:
> 
> >SVN 0.34 recommends DB 4.2 ..
> >
> >However, I've found that apr-util in httpd 2.0.48 can't be built against
> >4.2. The configure script will check the minor version to be == 0, and
> >will bail out otherwise.
> >  
> >
> Yes, that's why I ended up using dbm.m4 from apr-util HEAD instead of
> the one bundled in the httpd-2.0.48 sources...

I backported it to the APU_0_9_BRANCH of apr-util, so it will be in
the next apr(-util) release, aswell as the next httpd release.  In the
meantime, I'd advise using apr-util APU_0_9_BRANCH (or at least
updating configure.in and build/dbm.m4 to that version).

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Branko Čibej <br...@xbc.nu>.
Timothee Besset wrote:

>SVN 0.34 recommends DB 4.2 ..
>
>However, I've found that apr-util in httpd 2.0.48 can't be built against
>4.2. The configure script will check the minor version to be == 0, and
>will bail out otherwise.
>  
>
Yes, that's why I ended up using dbm.m4 from apr-util HEAD instead of
the one bundled in the httpd-2.0.48 sources...

>Another thing I'd mention, is that the INSTALL file doesn't mention
>anywhere that you need to pass Berkeley DB info to apr-util config.
>
Line 760 and below. Not very clear, I'll grant.



-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Sander Striker wrote:
> On Tue, 2003-12-09 at 12:19, John Peacock wrote:
> 
>>the BDB search code will not kick in...
> 
> 
> Tecnically it will.  It will only search the location you specified
> though, trying db 4.1, 4.0, 3, etc.  The reason this works is because
> 4.2 is accepted in the db4 check, and because there probably is a
> libdb4.so in the lib/ subdir of the location you specify.
> 
> Details...

OK, the code that wanders all over your hard-drive looking for BDB versions 
won't be triggered (i.e. it won't find the libdb4.so installed in /usr/lib). 
The code that confirms that the location you specified has the appropriate 
include and lib files will fire.

Too many details... ;)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Tue, 2003-12-09 at 12:19, John Peacock wrote:
> Yes, this is exactly what I did too, again just last night with SuSE 9.0.  As 
> long as you use at least:
> 
> 	./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.2
> 
> the BDB search code will not kick in...

Tecnically it will.  It will only search the location you specified
though, trying db 4.1, 4.0, 3, etc.  The reason this works is because
4.2 is accepted in the db4 check, and because there probably is a
libdb4.so in the lib/ subdir of the location you specify.

Details...

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Martin Tomes wrote:
> Ben Collins-Sussman wrote:
> 
>> By the way, here's exactly what I did on my RedHat 9 system to get BDB
>> 4.2 working (On Redhat9, /lib/db.so is db 4.0):
> 
> 
> Are you quite sure of this?  I tried and gave up yesterday, the 
> configure scripts for httpd 2.0.48 search for BDB starting at version 
> 4.1 and working backwards.  Whatever I did it found the RedHat BDB 4.0 
> and not the 4.2 one I built and installed in /usr/local.  I ended up 
> going back to 4.0 - which it does find in /usr/local as it knows how to 
> find versions 4.1 and earlier there.  Actually I did it on Fedora, but I 
> can't see how RedHat 9 can work any better.
> 

Yes, this is exactly what I did too, again just last night with SuSE 9.0.  As 
long as you use at least:

	./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.2

the BDB search code will not kick in...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Martin Tomes <li...@tomes.org>.
Ben Collins-Sussman wrote:

> By the way, here's exactly what I did on my RedHat 9 system to get BDB
> 4.2 working (On Redhat9, /lib/db.so is db 4.0):

Are you quite sure of this?  I tried and gave up yesterday, the 
configure scripts for httpd 2.0.48 search for BDB starting at version 
4.1 and working backwards.  Whatever I did it found the RedHat BDB 4.0 
and not the 4.2 one I built and installed in /usr/local.  I ended up 
going back to 4.0 - which it does find in /usr/local as it knows how to 
find versions 4.1 and earlier there.  Actually I did it on Fedora, but I 
can't see how RedHat 9 can work any better.

-- 
Martin Tomes
echo 'Martin x Tomes at controls x eurotherm x co x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Ben Collins-Sussman <su...@collab.net>.
By the way, here's exactly what I did on my RedHat 9 system to get BDB
4.2 working (On Redhat9, /lib/db.so is db 4.0):


* installed /usr/local/BerkeleyDB.4.2/
* added /usr/local/BerkeleyDB.4.2/lib to /etc/ld.so.conf, ran 'ldconfig'
* configured apache 2.0.48: --with-berkeley-db=/usr/local/BerkeleyDB.4.2
* built and installed apache
* configured subversion with no mention of DB stuff at all
* built and installed svn.

Everything now uses DB 4.2, according to 'ldd'.

This proves that you do *not* need APU HEAD, nor a patch, to get BDB 4.2
working with released apache and subversion.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Timothee Besset wrote:
> If I don't specify --with-dbm, but only give the path, then the configure
> script runs in httpd completely, builds installs etc.
> 
> But when I configure svn, I get an error about apr-util being installed
> independently, and that the server support will be disabled (i.e. because
> it uses Berkeley DB).
> 

If you also tell svn to use the same BDB installation:

#! /bin/sh
#
# Created by configure

"./configure" \
"--with-berkeley-db=/usr/local/BerkeleyDB.4.2" \
"$@"

that shouldn't be a problem either.  It would be nice if svn would correctly use 
the already installed apr-util (which is, I think, the goal), but it is not 
required.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Timothee Besset <tt...@idsoftware.com>.
If I don't specify --with-dbm, but only give the path, then the configure
script runs in httpd completely, builds installs etc.

But when I configure svn, I get an error about apr-util being installed
independently, and that the server support will be disabled (i.e. because
it uses Berkeley DB).

TTimo

On Mon, 08 Dec 2003 00:42:09 +0100
Sander Striker <st...@apache.org> wrote:

> On Mon, 2003-12-08 at 00:35, John Peacock wrote:
> 
> [...]
> > > "--with-mpm=worker" \
> > > "--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
> > > "--with-dbm=db4" \
> > 
> > That last line is not necessary, and is probably what is causing your problems. 
> >   I just built against BDB-4.2 this morning with the [admittedly simpler] following:
> > 
> > #! /bin/sh
> > #
> > # Created by configure
> > 
> > "./configure" \
> > "--enable-dav" \
> > "--enable-so" \
> > "--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
> > "$@"
> > 
> > As long as you built BDB-4.2 with the defaults, you not only don't need the 
> > --with-dbm=db4 stanza (which is, I believe, a compatibility flag to prevent DB3 
> > from being loaded instead of DB4).
> 
> The with-dbm=...|db3|db4|db41|db42 is to only allow that version of db
> to be selected.  The --with-berkeley-db=PATH makes sure that only a
> version of db found in PATH shall be selected.  IOW, the switches are
> to specify version and location respectively.
> 
> Sander
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Sander Striker wrote:
> But yes, if db is installed in it's default path, it will work with only
> specifying the location, since there obviously is only one db version
> it can choose from.

In other words, --with-dbm is only required if BDB is installed in a shared lib 
location, not if it is built and installed in the BDB default version-specific 
location.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Mon, 2003-12-08 at 00:48, John Peacock wrote:
> Sander Striker wrote:
> > The with-dbm=...|db3|db4|db41|db42 is to only allow that version of db
> > to be selected.  The --with-berkeley-db=PATH makes sure that only a
> > version of db found in PATH shall be selected.  IOW, the switches are
> > to specify version and location respectively.
> 
> But, at least for me, just specifying the location is sufficient.  I am using 
> the Apache 2.0.48 tar file, not any specific CVS release, so I don't have the 
> updated apr-util files.  Once I started using --with-berkeley-db (with default 
> BDB installation), I have _never_ used the --with-dbm.  Granted, it only worked 
> with Berkely-4.0 and 4.1, so I was taking a leap of faith that it would work 
> with 4.2, too. ;~)

It works because it finds a version of db in that location.  It won't
work if there are multiple installations of db in the same path, or at
least, without the --with-dbm switch you have no guarantee that it
selects the correct version.

But yes, if db is installed in it's default path, it will work with only
specifying the location, since there obviously is only one db version
it can choose from.

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Sander Striker wrote:
> The with-dbm=...|db3|db4|db41|db42 is to only allow that version of db
> to be selected.  The --with-berkeley-db=PATH makes sure that only a
> version of db found in PATH shall be selected.  IOW, the switches are
> to specify version and location respectively.

But, at least for me, just specifying the location is sufficient.  I am using 
the Apache 2.0.48 tar file, not any specific CVS release, so I don't have the 
updated apr-util files.  Once I started using --with-berkeley-db (with default 
BDB installation), I have _never_ used the --with-dbm.  Granted, it only worked 
with Berkely-4.0 and 4.1, so I was taking a leap of faith that it would work 
with 4.2, too. ;~)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by Sander Striker <st...@apache.org>.
On Mon, 2003-12-08 at 00:35, John Peacock wrote:

[...]
> > "--with-mpm=worker" \
> > "--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
> > "--with-dbm=db4" \
> 
> That last line is not necessary, and is probably what is causing your problems. 
>   I just built against BDB-4.2 this morning with the [admittedly simpler] following:
> 
> #! /bin/sh
> #
> # Created by configure
> 
> "./configure" \
> "--enable-dav" \
> "--enable-so" \
> "--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
> "$@"
> 
> As long as you built BDB-4.2 with the defaults, you not only don't need the 
> --with-dbm=db4 stanza (which is, I believe, a compatibility flag to prevent DB3 
> from being loaded instead of DB4).

The with-dbm=...|db3|db4|db41|db42 is to only allow that version of db
to be selected.  The --with-berkeley-db=PATH makes sure that only a
version of db found in PATH shall be selected.  IOW, the switches are
to specify version and location respectively.

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: httpd 2.0.48's apr-util doesn't work against Berkeley DB 4.2

Posted by John Peacock <jp...@rowman.com>.
Timothee Besset wrote:
> SVN 0.34 recommends DB 4.2 ..
> 
> However, I've found that apr-util in httpd 2.0.48 can't be built against
> 4.2. The configure script will check the minor version to be == 0, and
> will bail out otherwise.
> 
> ~/Build/httpd-2.0.48$ cat ./config.nice
> #! /bin/sh
> #
> # Created by configure
>  
> "./configure" \
> "--enable-dav" \
> "--enable-so" \
> "--prefix=/usr/local/apache2/" \
> "--enable-ssl" \
> "--enable-deflate" \
> "--with-mpm=worker" \
> "--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
> "--with-dbm=db4" \

That last line is not necessary, and is probably what is causing your problems. 
  I just built against BDB-4.2 this morning with the [admittedly simpler] following:

#! /bin/sh
#
# Created by configure

"./configure" \
"--enable-dav" \
"--enable-so" \
"--with-berkeley-db=/usr/local/BerkeleyDB.4.2/" \
"$@"

As long as you built BDB-4.2 with the defaults, you not only don't need the 
--with-dbm=db4 stanza (which is, I believe, a compatibility flag to prevent DB3 
from being loaded instead of DB4).

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org