This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC and header files of HP-UX11.11 don't cooperate


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]