Fwd: SVN r358655 breaks i386 buildworld :-(
Michael Butler
imb at protected-networks.net
Thu Mar 5 19:51:40 UTC 2020
In case anyone else is seeing this ..
-------- Forwarded Message --------
Subject: Re: SVN r358655 breaks i386 buildworld :-(
Date: Thu, 5 Mar 2020 09:49:01 -0500
From: Michael Butler <imb at protected-networks.net>
To: Gleb Smirnoff <glebius at FreeBSD.org>
On 3/4/20 10:00 PM, Michael Butler wrote:
> On i386, I get this ..
>
> Building
> /usr/obj/usr/src/i386.i386/rescue/rescue/usr/src/sbin/mount_nfs/mount_nfs.o
> /usr/src/sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to
> 'struct if_msghdr *' increases required alignment from 1 to 4
> [-Werror,-Wcast-align]
> ifm = (struct if_msghdr *)buf;
> ^~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
Not sure if it's the correct solution but I noted sbin/dhclient has a
Makefile fix which disables this warning. Applying this works around the
problem ..
Index: sbin/mount_nfs/Makefile
===================================================================
--- sbin/mount_nfs/Makefile (revision 358670)
+++ sbin/mount_nfs/Makefile (working copy)
@@ -11,6 +11,8 @@
UMNTALL= ${SRCTOP}/usr.sbin/rpc.umntall
CFLAGS+= -DNFS -I${MOUNT} -I${UMNTALL}
+NO_WCAST_ALIGN= yes
+
.PATH: ${MOUNT} ${UMNTALL}
.include <bsd.prog.mk>
More information about the freebsd-current
mailing list