You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Scott Lamb <sl...@slamb.org> on 2002/06/02 20:18:27 UTC

Can't "make install"

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

Re: Can't "make install"

Posted by Justin Erenkrantz <je...@apache.org>.
On Sun, Jun 02, 2002 at 03:18:27PM -0500, Scott Lamb wrote:
> 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?

FWIW, I had this problem too and is why I rearranged the install
target orders so that the headers and docs are installed even if
this step fails.

I just hacked at the mod_dav_svn.la file - your solution is slightly
better than mine.  I don't have the time now to think of how to do
this correctly.  *sigh*  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't "make install"

Posted by Scott Lamb <sl...@slamb.org>.
Scott Lamb wrote:
> I can't "make install" Subversion. I get an error like this:

I forgot to mention, this is revision 2070 (latest as I send this).

--
Scott Lamb


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org