This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: use <sys/int_types.h> instead of <stdint.h> on Solaris (build fail also on newest CVS snapshot binutils-2.17.50)
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: anirkko at insel dot ch
- Cc: binutils at sourceware dot org
- Date: Tue, 24 Apr 2007 13:04:03 +0930
- Subject: Re: use <sys/int_types.h> instead of <stdint.h> on Solaris (build fail also on newest CVS snapshot binutils-2.17.50)
- References: <200704202230.AAA10323@neuro.insel.ch>
On Sat, Apr 21, 2007 at 12:30:23AM +0200, anirkko@insel.ch wrote:
> When using "configure --enable-targets=all"
> then compiling opcodes/m32c-asm.c fails in cgen-types.h
> because no file stdint.h can be found anywhere on Solaris.
> (neither 2.6 nor Solaris 8)
>
> Workaround: on Solaris, use
> #include <sys/int_types.h>
> instead of <stdint.h>
This should fix it.
bfd/
* acinclude.m4: Include config/stdint.m4.
* configure.in: Invoke GCC_HEADER_STDINT.
* sysdep.h: Don't include ansidecl.h here.
* configure: Regenerate.
* config.in: Regenerate.
* Makefile.in: Regenerate.
bfd/doc/
* Makefile.in: Regenerate.
binutils/
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
ld/
* Makefile.in: Regenerate.
opcodes/
* cgen-types.h: Include bfd_stdint.h, not stdint.h.
* Makefile.in: Regenerate.
Index: bfd/acinclude.m4
===================================================================
RCS file: /cvs/src/src/bfd/acinclude.m4,v
retrieving revision 1.16
diff -u -p -r1.16 acinclude.m4
--- bfd/acinclude.m4 31 May 2006 15:14:35 -0000 1.16
+++ bfd/acinclude.m4 23 Apr 2007 13:48:49 -0000
@@ -3,6 +3,7 @@ sinclude(../config/gettext-sister.m4)
sinclude(../config/nls.m4)
sinclude(../config/po.m4)
sinclude(../config/progtest.m4)
+sinclude(../config/stdint.m4)
sinclude(../bfd/bfd.m4)
sinclude(../bfd/warning.m4)
Index: bfd/configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.227
diff -u -p -r1.227 configure.in
--- bfd/configure.in 14 Apr 2007 20:36:56 -0000 1.227
+++ bfd/configure.in 23 Apr 2007 13:48:57 -0000
@@ -140,6 +140,7 @@ BFD_CC_FOR_BUILD
AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
+GCC_HEADER_STDINT(bfd_stdint.h)
AC_HEADER_TIME
AC_HEADER_DIRENT
ACX_HEADER_STRING
Index: bfd/sysdep.h
===================================================================
RCS file: /cvs/src/src/bfd/sysdep.h,v
retrieving revision 1.16
diff -u -p -r1.16 sysdep.h
--- bfd/sysdep.h 5 May 2005 18:51:14 -0000 1.16
+++ bfd/sysdep.h 23 Apr 2007 13:48:59 -0000
@@ -22,8 +22,6 @@ Foundation, Inc., 51 Franklin Street - F
#ifndef BFD_SYSDEP_H
#define BFD_SYSDEP_H
-#include "ansidecl.h"
-
#include "config.h"
#ifdef HAVE_STDDEF_H
Index: opcodes/cgen-types.h
===================================================================
RCS file: /cvs/src/src/opcodes/cgen-types.h,v
retrieving revision 1.1
diff -u -p -r1.1 cgen-types.h
--- opcodes/cgen-types.h 14 Jul 2005 22:52:23 -0000 1.1
+++ opcodes/cgen-types.h 23 Apr 2007 13:49:27 -0000
@@ -23,7 +23,7 @@ with this program; if not, write to the
#ifndef CGEN_TYPES_H
#define CGEN_TYPES_H
-#include <stdint.h>
+#include "../bfd/bfd_stdint.h"
typedef int8_t QI;
typedef uint8_t UQI;
--
Alan Modra
IBM OzLabs - Linux Technology Centre