From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,54717784b9205253 X-Google-Attributes: gidf9ba4,public X-Google-Thread: 115614,54717784b9205253 X-Google-Attributes: gid115614,public X-Google-Thread: f678f,54717784b9205253 X-Google-Attributes: gidf678f,public X-Google-Thread: 111308,54717784b9205253 X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1995-03-16 12:42:23 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!paperboy.wellfleet.com!noc.near.net!gradient.gradient.com!tomj From: tomj@gradient.com (Tom Jordahl) Newsgroups: comp.soft-sys.dce,comp.unix.aix,comp.client-server,comp.unix.osf.misc Subject: Re: PROBLEMS with DCE RPC on AIX Date: 16 Mar 1995 20:31:48 GMT Organization: Gradient Technoolgies Inc. Message-ID: <3ka77k$to@gradient.gradient.com> References: <1995Mar16.112111.26682@informatik.uni-ulm.de> NNTP-Posting-Host: almond.gradient.com Keywords: DCE RPC ANSI-C AIX Xref: bga.com comp.soft-sys.dce:576 comp.unix.aix:26598 comp.client-server:6890 comp.unix.osf.misc:1624 In article <1995Mar16.112111.26682@informatik.uni-ulm.de>, Thomas Beuter wrote: >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 Thomas, This looks like it was a mistake that we tried to correct in DCE 1.1. You are probably using an IBM DCE based on DCE 1.0.3. I'm not sure if this will be much help, but in in the 1.1 source if the following: /* * when compiling DCE programs and/or libraries, we want the base type * of idl_char to be "unsigned char" (IDL doesn't support signed chars). * However, we compiling external programs, we want idl_char to have * the char type native to the platform on which the program is being * compiled. So ... use a macro that should only be defined if we * are building the RPC runtime of the IDL compiler. */ #ifndef IDL_CHAR_IS_CHAR typedef unsigned char idl_char ; #else typedef char idl_char ; #endif /* idl_char */ You may be able to retrofit you header file with this change. I would certainly contact IBM and ask them to investigate patching their DCE product with a similar fix if their compiler chokes in your (not uncommon?) situation. -- Tom Jordahl Internet: tom_j@gradient.com Gradient Technologies Inc. DCE development