From toni@devsoft.com  Sat Jul  6 08:57:34 1996
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: RPC include cannot be compiled with cc -ansi
X-Send-Pr-Version: 3.2

>Number:         1372
>Category:       misc
>Synopsis:       compile time error with cc -ansi and RPC headers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bde
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul  6 09:00:01 PDT 1996
>Closed-Date:    Sun Oct 13 13:12:54 PDT 1996
>Last-Modified:  Sun Oct 13 13:14:45 PDT 1996
>Originator:     Anton Hartl
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
/dev Software GmbH
>Environment:
	
	/usr/include/rpc/auth.h

>Description:

	If <rpc/rpc.h> 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 <rpc/rpc.h>

	Run
	    cc -ansi xx.c

>Fix:
	
	There is a line <rpc/auth.h>

	    #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


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bde 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Sep 25 16:56:34 PDT 1996 
Responsible-Changed-Why:  
Mr. /usr/include 
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Sun Oct 13 13:12:54 PDT 1996 
State-Changed-Why:  
Fixed in -current in rev.1.5 of auth.h by upgrading to the 
4.4Lite2 typedefs.  There are no plans to fix this in -stable. 
>Unformatted:
