Re: Small patch to compile on IRIX 6.5 with gcc - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: Small patch to compile on IRIX 6.5 with gcc
Date
Msg-id 45E19A8B.5090608@dunslane.net
Whole thread Raw
In response to Small patch to compile on IRIX 6.5 with gcc  (Matteo Beccati <php@beccati.com>)
Responses Re: Small patch to compile on IRIX 6.5 with gcc  (Matteo Beccati <php@beccati.com>)
Re: Small patch to compile on IRIX 6.5 with gcc  (Matteo Beccati <php@beccati.com>)
List pgsql-patches

Matteo Beccati wrote:
> Hi,
>
> had some spare time and I've been finally able to install some tools to
> compile PostgreSQL on my SGI Octane 2 box, which is running IRIX 6.5.30.
>
> Afre succesfully installing gcc-3.3, gmake, readline and some other
> freeware packages, I tried to compile PgSQL.
>
> This is the configure line:
>
> CC="/usr/freeware/bin/gcc" CFLAGS="-I/usr/freeware/include
> -L/usr/freeware/lib32" ./configure
>
> There were a lot of complaints about missing declaration for base
> functions (i.e. malloc), and a few errors. The attached patch fixes the
> errors and allows gmake to build all. There is no failure in the
> regression tests.
>
> Of course, the patch is just a hack. If anyone is wanting to properly
> address it I could create and ssh account.
>
>
>
> + #include <internal/stdlib_core.h>
> +
>
>
This will break many, possibly most platforms. It is certainly absent on
this Linux box.


>
> + #include <sys/file.h>
> +
>

Why is this needed?

Perhaps if you showed us the errors that result from not having these
things we could judge better how to address them.

cheers

andrew

pgsql-patches by date:

Previous
From: Matteo Beccati
Date:
Subject: Small patch to compile on IRIX 6.5 with gcc
Next
From: Zoltan Boszormenyi
Date:
Subject: IDENTITY/GENERATED v31