Hi folks,

I've found a little bug in version 7.1.3 in conjunction w/ the
new gcc, which prints our more than one line on --version. 
(simply added | head -n 1)

The problem is that the gcc --version output is copied into 
confdefs.h and so produces compile erros. 

This problem does not appear on current 7.4.1.

See attached patch.

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT services

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     [EMAIL PROTECTED]
  cellphone: +49 174 7066481
---------------------------------------------------------------------
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
---------------------------------------------------------------------
--- configure.in.orig   Sat Mar  6 16:46:34 2004
+++ configure.in        Sat Mar  6 16:46:49 2004
@@ -295,7 +295,7 @@
 
 # Create compiler version string
 if test x"$GCC" = x"yes" ; then
-  cc_string="GCC `${CC} --version`"
+  cc_string="GCC `${CC} --version | head -n 1`"
 else
   cc_string=$CC
 fi

--- configure.orig      Sat Mar  6 16:51:19 2004
+++ configure   Sat Mar  6 16:51:34 2004
@@ -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 -n 1`"
 else
   cc_string=$CC
 fi
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to