From owner-freebsd-current Sun May 31 22:24:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03217 for freebsd-current-outgoing; Sun, 31 May 1998 22:24:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA03212 for ; Sun, 31 May 1998 22:24:05 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id PAA09745; Mon, 1 Jun 1998 15:24:03 +1000 Date: Mon, 1 Jun 1998 15:24:03 +1000 From: Bruce Evans Message-Id: <199806010524.PAA09745@godzilla.zeta.org.au> To: freebsd-current@FreeBSD.ORG, n@nectar.com Subject: Re: union nethostaddr no longer defined for src/sbin/mount_nfs.c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >requires nfs/nqnfs.h, which in turn requires ``union nethostaddr'', >defined in nfs/nfs.h. > >The problem is recent changes described by the following commit >log entry moved the definition of ``union nethostaddr'' from >outside #ifdef KERNEL to inside #ifdef KERNEL. Of course, KERNEL >is not defined when building mount_nfs. > >RCS file: /home/ncvs/src/sys/nfs/nfs.h,v >Working file: nfs.h >head: 1.40 >[snippage] >- ---------------------------- >revision 1.37 >date: 1998/05/31 17:27:45; author: peter; state: Exp; lines: +9 -9 >NFS Jumbo commit part 1. Cosmetic and structural changes only. The aim >of this part of commits is to minimize unnecessary differences between >the other NFS's of similar origin. Yes, there are gratuitous changes here >that the style folks won't like, but it makes the catch-up less difficult. >- ---------------------------- > >FreeBSD was bit by this because in the past we stopped defining KERNEL >in mount_nfs.c > >RCS file: /home/ncvs/src/sbin/mount_nfs/mount_nfs.c,v >Working file: mount_nfs.c >head: 1.28 >[snippage] >- ---------------------------- >revision 1.27 >date: 1998/02/01 21:53:19; author: bde; state: Exp; lines: +1 -3 >Don't define KERNEL before including . It is no longer >necessary. This fixes warnings about missing forward declarations >for structs in kernel-only prototypes. >- ---------------------------- > >The quick fix to get the world rolling is to backout the change >made in revision 1.37 of src/sys/nfs.h. > >I'm not sure what the long-term fix should be --- I'd guess the >same as the short term. Just back out the part that clobbered this: RCS file: /home/ncvs/src/sys/nfs/nfs.h,v Working file: nfs.h head: 1.40 ... ---------------------------- revision 1.33 date: 1998/02/01 21:23:29; author: bde; state: Exp; lines: +15 -15 Moved declaration of `union nethostadr' outside of the KERNEL section, to give pollution compatible with . At least mount_nfs.c previously had to #define KERNEL before including to get this pollution, but this gave other pollution. Moved comment about NFSINT_SIGMASK to immediately before the code that it applies to. ---------------------------- Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message