NetBSD-Bugs archive

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

toolchain/42440: HAVE_SYS_ENDIAN_H is missing in tools/compat/nbtool_config.h.in



>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:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 11 09:45:00 +0000 2009
>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



Home | Main Index | Thread Index | Old Index