Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id C26B2476E2F for ; Fri, 21 Jun 2002 17:17:04 -0400 (EDT) Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 936EB477274 for ; Fri, 21 Jun 2002 15:56:49 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g5LJufP13802; Fri, 21 Jun 2002 15:56:41 -0400 (EDT) From: Bruce Momjian Message-Id: <200206211956.g5LJufP13802@candle.pha.pa.us> Subject: Re: Help! sed: command garbled compiling on Solaris7 In-Reply-To: To: Camilo Villarreal Date: Fri, 21 Jun 2002 15:56:41 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1024689401-632-1_ Content-Transfer-Encoding: 7bit X-Archive-Number: 200206/183 X-Sequence-Number: 4617 --ELM1024689401-632-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Oh, I remember. There was some bad control characters in 7.0 and earlier in genbki.sh. I think the following patch should fix things for you. Of course, we have a nice 7.2.1 waiting for you. ;-) --------------------------------------------------------------------------- Camilo Villarreal wrote: > > Hi, > > We had recently an outage on one of our servers running Solaris 6+Postgresql > 7.0 and we'll have to restore the databases from tape. This time I > installed Solaris 7 and gcc 3.1 but when I tried to compile postgresql 7.0, > after I run configure, I get no Makefile!!!. > I guess the gcc version is too new for that postgresql version but I haven't > found a way around. > The configure process spits the following at the end: > > creating ./config.status > creating GNUmakefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating Makefile.global > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating backend/port/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating backend/catalog/genbki.sh > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating backend/utils/Gen_fmgrtab.sh > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating bin/pg_dump/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating bin/pg_version/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating bin/pgtclsh/mkMakefile.tcldefs.sh > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating bin/pgtclsh/mkMakefile.tkdefs.sh > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating bin/psql/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating include/version.h > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/libpq/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/ecpg/lib/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/ecpg/preproc/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/libpq++/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/libpgeasy/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/libpgtcl/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/odbc/GNUmakefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating interfaces/odbc/Makefile.global > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating pl/plpgsql/src/Makefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating pl/plpgsql/src/mklang.sql > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating pl/tcl/mkMakefile.tcldefs.sh > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > creating test/regress/GNUmakefile > sed: command garbled: s%@CC_VERSION@%gcc (GCC) 3.1 > > Please let me know if there's a way around this problem or, where can I find > a Postgresql7.0 package for Solaris 7.0. Thanks very much in advance!!! > > Camilo Villarreal. > SysAdmin. > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 --ELM1024689401-632-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/bjm/diff" Index: genbki.sh =================================================================== RCS file: /cvsroot/pgsql/src/backend/catalog/genbki.sh,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** genbki.sh 28 Oct 2000 22:14:14 -0000 1.18 --- genbki.sh 16 Jan 2001 22:48:34 -0000 1.19 *************** *** 10,16 **** # # # IDENTIFICATION ! # $Header: /cvsroot/pgsql/src/backend/catalog/genbki.sh,v 1.18 2000/10/28 22:14:14 petere Exp $ # # NOTES # non-essential whitespace is removed from the generated file. --- 10,16 ---- # # # IDENTIFICATION ! # $Header: /cvsroot/pgsql/src/backend/catalog/genbki.sh,v 1.19 2001/01/16 22:48:34 tgl Exp $ # # NOTES # non-essential whitespace is removed from the generated file. *************** *** 161,170 **** ;g' | # we must run a new sed here to see the newlines we added sed -e "s/;[ ]*$//g" \ -e "s/^[ ]*//" \ ! -e "s/[ ]Oid/\ oid/g" \ ! -e "s/[ ]NameData/\ name/g" \ -e "s/^Oid/oid/g" \ ! -e "s/^NameData/\name/g" \ -e "s/(NameData/(name/g" \ -e "s/(Oid/(oid/g" \ -e "s/NAMEDATALEN/$NAMEDATALEN/g" \ --- 161,170 ---- ;g' | # we must run a new sed here to see the newlines we added sed -e "s/;[ ]*$//g" \ -e "s/^[ ]*//" \ ! -e "s/[ ]Oid/ oid/g" \ ! -e "s/[ ]NameData/ name/g" \ -e "s/^Oid/oid/g" \ ! -e "s/^NameData/name/g" \ -e "s/(NameData/(name/g" \ -e "s/(Oid/(oid/g" \ -e "s/NAMEDATALEN/$NAMEDATALEN/g" \ --ELM1024689401-632-1_--