pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Camilo Villarreal <camilovillarreal@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help! sed: command garbled compiling on Solaris7
Date: Fri, 21 Jun 2002 15:56:41 -0400 (EDT)
Message-ID: <200206211956.g5LJufP13802@candle.pha.pa.us> (raw )
In-Reply-To: <F34nzi95HfqR77bieLY00000043@hotmail.com >
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
Attachments:
/bjm/diff (text/plain, 1.5K) download
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" \
view thread (2+ messages)
Message-ID: <200206211956.g5LJufP13802@candle.pha.pa.us>
Permalink: ../200206211956.g5LJufP13802@candle.pha.pa.us/
Also on: postgresql.org/message-id/200206211956.g5LJufP13802@candle.pha.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, camilovillarreal@hotmail.com
Subject: Re: Help! sed: command garbled compiling on Solaris7
In-Reply-To: <200206211956.g5LJufP13802@candle.pha.pa.us>
References: <F34nzi95HfqR77bieLY00000043@hotmail.com> <200206211956.g5LJufP13802@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox