You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Scott Sanders <ss...@dotnot.org> on 2003/05/08 02:56:04 UTC

Problems setting up svn trunk with httpd HEAD

Hi all,

I am trying to set up Subversion trunk with Apache 2.0 HEAD, and have 
run into some problems.  I think I just need some pointers.

I got subversion bootstrapped and built from the trunk.  I then tried to 
build Apache 2.0 from HEAD using the following:

#!/bin/sh
./configure \
  --enable-so \
  --with-mpm=prefork \
  --enable-ssl \
  --enable-dav=shared \
  --enable-status=shared \
  --enable-info=shared \
  --enable-dav-fs=shared \
  --enable-dav-lock=shared \
  --enable-vhost-alias=shared \
  --enable-rewrite=shared \
  --enable-modules=most \
  --enable-mods-shared=most \
  --enable-proxy=shared \
  --enable-proxy-http=shared \
  --with-dbm=db4 \
  --with-berkeley-db=/usr/local/BerkeleyDB.4.0 \
  --with-apr=../apr \
  --with-apr-util=../apr-util

After the ./configure, make, make install, I have apache running, but 
when I try to install subversion, it says shared modules are not 
enabled.  So I do an httpd -l and get:

Compiled in modules:
  core.c
  prefork.c
  http_core.c

What?

So I do the very same ./configure, make, make install with the 
httpd-2.0.45 dist, and httpd -l gives me:

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

So, so is enabled now.  Peachy.  Now I try to reconfigure, make, make 
install of subversion, and it seems to install fine.  I create a test 
repository with svnadmin create, and set up my httpd.conf to enable SVN 
over that repo, like so:


<Location /testrepo>
    DAV svn
    SVNPath /www/svn.dotnot.org/testrepo
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile "/www/svn.dotnot.org/.htpasswd"
    Require valid-user
</Location>

And when I browse to that URL, I only get this in the error log:

[Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] Could not 
fetch resource information.  [500, #0]
[Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] Could not open 
the SVN filesystem at /www/svn.dotnot.org/testrepo  [500, #160000]
[Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] (84)Invalid or 
incomplete multibyte or wide character: bad database version: got 
3.3.11, should be at least 4.0.14  [500, #160000]

But the in the configure script for apache, I said the use Berkeley 4.0...

What gives?  Is my apache configure script messed up somehow?  Should I 
be asking on the httpd list?

I got subversion up on my windows box no sweat, but this one is stumping 
me a bit.

Thanks
Scott Sanders



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

Re: Problems setting up svn trunk with httpd HEAD

Posted by Scott Sanders <ss...@dotnot.org>.
Michael Price wrote:

> Ben Collins-Sussman wrote:
>
>> Scott Sanders <ss...@dotnot.org> writes:
>>
>>> [Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] (84)Invalid
>>> or incomplete multibyte or wide character: bad database version: got
>>> 3.3.11, should be at least 4.0.14  [500, #160000]
>>
>>
>> You're approximately the 77th person to run into this problem.  Why oh
>> why oh why oh why haven't we made this a compilation FAQ already?!?
>>
>> Your apr-util linked against DB-3, and svn linked against DB-4.
>> Unfortunately, the DB symbols aren't different.  When mod_dav_svn is
>> loaded into Apache's process-space, it ends up resolving the
>> symbolnames against apr-util's DB-3 library.
>>
>> IIRC, the solution is to pass proper compilation flags.  If a clueful
>> person can follow up with the exact solution, I promise to make it
>> into a FAQ right away.  I'm tired of hearing about this problem.
>
>
> Pass "--with-dbm=db4 --with-berkeley-db=/the/db/prefix" to Apache's 
> configure. Then pass "--with-apr=/the/apache/prefix/bin/apr-config 
> --with-apr-util=/the/apache/prefix/bin/apu-config" to Subversion's 
> configure.
>
> Sticking the appropriate paths in there of course :)
>
> Michael
>
That worked beautifully.  Thank you much, Micheal.

I was trying with a separate apr and apr-util, but gave up when apr-util 
from HEAD couldn't find db4.  Switched to the apr released with httpd 
2.0.45, and everything worked perfectly.

Scott


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

Re: Problems setting up svn trunk with httpd HEAD

Posted by Michael Price <mi...@acm.org>.
Jani Averbach wrote:
> On Thu, 8 May 2003, Michael Price wrote:
>>Pass "--with-dbm=db4 --with-berkeley-db=/the/db/prefix" to Apache's configure.
>>Then pass "--with-apr=/the/apache/prefix/bin/apr-config
>>--with-apr-util=/the/apache/prefix/bin/apu-config" to Subversion's configure.
> 
> This won't work if you build apr and apr-util separately, in that case,
> you should use:
> 
> $ apr-util/configure --with-dbm=db4 --with-berkeley-db=/the/db/prefix
> 
> I think that this is the most common pitfall. And this was certainly case
> of the original post.

I never upgrade apr/apr-util apart from apache but I guess if your into that 
then yeh, the flags go with apr-util.

> Moreover, if you like, you could pass to apr-util --with-expat=<path>,
> and same for neon, otherwise your svn will depend from both libxml2 and
> expat, IIRC.

If neon's configure script properly recognized expat on every platform (which it 
doesn't) then this would be an option.

Michael




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

Re: Problems setting up svn trunk with httpd HEAD

Posted by Jani Averbach <ja...@cc.jyu.fi>.
On Thu, 8 May 2003, Michael Price wrote:

> > IIRC, the solution is to pass proper compilation flags.  If a clueful
> > person can follow up with the exact solution, I promise to make it
> > into a FAQ right away.  I'm tired of hearing about this problem.
>
> Pass "--with-dbm=db4 --with-berkeley-db=/the/db/prefix" to Apache's configure.
> Then pass "--with-apr=/the/apache/prefix/bin/apr-config
> --with-apr-util=/the/apache/prefix/bin/apu-config" to Subversion's configure.
>
> Sticking the appropriate paths in there of course :)
>

This won't work if you build apr and apr-util separately, in that case,
you should use:

$ apr-util/configure --with-dbm=db4 --with-berkeley-db=/the/db/prefix

I think that this is the most common pitfall. And this was certainly case
of the original post.

Moreover, if you like, you could pass to apr-util --with-expat=<path>,
and same for neon, otherwise your svn will depend from both libxml2 and
expat, IIRC.

BR, Jani

-- 
Jani Averbach


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

Re: Problems setting up svn trunk with httpd HEAD

Posted by Michael Price <mi...@acm.org>.
Ben Collins-Sussman wrote:
> Scott Sanders <ss...@dotnot.org> writes:
>>[Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] (84)Invalid
>>or incomplete multibyte or wide character: bad database version: got
>>3.3.11, should be at least 4.0.14  [500, #160000]
> 
> You're approximately the 77th person to run into this problem.  Why oh
> why oh why oh why haven't we made this a compilation FAQ already?!?
> 
> Your apr-util linked against DB-3, and svn linked against DB-4.
> Unfortunately, the DB symbols aren't different.  When mod_dav_svn is
> loaded into Apache's process-space, it ends up resolving the
> symbolnames against apr-util's DB-3 library.
> 
> IIRC, the solution is to pass proper compilation flags.  If a clueful
> person can follow up with the exact solution, I promise to make it
> into a FAQ right away.  I'm tired of hearing about this problem.

Pass "--with-dbm=db4 --with-berkeley-db=/the/db/prefix" to Apache's configure. 
Then pass "--with-apr=/the/apache/prefix/bin/apr-config 
--with-apr-util=/the/apache/prefix/bin/apu-config" to Subversion's configure.

Sticking the appropriate paths in there of course :)

Michael




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

Re: Problems setting up svn trunk with httpd HEAD

Posted by Ben Collins-Sussman <su...@collab.net>.
Scott Sanders <ss...@dotnot.org> writes:

> [Sun May 04 22:16:02 2003] [error] [client 63.195.55.166] (84)Invalid
> or incomplete multibyte or wide character: bad database version: got
> 3.3.11, should be at least 4.0.14  [500, #160000]

You're approximately the 77th person to run into this problem.  Why oh
why oh why oh why haven't we made this a compilation FAQ already?!?

Your apr-util linked against DB-3, and svn linked against DB-4.
Unfortunately, the DB symbols aren't different.  When mod_dav_svn is
loaded into Apache's process-space, it ends up resolving the
symbolnames against apr-util's DB-3 library.

IIRC, the solution is to pass proper compilation flags.  If a clueful
person can follow up with the exact solution, I promise to make it
into a FAQ right away.  I'm tired of hearing about this problem.

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