Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I get the mod_dav_svn.so for Mavericks version 10.9

I searched the internet. downloaded the subversion-1.6.18.tar.bz2.

But after I run ./configure, the error is

configure: error: failed to recognize APR_INT64_FMT on this platform.


I cannot make the mod_dav_svn.so file.

iMac (21.5-inch Mid 2010), OS X Mavericks (10.9)

Posted on Dec 11, 2013 9:03 PM

Reply
20 replies

Dec 12, 2013 5:03 AM in response to Melophage

I already have apache running.

In fact, before I updated my iMac to Mavericks, I have both svn server and apache running. I can use other computer to checkout and commit my svn repository on my iMac.

After I updated my iMac to Mavericks, there is no mod_dav_svn.so and mod_authz_svn.so file in the /usr/libexec/apache2/ directory. I have to compile these 2 so files by my self.


Should I go back to former OS by time machine to get these 2 files and come back to current version and use them?

I don't know if there are compatible.


Thank you for your help.

Dec 12, 2013 9:18 PM in response to bookstorereader

bookstorereader,


so if I understand your situation correctly, whichever version of OS X was on your iMac before Mavericks had a version of Apache with both the mod_dav_svn and mod_authz_svn modules available; and now that you’ve updated to Mavericks, the Apple-supplied version of Apache does not have these two modules available. Is that correct?


On your previous version of OS X, did you compile Apache yourself, or did you use the Apple-supplied version of Apache?


I would not recommend trying to compile two modules for a preëxisting Apache binary; you would need to exactly duplicate all of the Apache configuration options to ensure compatibilty. If you need a version of Apache with these two modules, and Apple does not provide a version of Apache that has them, then I would recommend that you compile your own version of Apache to include these two modules, and that you install them somewhere other than /usr/libexec/apache2 — I’d recommend somewhere under /opt/local, and adjusting your PATH environment variable accordingly.

Dec 13, 2013 7:49 PM in response to Melophage

Melophage,


1. You said: so if I understand your situation correctly, whichever version of OS X was on your iMac before Mavericks had a version of Apache with both the mod_dav_svn and mod_authz_svn modules available; and now that you’ve updated to Mavericks, the Apple-supplied version of Apache does not have these two modules available. Is that correct?


Answer: Yes, you are right.


2. You said: On your previous version of OS X, did you compile Apache yourself, or did you use the Apple-supplied version of Apache?

Answer: The Apache provided by Apple. All I need to do is enable the web sharing according to the instructions below:

Enable Web Sharing

  1. Click the 'System Preferences' icon in the Dock.
  2. Click the 'Sharing' icon in the Internet & Network section of the System Preferences window.
  3. Place a check mark in the ‘Web Sharing’ box. (OS X 10.4 calls this box ‘Personal Web Sharing.') Web sharing will turn on.



You suggest me to build these 2 .so files by Apache source code. But I don't know whether they are in the Apache source code or subversion source code. Because some website told me to build them by subversion source code but the ./configure failed, I cannot build subversion.

Dec 13, 2013 9:21 PM in response to bookstorereader

bookstorereader,


no, I’m not suggesting that you build those two .so files in isolation; I’m suggesting that you build your own copies of Apache and subversion on Mavericks, so that the mod_dav_svn and mod_authz_svn modules that get created will be exact matches for your compilation configuration. It looks like Apache 2.4.7 and subversion 1.8.5 are the most recent stable versions at this time, so I would recommend compiling those versions.

Dec 15, 2013 8:11 PM in response to Melophage

After installed lua, pcre and so on, I finally built the apache 2.4.7 with --prefix=/opt/local and subversion 1.8.5. But I didn't "make install" them.

Because I am afraid if I make install them the current apache will crash. It happened before.

Do I need turn off the current apache before make install the new 2.4.7 apache?

How to turn off the current httpd 2.2.24?

Dec 15, 2013 8:39 PM in response to bookstorereader

bookstorereader,


if you have fears of the --prefix=directory option being ignored, you could run make -n install for a dry run, to see what it will do without actually doing the install.


Does subversion also accept the --prefix=directory option? If so, did you also provide it when making subversion?


You don’t need to shutdown the 2.2.24 httpd before installing the 2.4.7 httpd. Use httpd -k graceful-stop to turn off your 2.2.24 httpd. (If you assign a different port to the 2.4.7 httpd, you could have both of them running simultaneously.)

Dec 16, 2013 8:04 PM in response to Melophage

I compiled and installed the apache2 2.4.7 and subversion 1.8.5. But after copy these 2 .so files to ./modules directory of apache2 and changed the http.conf file, run apachectl in test mode has errer:


$ ./apachectl -f ../apache2/conf/httpd.conf -t

httpd: Syntax error on line 150 of /usr/local/bin/apache2/conf/httpd.conf: Cannot load modules/mod_dav_svn.so into server: dlopen(/usr/local/bin/apache2/modules/mod_dav_svn.so, 10): Symbol not found: _ap_log_error\n Referenced from: /usr/local/bin/apache2/modules/mod_dav_svn.so\n Expected in: flat namespace\n in /usr/local/bin/apache2/modules/mod_dav_svn.so

Dec 17, 2013 5:14 AM in response to Melophage

I downloaded everything to /usr/local/src and untar them. I Installed all of them to /usr/local/bin.


cd httpd-2.4.7

sudo ./configure --prefix=/usr/local/bin/apache2 --with-included-apr --with-pcre=/usr/local/lib/pcre

sudo make

sudo make install


cd ../subversion-1.8.5

sudo ./configure --prefix=/usr/local --enable-mod-activation --with-openssl --with-zlib --with-apr=../httpd-2.4.7/srclib/apr/apr-1-config --with-apr-util=../httpd-2.4.7/srclib/apr-util/apu-1-config

sudo make

sudo make install

Dec 17, 2013 9:48 AM in response to Melophage

It is the first line of the 2 lines I added:


LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so


If I comment the first line, the second line will be error.

These 2 so files were built by subversion-1.8.5 and copied to /usr/local/bin/apache2/modules/ directory.


I wonder how to make sure the apache version compatible with the subversion version. They are built seperately as my last post. The only connection between the apache and subversion are they both use the apr and apr-util to build. Is that enough?

Dec 17, 2013 12:45 PM in response to etresoft

I don't understand what you said: "If you download the source to subversion to match what is in Mavericks/Xcode5 (subversion 1.7.10), subversion will use the proper apxs tool to build and link against the installed Apache version."


Could you tell me what I did wrong or what should I do?

Why the 2 .so files are not accepted by my new build apache?

Is it subversion problem or apache problem?

How can I get the mod_dav_svn.so for Mavericks version 10.9

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.