You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2003/11/18 02:54:35 UTC
Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
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:
/usr/lib/apache2
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
Re: Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
Posted by Julian Foad <ju...@btopenworld.com>.
Patrick Mayweg wrote:
> Hi Julian,
> Julian Foad wrote:
>
>> Unfortunately this hasn't made any difference to the problem of
>> mod_dav_svn seg-faulting.
>
> I have read your last post. How did you build subversion ? Which version
> did you try ? I am build svn 0.32.1 right on a test system with SuSE 9.0
> on. I will report on my success.
I am building the latest source (which was r7802) of Subversion, as follows:
cd ~/build/subversion/ &&
#~/src/subversion/configure --with-apxs=/usr/sbin/apxs2 --enable-maintainer-mode "$@" >> $VERBOSE_LOG &&
~/src/subversion/configure --with-apxs=/usr/sbin/apxs2 "$@" >> $VERBOSE_LOG &&
make 2>&1 | tee -a $VERBOSE_LOG make.out &&
I normally use --enable-maintainer-mode but commented it out recently in case that was the problem: the install instructions said that that setting should be the same as when Apache was built, and I installed Apache 2.0.48 from an RPM so I assume it isn't built with --enable-maintainer-mode, but I also tried with it.
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
Posted by Patrick Mayweg <ma...@qint.de>.
Hi Julian,
Julian Foad wrote:
> [cc: Subversion dev list]
>
> Patrick Mayweg wrote:
>
>> Hi Julian,
>> Julian Foad wrote:
>>
>>> Julian Foad wrote:
>>>
>>> "make install" ends with:
>>> [...]
>>> 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
>>
>>
>> Do you use Suse Linux 8.2 perhaps? I had the same problem and copied
>> /etc/apache2/httpd.conf to /etc/apache/httpd2-prefork.conf. It look
>> like the SuSE apxs2 tries to update the wrong configuration file.
>
>
> Thanks for the tip. I tried the equivalent of what you did. In my
> case, SuSE 9.0, it was /etc/apache2/sysconfig.d/loadmodule.conf that
> contains the LoadModule lines, and which I therefore copied just to
> make "apxs2" happy. This allowed apxs2 to complete, which involved
> installing mod_authz_svn.
>
> Maybe I should raise this on the Apache dev list; I don't know whether
> it is a bug in apxs2 or caused by the way Subversion's build process
> invokes it.
I would think, it is in the way SuSE builds apxs.
>
> Unfortunately this hasn't made any difference to the problem of
> mod_dav_svn seg-faulting.
I have read your last post. How did you build subversion ? Which version
did you try ? I am build svn 0.32.1 right on a test system with SuSE 9.0
on. I will report on my success.
>
> - Julian
>
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
Posted by Julian Foad <ju...@btopenworld.com>.
[cc: Subversion dev list]
Patrick Mayweg wrote:
> Hi Julian,
> Julian Foad wrote:
>
>> Julian Foad wrote:
>>
>> "make install" ends with:
>> [...]
>> 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
>
> Do you use Suse Linux 8.2 perhaps? I had the same problem and copied
> /etc/apache2/httpd.conf to /etc/apache/httpd2-prefork.conf. It look like
> the SuSE apxs2 tries to update the wrong configuration file.
Thanks for the tip. I tried the equivalent of what you did. In my case, SuSE 9.0, it was /etc/apache2/sysconfig.d/loadmodule.conf that contains the LoadModule lines, and which I therefore copied just to make "apxs2" happy. This allowed apxs2 to complete, which involved installing mod_authz_svn.
Maybe I should raise this on the Apache dev list; I don't know whether it is a bug in apxs2 or caused by the way Subversion's build process invokes it.
Unfortunately this hasn't made any difference to the problem of mod_dav_svn seg-faulting.
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
Posted by Julian Foad <ju...@btopenworld.com>.
Julian Foad wrote:
> 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.
...
> 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:
Upgrading to Apache 2.0.48 has not made any difference. (I didn't re-compile Subversion, but its libraries got re-linked during the "make install".)
- Julian
"make install" ends with:
[...]
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
Re: Installing mod_dav_svn: apxs:Error: Config file /etc/apache2/httpd2-prefork.conf
not found.
Posted by Julian Foad <ju...@btopenworld.com>.
Julian Foad wrote:
[...]
> * 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:
[...]
Writing that e-mail set me off investigating other avenues, of course, and I found pre-built RPMs for Apache 2.0.48 at ftp://ftp.suse.com/pub/projects/apache/apache2/9.0-i386/, so I'll install those and then try installing Subversion again.
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org