delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/25/12:48:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: autoconf issues [often when upgrading from 2.13->2.53a]
Date: Thu, 25 Jul 2002 12:47:58 -0400
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E10AA72@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: "Nicholas Wourms" <nwourms AT yahoo DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6PGm4K00677

>  
> > Looking at the log of the configure session that you included, it's
> > apparent that your version of 'expr' is returning the wrong result.
> > Here's the command that the configure script runs:
> > 
> > expr xposixmutexes :
> >
> '.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012
> 3456789]'
> > && echo hello
> > 
> > (I changed the 'echo' portion for simplicity.)
> > 
> > This invocation of 'expr' should return 0 (zero) and the second
> > half of
> > the '&&' expression should not be evaluated, but on your system it
> > is.
> 
> Hmm, I see...
>  
> > You might try running the first half of the '&&' expression without
> > the
> > second half to see what position in the 'xposixmutexes' string
> > 'expr'
> > thinks it is finding an invalid character.
> 
> Curious, this is the result on the Win98SE machine:
> $ expr xposixmutexes :
> '.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012
> 3456789]'
> 
> 0
> 
> I take it this isn't what should have happened if something was
> wrong?  However, I immediately try the configure script and I get
> that error...
>

My guess is that when the 'configure' script is running, it is finding
a different version of 'expr'.  Is it possible that you have more than
one version installed on your machine?

At your shell prompt, enter the command:

   $ type expr

Next, edit your 'configure' script and find the section that evaluates
the '--enable' option, i.e., 

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;

Insert the line 'type expr' before the line:

>    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&

Save the change and run the 'configure' script again.  It should fail
again, of course, but it should also tell you where it thinks it is
finding the 'expr' program.

By the way, your instructions for generating 'configure' using your
'db-3.1.17-1.sh' script did not mention that you had overridden the
settings of $CC and $CXX to use 'gcc-2' and 'g++-2'.

---

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019