Skip site navigation (1) Skip section navigation (2)

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

From: Richard Müller <richard(dot)mueller(at)aon(dot)at>
To: pgsql-ports(at)postgresql(dot)org
Subject: macosx darwin replaced -traditional-cpp with -no-cpp-precomp
Date: 2003-10-25 00:45:06
Message-ID: 7A1E5BF9-0684-11D8-9C75-000A959B4514@aon.at (view raw or flat)
Thread:
Lists: pgsql-ports
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


Responses

pgsql-ports by date

Next:From: Bruce MomjianDate: 2003-10-25 23:45:32
Subject: Re: macosx darwin replaced -traditional-cpp with -no-cpp-precomp
Previous:From: Daniel VogelDate: 2003-10-24 05:38:28
Subject: Windows client from 7.4beta5 source

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group