This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: HPUX11.0 G++ 2.95.2 compile problems
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: HPUX11.0 G++ 2.95.2 compile problems
- From: Lothar Wolf <syz at ecmwf dot int>
- Date: Fri, 08 Sep 2000 08:34:49 +0100
- CC: gcc-bugs at gcc dot gnu dot org, bug-gcc at gnu dot org
- Organization: ECMWF (European Centre for Medium-Range Weather Forecasts)
- References: <39B64278.AFDC0C52@ecmwf.int> <orlmx58xuv.fsf@guarana.lsd.ic.unicamp.br>
Alexandre Oliva wrote:
>
> On Sep 6, 2000, Lothar Wolf <syz@ecmwf.int> wrote:
>
> > I am trying to compile the following code on a HPUX 11 D class
> > machine. I get messags about "size_t". I am using the same release
> > of G++ on a HPUX10.20 machine without any problems.
>
> GCC 2.95.2 doesn't support HP-UX 11, and this is one of the symptoms.
> You'll need a development snapshot.
>
> --
> Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist *Please* write to mailing lists, not to me
I used the "hack" provided by Simon and it works :-)
:->
This is how we got around the problem. It is a hack but it has been
(apparently) working fine for almost two years.
* Copy the file
/usr/include/sys/_size_t.h
to the directory
/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/sys
(or equivalent depending on where you install gcc)
* Change the following line from
typedef unsigned long size_t;
to
typedef unsigned int size_t;
* then try your compile again
I hope this helps ...
... Simon ...Simon
Pamment <spamment@amdocs.com>
Thanks for your help
Lothar
--
Lothar Wolf, Systems Analyst, Servers and Desktops Section
European Centre for Medium-Range Weather Forecasts (ECMWF)
Shinfield Park, Reading, Berkshire, RG2 9AX, UK (http://www.ecmwf.int)
Email: Lothar.Wolf@ecmwf.int Telephone: (UK 0044) (0)118 9499-368