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

Поиск
Список
Период
Сортировка
От Robert E. Bruccoleri
Тема Re: Bug #612: PostgreSQL 7.2 does not build according to documentation under IRIX w/ MIPSpro
Дата
Msg-id 200203200054.TAA15882@stone.congenomics.com
обсуждение исходный текст
Список 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@acm.org                |
| P.O. Box 314                | URL:   http://www.congen.com/~bruc |
| Pennington, NJ 08534        |                                    |
+-----------------------------+------------------------------------+

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Storage problems
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.2 crash...