From owner-freebsd-bugs Sat Jul 6 09:00:09 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA21105 for bugs-outgoing; Sat, 6 Jul 1996 09:00:09 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA21051; Sat, 6 Jul 1996 09:00:03 -0700 (PDT) Resent-Date: Sat, 6 Jul 1996 09:00:03 -0700 (PDT) Resent-Message-Id: <199607061600.JAA21051@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, toni@devsoft.com Received: from devsoft.devsoft.com (root@devsoft.devsoft.com [194.97.121.100]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA20934 for ; Sat, 6 Jul 1996 08:57:31 -0700 (PDT) Received: (from toni@localhost) by devsoft.devsoft.com (8.6.12/8.6.12) id SAA02091; Sat, 6 Jul 1996 18:01:41 +0200 Message-Id: <199607061601.SAA02091@devsoft.devsoft.com> Date: Sat, 6 Jul 1996 18:01:41 +0200 From: toni@devsoft.com Reply-To: toni@devsoft.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1372: RPC include cannot be compiled with cc -ansi Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1372 >Category: misc >Synopsis: compile time error with cc -ansi and RPC headers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 6 09:00:01 PDT 1996 >Last-Modified: >Originator: Anton Hartl >Organization: /dev Software GmbH >Release: FreeBSD 2.1-STABLE i386 >Environment: /usr/include/rpc/auth.h >Description: If is included in a source it cannot be compiled with cc -ansi anymore. The following error messages are generated In file included from /usr/include/rpc/rpc.h:50, from procs.c:5: /usr/include/rpc/auth.h:77: parse error before `u_int32' /usr/include/rpc/auth.h:77: warning: no semicolon at end of struct or union /usr/include/rpc/auth.h:77: warning: no semicolon at end of struct or union /usr/include/rpc/auth.h:78: warning: data definition has no type or storage class /usr/include/rpc/auth.h:79: warning: data definition has no type or storage class /usr/include/rpc/auth.h:81: parse error before `}' /usr/include/rpc/auth.h:103: field `ah_key' has incomplete type >How-To-Repeat: Create a C source file xx.c that has a line #include Run cc -ansi xx.c >Fix: There is a line #if (mc68000 || sparc || vax || i386 || tahoe || hp300) typedef u_long u_int32; /* 32-bit unsigned integers */ #endif This should probably be changed to #if (mc68000 || sparc || vax || __i386__ || tahoe || hp300) typedef u_long u_int32; /* 32-bit unsigned integers */ #endif >Audit-Trail: >Unformatted: