This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC and header files of HP-UX11.11 don't cooperate
- From: Jan Köhnlein <Koehnlein at tu-harburg dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Feb 2002 16:14:14 +0100
- Subject: GCC and header files of HP-UX11.11 don't cooperate
- Organization: TU Hamburg-Harburg
Hi,
I have encountered problem compiling gcc on a HP Workstation (HP-UX,
B.11.11 U 9000/785):
GCC did not compile because HPs sys/stdsyms.h defines
#define __size_t size_t;
but doesn't define "size_t" itself. As an effect, gcc's stddef.h did not
define it either, if sys/stdsyms.h was included before (e.g. in
<arch>/libiberty/floatformat.c) and compilation stopped.
Changing gcc/ginclude/stddef.h for my specific system is not a big problem:
Make sure gcc's stddefs.h defines size_t by commenting out #ifndef
__size_t in line 180 and matching #endif. Then avoid redefinition of
__size_t in line 194.
Well, now it works, but I am not sure if other OS's wouldn't work with
these changes. Maybe someone knows a safer way to achive this. If I am
the only person affected, this might also be due to a buggy installation
of our operating system. I have to admit, that I tried this on the 3.0.1
code, but there haven't been any modifications of the involved parts
since then.
Regards
Jan Köhnlein.