apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: Building apr on sinix mips
Date Mon, 24 May 2004 07:43:31 GMT
Martin J. Evans wrote:
> Hi,
> 
> Posted to dev@apr.apache.org and users@subversion.tigris.org.
> 
> I am primarily trying to get a subversion client running on Sinix MIPS:
> 
> bash-2.04$ uname -a
> SINIX-N erp 5.43 C4001 RM400 1/128 R4000
> 
> but running into a lot of problems in apr. Initially I ran configure for
> subversion but it hangs during configure for apr.

That is a problem in the configure of subversion.
I have worked it around by changing the configure:
++++++
--- configure.org       Wed May 19 10:02:51 2004
+++ configure   Mon May 24 09:40:00 2004
@@ -3158,7 +3158,7 @@
      esac

      # The eval makes quoting arguments work.
-    if eval $ac_abs_srcdir/configure $ac_configure_args 
--cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
+    if eval $SHELL $ac_abs_srcdir/configure $ac_configure_args 
--cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
      then :
        echo "apr configured properly"
      else
@@ -3446,7 +3446,7 @@
      esac

      # The eval makes quoting arguments work.
-    if eval $ac_abs_srcdir/configure $ac_configure_args 
--cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=../apr
+    if eval $SHELL $ac_abs_srcdir/configure $ac_configure_args 
--cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=../apr
      then :
        echo "apr-util configured properly"
      else
++++++

> So I went to apr.apache.org
> and got apr 0.9.4 thinking I could configure apr separately and then
> tell subversion about the separate apr. I ran into a couple of problems with
> apr 0.9.4:
> 
> 1. cpp on sinix cannot process .h files.
>    This affects the line below in the top level makefile:
> 
>  $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | sed -e
> 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
> 
>    Given export_vars.h only contained:
> 
>   apr_month_snames
>   apr_day_snames
> 
>   I changed this line to:
> 
>   cat export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
> 
>   which got me past this.
> 
> 2. utimbuf not defined
> 
>    For Sinix, sys/types.h and utime.h are required for utime.
> 
> Anyway, apr 0.9.4 builds and installs OK after that BUT now I find subversion
> needs 0.9.5 and I cannot find that on apr.apache.org (unless it is one of those
> snapshots). Any ideas?
> 
> Also, the configure caching mechanism for subversion 1.0.2 seems to fail with
> /dev/null is not a file. This is something to do with attempts to copy the
> configure cache down into the subversion dependencies and load it in the 
> dependent configure. I think I've got around this (perhaps incorrectly) by
> deleting:
> 
> if test -r "$cache_file"; then
>   echo "loading cache $cache_file"
>   . $cache_file
> else
>   echo "creating cache $cache_file"
>   > $cache_file
> fi
> 
> everything but > $cache_file
> 
> This problem looks like it may be fixed in subversion 1.0.3 as I'm not having
> the same issue in 1.0.3.
> 
> Any pointers for how to get apr and subversion running on sinix would be
> greatly appreciated.
> 
> Martin
> --
> Martin J. Evans
> Easysoft Ltd, UK
> Development
> 
> 


Mime
View raw message