Re: Bug #788: configure script confused by gcc-3.2 - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: Bug #788: configure script confused by gcc-3.2
Date
Msg-id 200209281752.g8SHquE17349@candle.pha.pa.us
Whole thread Raw
In response to Bug #788: configure script confused by gcc-3.2  (pgsql-bugs@postgresql.org)
List pgsql-bugs
This is fixed in 7.3beta.

---------------------------------------------------------------------------

pgsql-bugs@postgresql.org wrote:
> Richard Lightman (richard@nezumi.plus.com) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> configure script confused by gcc-3.2
>
> Long Description
> The configure script tries to get gcc's version number into confdefs.h
> gcc-3.0.* outputs one line of text, but 3.2 outputs several lines.
> When confdef.h is included by configure's test programs, gcc-3.2
> complains that multiline string litterals are not allowed.
> Configure assumes that this is a valid result for some test, for
> example it will assume openssl is not installed when it is.
> The example code is a hack that demonstates I have problems using
> autoconf, but despite that, "All 76 tests passed" with this patch.
>
> Sample Code
> diff -urN postgresql-7.1.3/configure postgresql-7.1.3-rcl/configure
> --- postgresql-7.1.3/configure  Thu Aug 16 19:36:31 2001
> +++ postgresql-7.1.3-rcl/configure      Sat Sep 28 16:30:44 2002
> @@ -1617,7 +1617,7 @@
>
>  # Create compiler version string
>  if test x"$GCC" = x"yes" ; then
> -  cc_string="GCC `${CC} --version`"
> +  cc_string="GCC `${CC} --version | head -1`"
>  else
>    cc_string=$CC
>  fi
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug #788: configure script confused by gcc-3.2
Next
From: Sean Chittenden
Date:
Subject: Re: SET autocommit begins transaction?