Re: cpp preprocessor problem in postgres

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Greg Martin <gamartin(at)shout(dot)net>
Cc: Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: Re: cpp preprocessor problem in postgres
Date: 1998-10-19 14:52:51
Message-ID: 362B5243.C7AFA56E@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I tried to make sense of your message about the need for "gcc -E -"
> in the autoconfigure results, but I couldn't get it to work.

v6.4 will do the right thing if cpp is missing, and will use
gcc -E -
instead.

Do a "find" through the Makefiles and replace "cpp" with "gcc -E -" in
places where it is executed as a command:

cd $(POSTGRESDIR) # the top level directory
find . -name '*akefile' -exec grep cpp {} \; -print

then edit the files which are mentioned.

btw, I'm not sure why some versions of gcc are missing this. My rpm of
2.7.2.1 had it, but 2.7.2.3 did not. egcs seems to be missing it also,
so it looks like it may be a deprecated feature?

- Tom

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-10-19 15:16:10 [Fwd: DocBook stylesheets 1.19 released]
Previous Message Thomas G. Lockhart 1998-10-19 14:46:59 Re: [HACKERS] using indexes