Обсуждение: Help! sed: command garbled compiling on Solaris7

Поиск
Список
Период
Сортировка

Help! sed: command garbled compiling on Solaris7

От
"Camilo Villarreal"
Дата:
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


Re: Help! sed: command garbled compiling on Solaris7

От
Bruce Momjian
Дата:
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
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" \