>
> 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@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026