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

Re: configure script fails to locate apr

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-11-28 18:12:00 CET

On Wed, Nov 28, 2001 at 07:30:48PM +0300, Vlad Skvortsov wrote:
> On Wed, Nov 28, 2001 at 09:58:25AM -0500, Kevin Pilch-Bisson wrote:
>
> > > What should I do to compile subversion ? ;-)
> > That's to be expected: /usr/local/apache2 is not in the list of places
> > configure checks for apr. You *should* be able to build with:
>
> As I've said today, /local is symlink to /usr/local.
>
Okay I missed that.
>
> > ./configure --enable-maintainer-mode \
> > --with-apxs=/usr/local/apache2/bin/apxs \
> > --with-apr=/usr/local/apache2.
> >
> > If apache is installed at /usr/local/apache2. You did mention yesterday that
> > it was installed at just /local/apache2 (no /usr), and those were the arguments
> > you passed to configure. Check where it is, either /usr/local/apache2, or
> > /local/apache2, and run ./configure appropriately. I tested this yesterday,
> > and it worked fine on my system.
> >
> > If it doesn't work, can you send a log of the commands and output to this list
> > and I'll see what I can do? If you are really stuck, you could always check
>
> Here it is:
>
> [vss@spelio:~/subversion]>./configure --enable-maintainer-mode
> --with-apxs=/usr
> /local/apache2/bin/apxs --with-apr=/usr/local/apache2
> creating config.nice
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> configure: Apache Portable Runtime (APR) library configuration
> ../configure: /usr/local/apache2: permission denied
>
Sorry, just realized that you can't update to take advantage of my changes.
There was a bug in the handling of --with-apr=*. If you have autoconf 2.52
and libtool 1.4 could you apply the patch after my .sig, and run autconf
before trying to build. If you don't have autoconf, try --with-apr-includes
and --with-apr-libs separately.

> checking for apr.h... no
> configure: WARNING: APRVARS not found
> No Apache Portable Runtime (APR) library can be found.
> Either install APR on this system and supply appropriate
> --with-apr-libs and --with-apr-includes options
>
>
> Strange, that message about permission denial. Unfortunately I don't
> remember if similar message was reported before.
>
> # ls -ld /local/apache2
> drwxr-xr-x 15 root wheel 512 26 ??? 13:49 /local/apache2
>
> # ls -l /local/apache2
> total 22
> drwxr-xr-x 15 root wheel 512 26 ??? 13:49 .
> drwxr-xr-x 16 root wheel 512 26 ??? 13:48 ..
> drwxr-xr-x 2 root wheel 512 26 ??? 13:49 bin
> drwxr-xr-x 2 root wheel 512 26 ??? 13:49 build
> drwxr-xr-x 2 root wheel 512 26 ??? 13:49 cgi-bin
> drwxr-xr-x 2 root wheel 512 26 ??? 13:48 conf
> drwxr-xr-x 3 root wheel 1024 26 ??? 13:48 error
> drwxr-xr-x 2 root wheel 1536 26 ??? 13:48 htdocs
> drwxr-xr-x 3 root wheel 3584 26 ??? 13:49 icons
> drwxr-xr-x 2 root wheel 2560 26 ??? 13:49 include
> drwxr-xr-x 2 root wheel 512 26 ??? 13:48 lib
> drwxr-xr-x 2 root wheel 512 26 ??? 13:49 logs
> drwxr-xr-x 4 root wheel 512 26 ??? 13:49 man
> drwxr-xr-x 13 root wheel 1536 26 ??? 13:48 manual
> drwxr-xr-x 2 root wheel 512 26 ??? 13:48 modules
>
>
> > out the apr project from cvs and put it in the subversion source tree.
>
> It seems to me the right way is to solve the problem, not to work it
> around. I'm not the last user installing subversion from scratch. ;-)
>
I definitely want to fix the problem:) I just meant that if you are in a
hurry to get subversion working that is another alternative.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You should be able to just patch -p0 < this_patch from the root of your
subversion source tree.
Modified: ac-helpers/apr.m4
==============================================================================
--- ./.svn/text-base/ac-helpers.svn-base/apr.m4	Tue Nov 27 10:37:08 2001
+++ ./ac-helpers/apr.m4	Tue Nov 27 10:37:08 2001
@@ -27,8 +27,8 @@
     if test "$withval" = "yes" ; then
       AC_MSG_ERROR([--with-apr-libs requires an argument.])
     else
-      APRVARS=$withval/APRVARS
-      APR_LIBS=$withval
+      APRVARS="$withval/APRVARS"
+      APR_LIBS="$withval"
     fi
   ])
   
@@ -44,7 +44,7 @@
     if test "$withval" = "yes" ; then
       AC_MSG_ERROR([--with-apr-includes requires an argument.])
     else
-      APR_INCLUDES=$withval
+      APR_INCLUDES="$withval"
     fi
   ])
   
@@ -57,10 +57,10 @@
 Please either remove that subdir or don't use the --with-apr option.])
     fi
 
-    if [ "$withval" != "yes" ]; then
-      APR_INCLUDES=$withval/include
-      APRVARS=$withval/lib/APRVARS
-      APR_LIBS=$withval/lib
+    if test "$withval" != "yes" ; then
+      APR_INCLUDES="$withval/include"
+      APRVARS="$withval/lib/APRVARS"
+      APR_LIBS="$withval/lib"
     fi
   ])
 
@@ -108,14 +108,26 @@
 dnl Look in standard places for APRVARS, apr.h, and -lapr.
 AC_DEFUN(SVN_FIND_APR,
 [
-  AC_CHECK_HEADER(apr.h)
-  dirs="/etc /usr/lib /usr/local/lib /opt/apr/lib"
-  for dir in $dirs; do
-    if test -f $dir/APRVARS ; then
+  CPPFLAGS_save=$CPPFLAGS
+  if test -n "$APR_INCLUDES" ; then
+    CPPFLAGS="$CPPFLAGS -I$APR_INCLUDES"
+  fi
+  AC_CHECK_HEADER(apr.h, apr_h="yes", apr_h="no")
+  if test "$apr_h" = "no" ; then
+    echo "Couldn't find apr.h"
+    SVN_DOWNLOAD_APR
+  fi
+
+  CPPFLAGS=$CPPFLAGS_save
+  if test -z $APRVARS ; then
+    dirs="/etc /usr/lib /usr/local/lib /opt/apr/lib"
+    for dir in $dirs; do
+      if test -f $dir/APRVARS ; then
         APRVARS=$dir/APRVARS
         break
-    fi
-  done
+      fi
+    done
+  fi
 ])
 
 

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:49 2006

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.