Discussion:
Problem with mod_dav_svn on Ubuntu Server
Robert Dailey
2008-06-14 01:50:58 UTC
Permalink
Hi,

I'm currently still in the process of getting SVN 1.5 RC11 server up
and running through HTTP. Below is what my httpd.conf looks like:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so

<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>



And when I try to restart the apache server, I get the below:

***@server:/download# /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/lib/apache2/modules/mod_dav_svn.so into server:
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear


Can anyone help me please? I don't know enough about svn build process
or Ubuntu yet to solve this myself. Nothing on google helps me out
either. Thanks in advance.
Ryan Schmidt
2008-06-14 06:14:04 UTC
Permalink
Post by Robert Dailey
I'm currently still in the process of getting SVN 1.5 RC11 server up
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/
mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/modules/
mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear
What version of Apache do you have installed? What version of APR do
you have installed?
Robert Dailey
2008-06-14 15:47:35 UTC
Permalink
On Sat, Jun 14, 2008 at 1:14 AM, Ryan Schmidt
Post by Robert Dailey
I'm currently still in the process of getting SVN 1.5 RC11 server up
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear
What version of Apache do you have installed? What version of APR do you
have installed?
I have apache 2.2.8 installed and APR version 1.2.11 and APR-UTIL
version 1.2.12.
Robert Dailey
2008-06-17 02:07:51 UTC
Permalink
Can anyone please help?
Post by Robert Dailey
On Sat, Jun 14, 2008 at 1:14 AM, Ryan Schmidt
Post by Robert Dailey
I'm currently still in the process of getting SVN 1.5 RC11 server up
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module
/usr/lib/apache2/modules/mod_authz_svn.so
Post by Robert Dailey
<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear
What version of Apache do you have installed? What version of APR do you
have installed?
I have apache 2.2.8 installed and APR version 1.2.11 and APR-UTIL
version 1.2.12.
Robert Dailey
2008-06-17 02:09:45 UTC
Permalink
Is APR built as a shared library? I suspect that if the shared library
cannot be found, it will say "undefined symbol", but this is just an
educated guess. Can anyone verify?

Why is building subversion from scratch so difficult? I had to download APR
and APR-UTIL and place those in folders inside of the subversion source
root, since the Ubuntu packages for both seem to be bugged.
Post by Robert Dailey
Can anyone please help?
Post by Robert Dailey
On Sat, Jun 14, 2008 at 1:14 AM, Ryan Schmidt
Post by Robert Dailey
I'm currently still in the process of getting SVN 1.5 RC11 server up
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module
/usr/lib/apache2/modules/mod_authz_svn.so
Post by Robert Dailey
<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear
What version of Apache do you have installed? What version of APR do you
have installed?
I have apache 2.2.8 installed and APR version 1.2.11 and APR-UTIL
version 1.2.12.
becomingguru
2009-03-02 01:49:10 UTC
Permalink
Not sure if we have the same problem, but I was getting the apr_hash_clear
error as well. I did two related things and found a solution. I specified
the apr_config and apu_config for my system apr and apr_utils, respectively,
to the subversion build, and used --with-included-apr config option to
httpd.

-
Post by Robert Dailey
Hi,
I'm currently still in the process of getting SVN 1.5 RC11 server up
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /svn_root
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
* Restarting web server apache2
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load
/usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear
Can anyone help me please? I don't know enough about svn build process
or Ubuntu yet to solve this myself. Nothing on google helps me out
either. Thanks in advance.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Problem-with-mod_dav_svn-on-Ubuntu-Server-tp17834820p22280766.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1253679

To unsubscribe from this discussion, e-mail: [users-***@subversion.tigris.org].
jraanamo
2009-09-02 13:32:12 UTC
Permalink
I had the same problem but it was actually because of the --with-included-apr
option in httpd build. I had apache using included apr and was building svn
using separate apr package. Once I specified --with-apr and --with-apr-util
in apache build things started to work and dav_svn was loaded properly.
and used --with-included-apr config option to httpd.
--
View this message in context: http://www.nabble.com/Problem-with-mod_dav_svn-on-Ubuntu-Server-tp17834820p25257697.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390197

To unsubscribe from this discussion, e-mail: [users-***@subversion.tigris.org].
Loading...