[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-18 03:54:35 CET

I am trying to install mod-dav-svn for the first time, and am getting this error message (see the full output at the end of this message).

/etc/apache2/httpd2-prefork.conf would indeed not be found, because it is not there. Should it be? httpd.conf and various other .conf files are in that directory.

I have installed Apache 2.0.47* from the SuSE-9.0 binary RPM, and it is working, and when I installed the "subversion-server" RPM (mod_dav_svn 0.27) I got that working, too, but now I have uninstalled mod_dav_svn 0.27 and am installing the latest build.

If I ignore the "apxs" error and continue, the Apache starts up OK but when I try "svn ls http://localhost/repos/myrepos", mod_dav_svn segfaults:

  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 32771 (LWP 18460)]
  0x0807872d in ap_get_module_config ()
  (gdb) bt
  #0 0x0807872d in ap_get_module_config ()
  #1 0x4038e837 in dav_svn_get_resource (r=0x81af730, root_path=0x814b4e8 "/repos/myrepos",
      label=0x0, use_checked_in=0, resource=0x40a37cc8)
      at /home/julianfoad/src/subversion/subversion/mod_dav_svn/repos.c:1086
  #2 0x40374090 in dav_get_resource () from /usr/lib/apache2-worker/mod_dav.so
  #3 0x4037620d in dav_method_propfind () from /usr/lib/apache2-worker/mod_dav.so
  #4 0x0806b878 in ap_run_handler ()
  #5 0x00000008 in ?? ()

* Yes, I know we require Apache 2.0.48 now, and I am currently investigating building it from source. I have got as far as wondering what --prefix or set of prefixes to supply to "./configure". One of the many patches in the SuSE Apache-2.0.47 RPM is a patch to config.layout, which I suppose will be a good starting point.

I can't even build 2.0.47 from its source RPM yet, though: "rpmbuild -bc SPECS/apache2.spec" fails with:
  checking for ldap_init in -lldap... no
  configure: error: could not find an LDAP library
  configure failed for srclib/apr-util
even though /usr/lib/libldap.so.2 exists:
> ls /usr/lib/libldap.*
  lrwxrwxrwx 1 root 18 2003-11-13 11:54 /usr/lib/libldap.so.2 -> libldap.so.2.0.122
  -rwxr-xr-x 1 root 237971 2003-09-23 22:52 /usr/lib/libldap.so.2.0.122

I spent all weekend getting this far. I was stumped for about an hour when the home page of mod_dav offered a version for Apache 1.3, but nothing for Apache 2. Perhaps, Greg, you could add a note there to the effect of "mod_dav for Apache 2 is included in the Apache 2 distribution".

Any help or advice would be appreciated.

- Julian

This is the end of the output from "make install":

/home/julianfoad/src/subversion/ac-helpers/install-sh -c -m 644 /home/julianfoad/src/subversion/subversion/svnserve/svnserve.conf.5 /usr/local/man/man5/svnserve.conf.5
/home/julianfoad/src/subversion/ac-helpers/install-sh -c -m 644 /home/julianfoad/src/subversion/subversion/svnversion/svnversion.1 /usr/local/man/man1/svnversion.1
/home/julianfoad/src/subversion/ac-helpers/install-sh -c -d /usr/local/info
cd subversion/mod_dav_svn ; /home/julianfoad/src/subversion/ac-helpers/install-sh -c -d "/usr/lib/apache2" ; /usr/sbin/apxs2 -i -S LIBEXECDIR="/usr/lib/apache2" -a -n dav_svn mod_dav_svn.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' mod_dav_svn.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp mod_dav_svn.la /usr/lib/apache2/
libtool: install: warning: relinking `mod_dav_svn.la'
(cd /home/julianfoad/build/subversion/subversion/mod_dav_svn; /bin/sh /home/julianfoad/build/subversion/libtool --mode=relink gcc -g -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -DNEON_ZLIB -DSVN_DEBUG -DAP_DEBUG -Wpointer-arith -Wwrite-strings -Wshadow -std=c89 -rpath /usr/lib/apache2 -avoid-version -module -o mod_dav_svn.la activity.lo deadprops.lo liveprops.lo log.lo merge.lo mod_dav_svn.lo repos.lo update.lo util.lo version.lo ../../subversion/libsvn_repos/libsvn_repos-1.la ../../subversion/libsvn_fs/libsvn_fs-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la )
libtool: link: warning: `/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../..//libdb-4.1.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../..//libdb-4.1.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../..//libdb-4.1.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../..//libdb-4.1.la' seems to be moved
gcc -shared .libs/activity.o .libs/deadprops.o .libs/liveprops.o .libs/log.o .libs/merge.o .libs/mod_dav_svn.o .libs/repos.o .libs/update.o .libs/util.o .libs/version.o -Wl,--rpath -Wl,/usr/local/lib -L/home/julianfoad/build/subversion/apr/.libs -L/usr/lib -L/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../ -L/home/julianfoad/build/subversion/apr-util/.libs -L/home/julianfoad/build/subversion/subversion/libsvn_subr/.libs -L/home/julianfoad/build/subversion/subversion/libsvn_delta/.libs -L/home/julianfoad/build/subversion/subversion/libsvn_fs/.libs -L/usr/local/lib -lsvn_repos-1 -lsvn_fs-1 -lsvn_delta-1 -lsvn_subr-1 -Wl,-soname -Wl,mod_dav_svn.so -o .libs/mod_dav_svn.so
cp .libs/mod_dav_svn.soT /usr/lib/apache2/mod_dav_svn.so
cp .libs/mod_dav_svn.lai /usr/lib/apache2/mod_dav_svn.la
cp .libs/mod_dav_svn.a /usr/lib/apache2/mod_dav_svn.a
ranlib /usr/lib/apache2/mod_dav_svn.a
chmod 644 /usr/lib/apache2/mod_dav_svn.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
chmod 755 /usr/lib/apache2/mod_dav_svn.so
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
make: *** [install-mods-shared] Error 1

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 18 03:53:13 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.