From: beuter@cocoon.informatik.uni-ulm.de (Thomas Beuter)
Subject: PROBLEMS with DCE RPC on AIX
Date: Thu, 16 Mar 95 11:21:11 GMT [thread overview]
Message-ID: <1995Mar16.112111.26682@informatik.uni-ulm.de> (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
next reply other threads:[~1995-03-16 11:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-16 11:21 Thomas Beuter [this message]
1995-03-16 20:31 ` PROBLEMS with DCE RPC on AIX 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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox