[PATCH] Fix build on Solaris 2.5.1

Eric Botcazou ebotcazou@libertysurf.fr
Tue Nov 29 23:38:00 GMT 2005


Hi,

The jumbo patch

2005-11-21  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/24774
	PR fortran/14943
	PR fortran/21647
	* Makefile.am (AM_CPPFLAGS): Add gcc directories as -I paths,
	add -D_GNU_SOURCE.
[...]

has broken the build on SPARC/Solaris 2.5.1 because io/io.h now includes 
gthr.h, which pulls <pthread.h>.  The problem is that the latter header file 
defines uint8_t, uint32_t and uint64_t (and only those, not the full C99 set) 
so they conflict with the last chance definitions in libgfortran.h...

I appreciate that this somehow amounts to kludging kludges :-), but the 
Fortran compiler is clean on this platform _when it builds_ so I think it's 
worth the ugliness.

Tested on SPARC/Solaris 2.5.1, OK for mainline and 4.1 branch?


2005-11-29  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* libgfortran.h (ILP32 typedefs): Define _UINT8_T, _UINT32_T and
	_UINT64_T on Solaris.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgfortran_sol25.diff
Type: text/x-diff
Size: 621 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051129/d4cf3ead/attachment.bin>


More information about the Fortran mailing list