Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* PROBLEMS with DCE RPC on AIX
@ 1995-03-16 11:21 Thomas Beuter
  1995-03-16 20:31 ` Tom Jordahl
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Thomas Beuter @ 1995-03-16 11:21 UTC (permalink / raw)


Hello world,

We want to develop distributed applications for RS 6000 machines based
on DCE RPC and ANSI-C. Believing the IDL compiler description (version
01.03.00.00) the IDL compiler produces ANSI-C code (header file and
stub files). But in spite of the -qlanglvl=ansi flag the xlc compiler
(version 01.03.00.33) produces an error message "Function <rpc_call>
cannot be redeclared". The reason is that data types are interpreted
differently.

example:
error_status_t rpc_call([in] long num, [out, string] char txt[20]); 

The IDL compiler interprets char as unsigned char (macro idl_char ->
ndr_char -> unsigned char). Whereas the xlc compiler interprets it as
signed char. Therefore the function's  declaration in the header file
(produced by idl compiler) isn`t compliant to the function`s
definition. 

There are some solutions of this problem but none is really
satisfying:
-	flag -qlanglvl=extended; loosing the strong type checking of
	ANSI C 
-	using unsigned char or idl_char instead of char in the formal
	parameter's  definition


If someone knows a better solution, please contact:

beuter@informatik.uni-ulm.de


Thanks

Thomas

-- 

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Thomas Beuter
D-89069 Universitaet Ulm	     e-mail: beuter@informatik.uni-ulm.de
Fakultaet fuer Informatik	     phone:  +49 731 502 4127
Datenbanken & Informationssysteme    fax:    +49 731 502 4134



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

end of thread, other threads:[~1995-03-21 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-16 11:21 PROBLEMS with DCE RPC on AIX Thomas Beuter
1995-03-16 20:31 ` Tom Jordahl
1995-03-17  5:23 ` Gregory_Brail
1995-03-17 22:27 ` Trey Thompson
1995-03-21  2:56 ` Bill Janssen
1995-03-21 15:17   ` Rich Salz

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