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

Re: Error caught that would otherwise have been missed in configure

From: Jani Averbach <jaa_at_cc.jyu.fi>
Date: 2003-10-01 22:49:01 CEST

On 2003-10-01 20:03+0000, Files wrote:

> Well, while compiling my Mandrake RPMs, in silent mode, I caught this error:
> ---------------------------------------------------------------------------
> expr: syntax error
> ./configure: line 3200: test: too many arguments
> ---------------------------------------------------------------------------
>
> Switching to a noisy compile, this is the full error:
> ---------------------------------------------------------------------------
> configure: Apache Portable Runtime (APR) library configuration
> checking for APR... yes
> checking APR version... 0.9.4
> expr: syntax error
> ./configure: line 3200: test: too many arguments
> configure: Apache Portable Runtime Utility (APRUTIL) library configuration
> checking for APR-util... yes
> checking APR-UTIL version... 0.9.4
> ---------------------------------------------------------------------------
>
> Can anyone shed any light on this bug in configure?

No, but I get the same error:

checking APR version... 0.9.4
expr: syntax error
../../svn/trunk/configure: line 3185: test: too many arguments
configure: Apache Portable Runtime Utility (APRUTIL) library
configuration

And here is the offensive code:

   3183 echo "${ECHO_T}$apr_version" >&6
   3184
   3185 if test `expr $apr_version : $APR_WANTED_REGEX` -eq 0 \
   3186 -a `expr $apr_version : $APR_WANTED_REGEX_TOO` -eq 0; then
   3187 echo "wanted regex is $APR_WANTED_REGEX or $APR_WANTED_REGEX_TOO"
   3188 { { echo "$as_me:$LINENO: error: invalid apr version found" >&5
   3189 echo "$as_me: error: invalid apr version found" >&2;}
   3190 { (exit 1); exit 1; }; }
   3191 fi

Here is my config.nice:
#! /bin/sh
#
# Created by configure

"../../svn/trunk/configure" \
"--prefix=/opt/svn/7264" \
"--enable-maintainer-mode" \
"--with-apr=/opt/svnd/httpd-2.0.47" \
"--with-apr-util=/opt/svnd/httpd-2.0.47" \
"--with-apxs=/opt/svnd/httpd-2.0.47/sbin/apxs" \
"$@"

> Should I take a closer look or is someone else better qualified to
> analyse this?

It would be nice, if you have time! It seems that your silent mode
system has some credit. =)

BR, Jani

-- 
Jani Averbach 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 1 22:50:06 2003

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.