Re: Bug #788: configure script confused by gcc-3.2

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: richard(at)nezumi(dot)plus(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #788: configure script confused by gcc-3.2
Date: 2002-09-28 17:52:56
Message-ID: 200209281752.g8SHquE17349@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


This is fixed in 7.3beta.

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

pgsql-bugs(at)postgresql(dot)org wrote:
> Richard Lightman (richard(at)nezumi(dot)plus(dot)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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Frank Van Damme 2002-09-28 18:55:50 unable to build on openbsd-sparc
Previous Message Tom Lane 2002-09-28 16:31:29 Re: Bug #788: configure script confused by gcc-3.2