Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> pro*c and pthreads on solaris

pro*c and pthreads on solaris

From: Lou Rayman <lrayman_at_newsalert.com>
Date: 1997/07/08
Message-ID: <33C2A458.621B@newsalert.com>#1/1

I'm trying to develop a multi-threaded pro*c application using pthreads on solaris 2.5.1 (pro*c version 2.2.3.0.0). when the precompiler gets up to the #include <pthreads.h> line, it goes crazy, i.e.:

$ make thr_db.o
proc MODE=ORACLE CODE=ANSI_C iname=thr_db.pc

Pro*C/C++: Release 2.2.3.0.0 - Production on Tue Jul 8 15:39:10 1997

Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.

System default option values taken from: /opt/oracle7/precomp/admin/pcscfg.h

Syntax error at line 243, column 45, file /usr/include/pthread.h: int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);

...................................................1
(1) PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , ( ) [

Syntax error at line 243, column 65, file /usr/include/pthread.h: int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);

.......................................................................1
(1) PCC-S-02201, Encountered the symbol ")" when expecting one of the following:

   ; , ( [ * ? | & < > + - / % . ^ | & == != <= >= << >> ++ --
->

The symbol "(" was substituted for ")" to continue.

and more silliness like this.
it seems that pro*c doesn't line the "const" declaration in /usr/inlcude/pthread.h, and can't recover after that.

anyone out there ever have problem with this? any suggested workarounds?

thanx for all help!

-- 
Lou Rayman - Hired Gun  
lrayman_at_newsalert.com
Received on Tue Jul 08 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US