NetBSD-Bugs archive

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

Re: toolchain/42014 (Can't cross-compile netbsd 5.0.1 toolchain on snow leopard)



Synopsis: Can't cross-compile netbsd 5.0.1 toolchain on snow leopard

State-Changed-From-To: open->pending-pullups
State-Changed-By: tron%NetBSD.org@localhost
State-Changed-When: Mon, 21 Dec 2009 00:57:19 +0000
State-Changed-Why:
I've compared Frank Zerangue's code change with the NetBSD-current
sources and came up with this minimal change to fix the problem:

--- tools/compat/compat_defs.h  15 Jan 2009 04:32:35 -0000      1.67.2.1
+++ tools/compat/compat_defs.h  20 Dec 2009 20:00:17 -0000
@@ -38,7 +38,6 @@
 #include <sys/stat.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <grp.h>
 #include <limits.h>
 #include <paths.h>
 #include <stdarg.h>
@@ -76,6 +75,9 @@
 /* We don't include <pwd.h> here, so that "compat_pwd.h" works. */
 struct passwd;
 
+/* We don't include <grp.h> here, so that "compat_pwd.h" works. */
+struct group;
+
 /* Assume an ANSI compiler for the host. */
 
 #undef __P

With this patch applied I can build a NetBSD/i386 release from both
the "netbsd-5" and "netbsd-5-0" branch. I've therefore submitted
the patch to release engineering:

        http://releng.netbsd.org/cgi-bin/req-5.cgi?show=1202






Home | Main Index | Thread Index | Old Index