This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris 10/x86
- From: "ro at techfak dot uni-bielefeld dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2004 17:17:40 -0000
- Subject: [Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris 10/x86
- References: <20040430200445.15235.ro@techfak.uni-bielefeld.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-05-14 17:17 -------
Subject: Re: [gfortran] libgfortran doesn't build on Solaris 10/x86
Tobias dot Schlueter at physik dot uni-muenchen dot de writes:
> Yeah, seems like this is the right thing to do. I will prepare a patch
> to this effect later today. I.e. use off_t in all places.
Fine, thanks.
> Besides, I'm curious, is offset_t different from off_t on Solaris?
Yes, off_t can be 32 bit or 64 bit: always 64 bit for 64-bit compilations,
either one for 32-bit compilations, depending on large file support, while
offset_t is always 64 bit:
/*
* The size of off_t and related types depends on the setting of
* _FILE_OFFSET_BITS. (Note that other system headers define other types
* related to those defined here.)
[...]
#if defined(_LP64) || _FILE_OFFSET_BITS == 32
typedef long off_t; /* offsets within files */
#elif _FILE_OFFSET_BITS == 64
typedef longlong_t off_t; /* offsets within files */
#endif
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15235