Re: autoconf + newer gcc barfs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: autoconf + newer gcc barfs
Date: 2002-01-24 19:53:37
Message-ID: 19664.1011902017@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=) writes:
> GCC CVS now outputs a multiline version string:
> [teg(at)halden teg]$ gcc --version
> gcc (GCC) 3.1 20020115 (Red Hat Linux Rawhide 3.1-0.18)
> 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.

I put in a "head -1" step per your suggestion. However, this will still
leave us with really ugly version strings, along the line of

PostgreSQL 7.2rc1 on hppa-hp-hpux10.20, compiled by GCC gcc (GCC) 3.1 20020115 (Red Hat Linux Rawhide 3.1-0.18)

May I suggest that gcc is being a little too verbose here? Perhaps
"gcc --version --verbose" could do that, and plain "gcc --version"
could try to have some respect for compatibility with prior behavior.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-01-24 19:56:10 Re: C++ problems with RC1
Previous Message Bill Studenmund 2002-01-24 19:50:12 Re: RFD: schemas and different kinds of Postgres objects