public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10264] New: __const undefined
@ 2009-06-11 19:30 dsandler at paychex dot com
  2009-06-11 19:45 ` [Bug libc/10264] " drepper at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dsandler at paychex dot com @ 2009-06-11 19:30 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/10264] __const undefined
  2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
@ 2009-06-11 19:45 ` drepper at redhat dot com
  2009-06-11 19:49 ` dsandler at paychex dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2009-06-11 19:45 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-06-11 19:45 -------
This is not a place to get educated on using compilers.  Unless you can provide
a small, self-contained example for something that is wrong in glibc alone
nothing will happen.  Who knows what horrible hacks Oracle deploys.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/10264] __const undefined
  2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
  2009-06-11 19:45 ` [Bug libc/10264] " drepper at redhat dot com
@ 2009-06-11 19:49 ` dsandler at paychex dot com
  2009-06-11 19:56 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dsandler at paychex dot com @ 2009-06-11 19:49 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From dsandler at paychex dot com  2009-06-11 19:49 -------
I've subsequently received the advice I need to solve the problem.  But for 
future reference, what is the appropriate place to post this issue?

-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/10264] __const undefined
  2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
  2009-06-11 19:45 ` [Bug libc/10264] " drepper at redhat dot com
  2009-06-11 19:49 ` dsandler at paychex dot com
@ 2009-06-11 19:56 ` drepper at redhat dot com
  2009-06-11 20:05 ` dsandler at paychex dot com
  2009-06-12  5:56 ` pasky at suse dot cz
  4 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2009-06-11 19:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-06-11 19:56 -------
There are countless mailing lists and news groups for Linux programming.  But
since it's most likely an Oracle problem start with them

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/10264] __const undefined
  2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
                   ` (2 preceding siblings ...)
  2009-06-11 19:56 ` drepper at redhat dot com
@ 2009-06-11 20:05 ` dsandler at paychex dot com
  2009-06-12  5:56 ` pasky at suse dot cz
  4 siblings, 0 replies; 6+ messages in thread
From: dsandler at paychex dot com @ 2009-06-11 20:05 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From dsandler at paychex dot com  2009-06-11 20:05 -------
It turned out to be an issue with how I was invoking gcc and cpp rather than an 
Oracle issue.

Thanks.

-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/10264] __const undefined
  2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
                   ` (3 preceding siblings ...)
  2009-06-11 20:05 ` dsandler at paychex dot com
@ 2009-06-12  5:56 ` pasky at suse dot cz
  4 siblings, 0 replies; 6+ messages in thread
From: pasky at suse dot cz @ 2009-06-12  5:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2009-06-12 05:56 -------
For user help with glibc in particular, you can refer to the
libc-help@sourceware.org mailing list.

-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-06-12  5:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 19:30 [Bug libc/10264] New: __const undefined dsandler at paychex dot com
2009-06-11 19:45 ` [Bug libc/10264] " drepper at redhat dot com
2009-06-11 19:49 ` dsandler at paychex dot com
2009-06-11 19:56 ` drepper at redhat dot com
2009-06-11 20:05 ` dsandler at paychex dot com
2009-06-12  5:56 ` pasky at suse dot cz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).