Package: libc6-dev
Version: 2.2.5-11.2
Severity: normal
When invoked in K&R C mode (-k switch), rpcgen produces code which
does not compile. Two variables in *_svc.c are incorrectly declared:
bool_t (*xdr_argument)(), (*xdr_result)();
They should be declared as:
bool_t (*_xdr_argument)(), (*_xdr_result)();
After correcting this error manually, *_svc.c compiles just fine.
[EMAIL PROTECTED]:~$ cat trivial.x
program TRIVIAL {
version ONE {
int NEGATE(int) = 1;
} = 1;
} = 0x20021018;
[EMAIL PROTECTED]:~$ rpcgen -k trivial.x
[EMAIL PROTECTED]:~$ gcc -Wall -c trivial_svc.c
trivial_svc.c: In function `trivial_1':
trivial_svc.c:27: warning: passing arg 2 of `svc_sendreply' from incompatible
pointer type
trivial_svc.c:31: `_xdr_argument' undeclared (first use in this function)
trivial_svc.c:31: (Each undeclared identifier is reported only once
trivial_svc.c:31: for each function it appears in.)
trivial_svc.c:32: `_xdr_result' undeclared (first use in this function)
trivial_svc.c:41: warning: passing arg 3 of pointer to function from
incompatible pointer type
trivial_svc.c:49: warning: passing arg 3 of pointer to function from
incompatible pointer type
trivial_svc.c:22: warning: unused variable `xdr_result'
trivial_svc.c:22: warning: unused variable `xdr_argument'
trivial_svc.c: In function `main':
trivial_svc.c:63: warning: implicit declaration of function `pmap_unset'
-- System Information
Debian Release: 3.0
Kernel Version: Linux virgo 2.4.19-prim #1 Sun Aug 18 22:39:17 CEST 2002 i686
unknown
Versions of the packages libc6-dev depends on:
ii libc6 2.2.5-11.2 GNU C Library: Shared libraries and Timezone