Re: [HACKERS] 6.4 BETA2 fails to compile on Digital Unix 4.0d - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] 6.4 BETA2 fails to compile on Digital Unix 4.0d
Date
Msg-id 36387D32.78D1B0E9@alumni.caltech.edu
Whole thread Raw
In response to 6.4 BETA2 fails to compile on Digital Unix 4.0d  ("Pedro J. Lobo" <pjlobo@euitt.upm.es>)
Responses Re: [HACKERS] 6.4 BETA2 fails to compile on Digital Unix 4.0d  ("Pedro J. Lobo" <pjlobo@euitt.upm.es>)
List pgsql-hackers
> I am testing 6.4 on a DU 4.0d system using DEC's (well, Compaq's) C
> compiler, gmake 3.75, bison 1.25 and flex 2.5.4, and I've found two
> problems.
> Any hints?

I'm guessing that you have a problem with having your "cpp" preprocessor
pick up input from a pipe (stdin). Just yesterday Tom Lane fixed that by
no longer requiring cpp or equivalent to do that. Can you look at your
configure results and verify that the conclusions it reaches about CPP
and CPPSTDIN are correct?

The two scripts which use it are src/backend/utils/Gen_fmgrtab.sh and
src/backend/catalog/genbki.sh. Go to src/backend/utils and type "make"
and see if files are made as you would expect. If there is a problem,
then perhaps Tom can send you new versions, or you can hand-modify them
yourself, or you can wait for a new beta. In Gen_fmgrtab.sh.in the new
code looks like:

42a43
> CPPTMPFILE=fmgrtmp.c
65,66c66,68
< $4 == "11"    { print; next; }' | \
< @CPP@ @CPPSTDIN@ $BKIOPTS | \
---
> $4 == "11"    { print; next; }' > $CPPTMPFILE
>
> @CPP@ $BKIOPTS $CPPTMPFILE | \
69a72,73
> rm -f $CPPTMPFILE

to have cpp read from file fmgrtmp.c rather than from stdin.
                        - Tom


pgsql-hackers by date:

Previous
From: Giuseppe Tanzilli
Date:
Subject: beta3 compile problem
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] regression test results - Linux, cvs