NetBSD Problem Report #42440

From www@NetBSD.org  Fri Dec 11 09:42:29 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1DB9263C354
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Dec 2009 09:42:29 +0000 (UTC)
Message-Id: <20091211094228.E218A63BAB5@www.NetBSD.org>
Date: Fri, 11 Dec 2009 09:42:28 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: HAVE_SYS_ENDIAN_H is missing in tools/compat/nbtool_config.h.in
X-Send-Pr-Version: www-1.0

>Number:         42440
>Category:       toolchain
>Synopsis:       HAVE_SYS_ENDIAN_H is missing in tools/compat/nbtool_config.h.in
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tsutsui
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 11 09:45:00 +0000 2009
>Closed-Date:    Sat Nov 05 16:13:35 +0000 2011
>Last-Modified:  Sat Nov 05 16:13:35 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Cross compile on FreeBSD-current is not possible.
>How-To-Repeat:

>Fix:
Add sys/endian.h to configure.ac and regen configure and nbtool_config.in.h .


diff -u -r1.70 configure.ac
--- tools/compat/configure.ac	16 Jun 2009 22:35:34 -0000	1.70
+++ tools/compat/configure.ac	9 Dec 2009 05:39:17 -0000
@@ -80,9 +80,9 @@
 AC_HEADER_DIRENT
 AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \
 	getopt.h features.h malloc.h sys/poll.h stddef.h)
-AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
-	sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h \
-	resolv.h arpa/nameser.h,,
+AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h sys/endian.h \
+	machine/endian.h sys/featuretest.h err.h inttypes.h libgen.h \
+	paths.h stdint.h util.h resolv.h arpa/nameser.h,,
 	[test -f include/$ac_header || touch include/$ac_header])
 AC_CHECK_HEADERS(rpc/types.h netconfig.h,,
 	[echo '#include "nbtool_config.h"' >include/$ac_header.new
======================================================================
--- tools/compat/configure	16 Jun 2009 22:35:34 -0000	1.70
+++ tools/compat/configure	9 Dec 2009 05:39:17 -0000
@@ -2600,9 +2600,9 @@
 fi
 done

-for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
-	sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h \
-	resolv.h arpa/nameser.h
+for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h sys/endian.h \
+	machine/endian.h sys/featuretest.h err.h inttypes.h libgen.h \
+	paths.h stdint.h util.h resolv.h arpa/nameser.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 echo "$as_me:2608: checking for $ac_header" >&5

======================================================================
diff -u -r1.23 nbtool_config.h.in
--- tools/compat/nbtool_config.h.in	16 Jun 2009 22:35:34 -0000	1.23
+++ tools/compat/nbtool_config.h.in	9 Dec 2009 05:39:17 -0000
@@ -1,6 +1,6 @@
 /* nbtool_config.h.in.  Generated automatically from configure.ac by autoheader.  */

-/*      $NetBSD: nbtool_config.h.in,v 1.23 2009/06/16 22:35:34 christos Exp $    */
+/*      $NetBSD: configure.ac,v 1.70 2009/06/16 22:35:34 christos Exp $    */

 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__
@@ -489,6 +489,9 @@
 /* Define if you have the <sys/dir.h> header file, and it defines `DIR'. */
 #undef HAVE_SYS_DIR_H

+/* Define if you have the <sys/endian.h> header file. */
+#undef HAVE_SYS_ENDIAN_H
+
 /* Define if you have the <sys/featuretest.h> header file. */
 #undef HAVE_SYS_FEATURETEST_H

>Release-Note:

>Audit-Trail:
From: Aleksej Saushev <asau@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42440 CVS commit: src/tools/compat
Date: Fri, 15 Jan 2010 11:26:26 +0000

 Module Name:	src
 Committed By:	asau
 Date:		Fri Jan 15 11:26:25 UTC 2010

 Modified Files:
 	src/tools/compat: configure.ac nbtool_config.h.in

 Log Message:
 Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
 Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

 Approved by <dholland>.


 To generate a diff of this commit:
 cvs rdiff -u -r1.70 -r1.71 src/tools/compat/configure.ac
 cvs rdiff -u -r1.23 -r1.24 src/tools/compat/nbtool_config.h.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: toolchain-manager->asau
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Fri, 15 Jan 2010 13:03:43 +0000
Responsible-Changed-Why:


State-Changed-From-To: open->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Fri, 15 Jan 2010 13:03:43 +0000
State-Changed-Why:
Fixed.


Responsible-Changed-From-To: asau->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Wed, 12 Oct 2011 00:12:39 +0900
Responsible-Changed-Why:
for pullup request


State-Changed-From-To: closed->pending-pullups
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Wed, 12 Oct 2011 00:12:39 +0900
State-Changed-Why:
pullup-5 #1676


From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42440 CVS commit: [netbsd-5] src/tools/compat
Date: Wed, 2 Nov 2011 19:43:03 +0000

 Module Name:	src
 Committed By:	riz
 Date:		Wed Nov  2 19:43:03 UTC 2011

 Modified Files:
 	src/tools/compat [netbsd-5]: configure configure.ac nbtool_config.h.in

 Log Message:
 Pull up following revision(s) (requested by tsutsui in ticket #1676):
 	tools/compat/configure.ac: revision 1.71
 	tools/compat/configure: revision 1.71
 	tools/compat/nbtool_config.h.in: revision 1.24
 Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
 Fixes FreeBSD hosted builds (PR 42440 and PR 42470).
 Approved by <dholland>.
 Regenerate.


 To generate a diff of this commit:
 cvs rdiff -u -r1.67.2.2 -r1.67.2.3 src/tools/compat/configure \
     src/tools/compat/configure.ac
 cvs rdiff -u -r1.21.2.1 -r1.21.2.2 src/tools/compat/nbtool_config.h.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sun, 06 Nov 2011 01:13:35 +0900
State-Changed-Why:
Pullup done.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.