From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10597 invoked by alias); 11 Jun 2009 19:30:25 -0000 Received: (qmail 10529 invoked by uid 48); 11 Jun 2009 19:30:07 -0000 Date: Thu, 11 Jun 2009 19:30:00 -0000 From: "dsandler at paychex dot com" To: glibc-bugs@sources.redhat.com Message-ID: <20090611193006.10264.dsandler@paychex.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/10264] New: __const undefined X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00036.txt.bz2 We're running Oracle 11g and trying to compile Pro*C code. Our makefile executes the following steps: (1) GNU C preprocessor, (2) Oracle Pro*C precompiler, (3) GNU C compiler. When the Pro*C precompiler runs, we encounter the following error... Syntax error at line 109, column 8, file /usr/appl/cad/prod/lib/pcc/Connect.pc: Error at line 109, column 8 in file /usr/appl/cad/prod/lib/pcc/Connect.pc __const unsigned char **, __const unsigned char *, .......1 PCC-S-02201, Encountered the symbol "__const" when expecting one of the followin g: ... auto, char, const, double, enum, float, int, long, ulong_varchar, OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register, short, signed, sql_context, sql_cursor, static, struct, union, unsigned, utext, uvarchar, varchar, void, volatile, a typedef name, exec oracle, exec oracle begin, exec, exec sql, exec sql begin, exec sql type, exec sql var, The symbol "exec," was substituted for "__const" to continue. We've traced this back to gconv.h in which there are several function typedefs containing parameters of type __const. Earlier on, we found that __const is defined within an #ifdef/#else/#endif block in /usr/include/cdefs.h. In order to allow __const to be defined, we had to add a -U__GNUC__ switch to the cpp command (which, as stated earlier, runs before the Pro*C precompiler). However, we are running gcc and question whether we really should be undefining __GNUC__. Could someone offer some advice regarding this issue? -- Summary: __const undefined Product: glibc Version: 2.10 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: dsandler at paychex dot com CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=10264 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.