Dear OpenSSL maintainers,

apologies if this has been already pointed out or is not correct.

It looks to me that .../openssl-0.9.7-beta1/config incorrectly
determines gcc version for gcc-3.1.

For gcc-3.1, the output of `gcc --version' is:

gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The GCCVER in the config script ends up with:

+ GCCVER=gcc (GCC) 31

which then makes test to fail with:

+ '[' 'gcc (GCC) 31' -gt 28 ']'
./config: [: gcc (GCC) 31: integer expression expected

etc.


Here is a patch which fixes the sed command originating the error:

*** openssl-0.9.7-beta1/config.ORIG     Sun May 12 21:44:19 2002
--- ./config    Mon Jun  3 11:42:32 2002
***************
*** 394,400 ****
  if [ "$GCCVER" != "" ]; then
    CC=gcc
    # then strip off whatever prefix Cygnus prepends the number with...
!   GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'`
    # peak single digit before and after first dot, e.g. 2.95.1 gives 29
    GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
  else
--- 394,400 ----
  if [ "$GCCVER" != "" ]; then
    CC=gcc
    # then strip off whatever prefix Cygnus prepends the number with...
!   GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-*//'`
    # peak single digit before and after first dot, e.g. 2.95.1 gives 29
    GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
  else


These are the relevant parts of my config:

          Red Hat Linux release 7.1 (Seawolf)
          Kernel 2.4.18 on an i686
          gcc (GCC) 3.1



Thanks for OpenSSL


Ciao
===========================================================================
Gabriele Balducci                  tel    I-040-5583957
Dipartimento di Scienze Chimiche   fax    I-040-5583903
Via L. Giorgieri 1                 e-mail [EMAIL PROTECTED]
I-34127 TRIESTE
===========================================================================
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to