Re: macosx darwin replaced -traditional-cpp with -no-cpp-precomp

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Richard Müller <richard(dot)mueller(at)aon(dot)at>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: macosx darwin replaced -traditional-cpp with -no-cpp-precomp
Date: 2003-10-25 23:45:32
Message-ID: 200310252345.h9PNjWh07856@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports


We have this fixed in 7.4beta5.

---------------------------------------------------------------------------

Richard Mller wrote:
> Environment:
> postgresql-7.3.4.tar.gz
> Darwin Kernel Version 6.8
> MacOSX 10.2.8
> gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1493)
>
> With the original precompiler flag (-traditional-cpp)
> spaces preceeding precompiler directives ('#') are not accepted.
> error messages like:
> syntax error at '#' token
> in standard include files (e.g. math.h)
>
> Example:
> cpptest.c:
> #define OK
> #define NOTOK
> int main()
> {
> printf("hallo world\n");
> }
> > gcc -traditional-cpp cpptest.c
> produces the error output:
> cpptest.c:2: error: syntax error at '#' token
> cpptest.c:2: error: parse error before "NOTOK"
>
>
> I replaced
> CC="$CC -traditional-cpp"
> with
> CC="$CC -no-cpp-precomp"
> in
> src/template/darwin
>
> and make worked.
>
> Regards,
> Richard Mueller
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2003-10-26 05:04:21 Re: Windows client from 7.4beta5 source
Previous Message Richard Müller 2003-10-25 00:45:06 macosx darwin replaced -traditional-cpp with -no-cpp-precomp