Обсуждение: Bug #669: gawk: cmd. line:2: (END OF FILE)

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

Bug #669: gawk: cmd. line:2: (END OF FILE)

От
pgsql-bugs@postgresql.org
Дата:
Ralph Lecessi (ralph.lecessi@lmco.com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
gawk: cmd. line:2: (END OF FILE)

Long Description
gawk complains of "parse error" & "END OF FILE" when called from
 genbki.sh in the src/backend/catalog directory.

here are the paths to gmake & gawk:
$ whence gmake
/home/rlecessi/bin/gmake
$ whence gawk
/sw/wrappers/gawk

Here is the gmake output & error messages:
gmake[3]: Entering directory `/home/rlecessi/postgresql-7.2.1/src/backend/catalog'
CPP='gcc -E' AWK='gawk' /bin/sh genbki.sh  -o postgres -I../../../src/include ../../../src/include/catalog/pg_proc.h
../../../src/include/catalog/pg_type.h../../../src/include/catalog/pg_attribute.h
../../../src/include/catalog/pg_class.h../../../src/include/catalog/pg_attrdef.h
../../../src/include/catalog/pg_relcheck.h../../../src/include/catalog/pg_inherits.h
../../../src/include/catalog/pg_index.h../../../src/include/catalog/pg_operator.h
../../../src/include/catalog/pg_opclass.h../../../src/include/catalog/pg_am.h ../../../src/include/catalog/pg_amop.h
../../../src/include/catalog/pg_amproc.h../../../src/include/catalog/pg_language.h
../../../src/include/catalog/pg_largeobject.h../../../src/include/catalog/pg_aggregate.h
../../../src/include/catalog/pg_statistic.h../../../src/include/catalog/pg_rewrite.h
../../../src/include/catalog/pg_trigger.h../../../src/include/catalog/pg_listener.h
../../../src/include/catalog/pg_description.h../../../src/include/catalog/pg_database.h
../../../src/include/catalog/pg_shadow.h../../../src/include/catalog/pg_group.h ../../../src/include/catalog/indexing.h
--set-version=7.2.1
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
expr: syntax error
gmake[3]: *** [postgres.bki] Error 2
gmake[3]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src/backend/catalog'
gmake[2]: *** [catalog-recursive] Error 2
gmake[2]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src'
gmake: *** [all] Error 2


Sample Code
gmake[3]: Entering directory `/home/rlecessi/postgresql-7.2.1/src/backend/catalog'
CPP='gcc -E' AWK='gawk' /bin/sh genbki.sh  -o postgres -I../../../src/include ../../../src/include/catalog/pg_proc.h
../../../src/include/catalog/pg_type.h../../../src/include/catalog/pg_attribute.h
../../../src/include/catalog/pg_class.h../../../src/include/catalog/pg_attrdef.h
../../../src/include/catalog/pg_relcheck.h../../../src/include/catalog/pg_inherits.h
../../../src/include/catalog/pg_index.h../../../src/include/catalog/pg_operator.h
../../../src/include/catalog/pg_opclass.h../../../src/include/catalog/pg_am.h ../../../src/include/catalog/pg_amop.h
../../../src/include/catalog/pg_amproc.h../../../src/include/catalog/pg_language.h
../../../src/include/catalog/pg_largeobject.h../../../src/include/catalog/pg_aggregate.h
../../../src/include/catalog/pg_statistic.h../../../src/include/catalog/pg_rewrite.h
../../../src/include/catalog/pg_trigger.h../../../src/include/catalog/pg_listener.h
../../../src/include/catalog/pg_description.h../../../src/include/catalog/pg_database.h
../../../src/include/catalog/pg_shadow.h../../../src/include/catalog/pg_group.h ../../../src/include/catalog/indexing.h
--set-version=7.2.1
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
expr: syntax error
gmake[3]: *** [postgres.bki] Error 2
gmake[3]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src/backend/catalog'
gmake[2]: *** [catalog-recursive] Error 2
gmake[2]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/rlecessi/postgresql-7.2.1/src'
gmake: *** [all] Error 2


No file was uploaded with this report

Re: Bug #669: gawk: cmd. line:2: (END OF FILE)

От
Tom Lane
Дата:
pgsql-bugs@postgresql.org writes:
> gawk complains of "parse error" & "END OF FILE" when called from
>  genbki.sh in the src/backend/catalog directory.

What platform is this?  What is your /bin/sh?  Offhand this seems like
it is probably the shell's fault, and not directly gawk's.

            regards, tom lane