Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* ANSI C with DCE on AIX
@ 1994-04-07  9:31 Bernd Dreier
  1994-04-07 18:34 ` Henry Lee
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Dreier @ 1994-04-07  9:31 UTC (permalink / raw)


Hello DCE-experts using AIX!

I have a problem using ANSI C with DCE on AIX 3.2.4. The compilation
by xlc_r fails because of syntax errors in <dce/pthread.h>. Do I have to
define additional constants like THREAD_SAVE or anything like this?
I can do a -D_ALL_SOURCE, which prevents the syntax errors. But I think 
in this case prototypes are not required by xlc, which means missing
type checks, etc.

Any hints?

-- 
++Benne,

Bernd Dreier
[Dreier@Uni-Augsburg.de]


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

* Re: ANSI C with DCE on AIX
  1994-04-07  9:31 ANSI C with DCE on AIX Bernd Dreier
@ 1994-04-07 18:34 ` Henry Lee
  1994-04-08 10:32   ` cc_r, xlc_r on AIX DCE Bernd Dreier
  0 siblings, 1 reply; 3+ messages in thread
From: Henry Lee @ 1994-04-07 18:34 UTC (permalink / raw)



In article <CnvuG1.4Ex@Yuri.CC.Uni-Augsburg.DE>, benne@minsti01.MNWF.Uni-Augsburg.DE (Bernd Dreier) writes:
> Hello DCE-experts using AIX!
> 
> I have a problem using ANSI C with DCE on AIX 3.2.4. The compilation
> by xlc_r fails because of syntax errors in <dce/pthread.h>. Do I have to
> define additional constants like THREAD_SAVE or anything like this?
> I can do a -D_ALL_SOURCE, which prevents the syntax errors. But I think 
> in this case prototypes are not required by xlc, which means missing
> type checks, etc.
> 
> Any hints?
> 
> -- 
> ++Benne,
> 
The problem actually comes from a missing declaration of the type
sigset_t.  I found sigset_t in /usr/include/sys/types.h, and it
needs _POSIX_SOURCE or higher (e.g. _ALL_SOURCE) to turn it on.
  
Henry Lee


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

* cc_r, xlc_r on AIX DCE
  1994-04-07 18:34 ` Henry Lee
@ 1994-04-08 10:32   ` Bernd Dreier
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Dreier @ 1994-04-08 10:32 UTC (permalink / raw)


Hello again, all AIXperts and DCE folks!

I have another question on the AIX implementation of DCE.
Because I didn't know of the *_r links to the AIX C-Compiler, I
used cc til now. The funny thing is that all my applications worked
without problems!

Now I'm a _little_ bit more experienced and tried to translate my applications
with xlc_r (and cc_r, too). They translate, yes, but if I execute them a lot
of nasty things like core dumps, SIGIOT's, even "Internal thread problem ..."
happen. What I'm worrying about: Shouldn't it be the other way round? Using cc
instead of cc_r should lead to problems, shouldn't it? As far as I know the 
only difference between cc and cc_r are the *_r libraries linked and some 
different switches set.

Any hints will be much appreciated!

-- 
++Benne,

Bernd Dreier
[Dreier@Uni-Augsburg.de]


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

end of thread, other threads:[~1994-04-08 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-07  9:31 ANSI C with DCE on AIX Bernd Dreier
1994-04-07 18:34 ` Henry Lee
1994-04-08 10:32   ` cc_r, xlc_r on AIX DCE Bernd Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox