Re: Bug #612: PostgreSQL 7.2 does not build according to documentation under IRIX w/ MIPSpro

From: "Robert E(dot) Bruccoleri" <bruc(at)stone(dot)congenomics(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: jp(at)celestrion(dot)net
Subject: Re: Bug #612: PostgreSQL 7.2 does not build according to documentation under IRIX w/ MIPSpro
Date: 2002-03-20 00:54:29
Message-ID: 200203200054.TAA15882@stone.congenomics.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On the SGI, you should not use gcc for compilation, but the path in this example
includes references to the location where gcc is placed (if the SGI freeware CD's are
loaded). I've been using PostgreSQL on the SGI platform for five years, and the configuration
works very well if you set it up right. Here's what I use:

export SGI_ABI=-64
cat >config.cache <<EOF
ac_cv_lib_nsl_main=${ac_cv_lib_nsl_main='no'}
ac_cv_prog_CPP=${ac_cv_prog_CPP='cc -E'}
ac_cv_prog_gcc=${ac_cv_prog_gcc=no}
ac_cv_prog_perl=${ac_cv_prog_perl=/usr/local64/bin/perl}
EOF
gmake clean
CC="cc -64" \
AWK=awk \
INSTALL=/pg/postgresql-7.2/config/install-sh \
LDFLAGS="-rpath /usr/local64/lib" \
./configure --prefix=/pg/postgresql-7.2 \
--enable-hba \
--with-pgport=6546 \
--disable-locale \
--enable-cassert \
--with-template=irix5 \
--with-includes="/usr/local64/include /usr/local64/include/readline" \
--with-libs=/usr/local64/lib \
--without-CXX \
--with-maxbackends=128 \
--enable-debug \
--without-java \
--enable-odbc
gmake
gmake check
gmake install

Notice that CPP is overridded to use the C compiler, and gcc is completely turned off.

Also, Makefile.custom contains

CUSTOM_CC = cc -64
LD += -64

Finally, the following change in src/Makefile.shared helps to place the pglib shared object
higher in memory for better virtual memory utilization.

167c167
< LINK.shared = $(COMPILER) -shared -check_registry /usr/lib64/so_locations -Wl,-set_version,sgi$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
---
> LINK.shared = $(COMPILER) -shared -Wl,-set_version,sgi$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)

+-----------------------------+------------------------------------+
| Robert E. Bruccoleri, Ph.D. | email: bruc(at)acm(dot)org |
| P.O. Box 314 | URL: http://www.congen.com/~bruc |
| Pennington, NJ 08534 | |
+-----------------------------+------------------------------------+

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-03-20 05:25:09 Re: 7.2 crash...
Previous Message Tom Lane 2002-03-19 23:55:49 Re: Storage problems