[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#165289: marked as done (libc6-dev: rpcgen generates bad code in K&R mode)



Your message dated Sun, 19 Feb 2006 00:51:40 +0100
with message-id <20060218235140.GA610@bode.aurel32.net>
and subject line Bug#165289: libc6-dev: rpcgen generates bad code in K&R mode
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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.

wojtek@virgo:~$ cat trivial.x
program TRIVIAL {
        version ONE {
                int NEGATE(int) = 1;
        } = 1;
} = 0x20021018;

wojtek@virgo:~$ rpcgen -k trivial.x

wojtek@virgo:~$ 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


--- End Message ---
--- Begin Message ---
Version: 2.3.5-1

This bug has been fixed in version 2.3.5-1. I am therefore closing the
bug.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

--- End Message ---

Reply to: