Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Murad Nayal <murad(at)godel(dot)bioc(dot)columbia(dot)edu>
Cc: pgsql-ports(at)postgresql(dot)org, bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Date: 2000-05-22 23:56:32
Message-ID: 200005222356.TAA01789@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-hackers pgsql-ports

>
> I managed to compile (and sort of run) postgres 7.0 to SGI running IRIX
> 6.5.7. I compiled to 64bit libraries. The problems I had were both due
> errors in the configure script as well as postgres configuration files.
>
> configure problems:
> -------------------
> 1- the program that configure uses to test for namespace std is faulty.
> I had to manually add #define HAVE_NAMESPACE_STD 1 to the top of
> interfaces/libpq++/pgconnection.h

Can you suggest a test that does work on Irix?

>
> 2- configure badly guesses the type of the 3rd argument to accept(). it
> decided it should be size_t (unsigned int on IRIX) while accept on IRIX
> takes an int. postgres compiles, but accept never retrieves the IP
> address of the connecting client (in StreamConnection() function in the
> file backend/libpq/pqcomm.c). as a result no authentication can happen
> and the postmaster refuses connections regardless of what is in
> pg_hba.conf. the error message is usually something like
>
> "no pg_hba.conf entry for host localhost user postgres database
> template1"
>
> here local host is just a default string and apparently will never match
> anything in pg_hba.conf. to fix this i changed line 521 of
> include/config.h
> from: #define SOCKET_SIZE_TYPE size_t
> to: #define SOCKET_SIZE_TYPE int

Again, a suggested change?

>
> postgres problems
> ------------------
> 3- src/pl/tcl/Makefile has a bug. line 69 is
> CFLAGS= $(TCL_CFLAGS_OPTIMIZE)
> that clobbers all CFLAGS included previously. as a result the include
> directories, important to find tcl.h etc. will not be added to the
> options and the compilation stops here complaining that it can't locate
> tcl.h etc.
> I just changed it to
> CFLAGS+= $(TCL_CFLAGS_OPTIMIZE)

Changed.

>
> 4- I had to change line 8 of interfaces/odbc/isqlext.h
> from # include <isql.h>
> to # include "isql.h"
> to force the inclusion of the local isql.h

Changed. Will appear in 7.0.1.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2000-05-22 23:58:45 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Tom Lane 2000-05-22 23:35:46 Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2000-05-22 23:58:45 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Tom Lane 2000-05-22 23:35:46 Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-hackers by date

  From Date Subject
Next Message Palle Girgensohn 2000-05-22 23:57:05 Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)
Previous Message Tom Lane 2000-05-22 23:35:46 Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-ports by date

  From Date Subject
Next Message Palle Girgensohn 2000-05-22 23:57:05 Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)
Previous Message Tom Lane 2000-05-22 23:35:46 Re: port v7.0 to SGI-IRIX-6.5.7/64