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

Can't "make install"

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-06-02 22:18:27 CEST

I can't "make install" Subversion. I get an error like this:

    /usr/local/apache2/build/instdso.sh
    SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_dav_svn.la
    /usr/local/apache2/modules
    /usr/local/apache2/build/libtool --mode=install cp mod_dav_svn.la
    /usr/local/apache2/modules/
    libtool: install: error: cannot install `mod_dav_svn.la' to a directory
    not ending in /usr/local/lib
    apxs:Error: Command failed with rc=65536
    .
    make: *** [install-mods-shared] Error 1

Looking a bit further, I see in the generated build-outputs.mk a rule to
make mod_dav_svn.la that uses $(LINK). $(LINK) includes "-rpath $(libdir)".
So this command must be changed to allow it be installed to the correct dir.

I changed ac-helpers/svn-apache.m4 and Makefile.in to set APACHE_LIBEXECDIR
to be this directory, via apxs. But I'm not sure how to plug it in once I've
got it. I manually added this line to build-outputs.m4:

    subversion/mod_dav_svn/mod_dav_svn.la: libdir=$(APACHE_LIBEXECDIR)

and that seemed to work. But how do I duplicate that with changes to
build.conf and build/gen_base.py instead?

--
Scott Lamb
Index: ./Makefile.in
===================================================================
--- ./Makefile.in
+++ ./Makefile.in	Sun Jun  2 14:58:03 2002
@@ -56,6 +56,7 @@
 
 APACHE_INCLUDES = @APACHE_INCLUDES@
 APACHE_TARGET = @APACHE_TARGET@
+APACHE_LIBEXECDIR = @APACHE_LIBEXECDIR@
 
 SWIG_PY_INCLUDES = @SWIG_PY_INCLUDES@
 
Index: ./ac-helpers/svn-apache.m4
===================================================================
--- ./ac-helpers/svn-apache.m4
+++ ./ac-helpers/svn-apache.m4	Sun Jun  2 15:00:04 2002
@@ -85,6 +85,7 @@
 
     APXS_CC="`$APXS -q CC`"
     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
+    APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
 
     INSTALL_APACHE_RULE=install-mods-shared
 
@@ -104,6 +105,7 @@
 fi
 AC_SUBST(APACHE_TARGET)
 AC_SUBST(APACHE_INCLUDES)
+AC_SUBST(APACHE_LIBEXECDIR)
 AC_SUBST(BUILD_APACHE_RULE)
 AC_SUBST(INSTALL_APACHE_RULE)
 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 2 22:19:44 2002

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.