Hi, I made a patch to let PostgreSQL work in the LP64 data model on HP-UX PA-RISC and HP-UX Itanium platform. Also this patch contains tas code for HP-UX Itanium.
I verified this patch on the following environment and specified as followings at executing configure script: * HP-UX 11.11 PA-RISC PHSS_30766 s700_800 ANSI C compiler B.11.11.10 cumulative patch PHSS_30966 s700_800 ld(1) and linker tools cumulative patch PHCO_30269 s700_800 cumulative sh-posix(1) patch PHCO_29816 s700_800 rc(1M) scripts cumulative patch gcc (GCC) 3.4.1 1) env CC=cc ./configure --without-readline --without-zlib 2) env CC=cc CFLAGS=+DD64 ./configure --without-readline \ --without-zlib Note: you may specify +DA2.0W instead of +DD64 3) env CC=gcc ./configure --without-readline --without-zlib 4) env CC=/usr/local/pa64/bin/gcc ./configure --without-readline \ --without-zlib The regression test has no problem to all 96 tests in the 4 cases above. * HP-UX 11.23 Itanium PHSS_30848 s700_800 HP C Compiler (A.05.57) PHSS_30849 s700_800 u2comp/be/plugin library Patch gcc (GCC) 3.4.1 1) env CC=cc CFLAGS="+O2" ./configure --without-readline \ --without-zlib 2) env CC=cc CFLAGS="+O2 +DD64" ./configure --without-readline \ --without-zlib 3) env CC=gcc CFLAGS="-O2" ./configure --without-readline \ --without-zlib 4) env CC=gcc CFLAGS="-O2 -mlp64" ./configure --without-readline \ --without-zlib Only 'float8' of the regression test fails in the 4 cases above. Cheers, Shinji Teragaito Hewlett-Packard Japan, Ltd. P.S. First I made this patch for PostgreSQL 7.4.3. It's easy to backport this patch to 7.4.3. But please be carefull to build 7.4.3 on HP-UX 11.23 (aka HP-UX 11i v2 for HP Integrity Server): you must specify "cc -E +legacy_cpp" in CPP at running configure. Otherwise you will see the concatenation problem caused by genbki.sh. Now you don't need to specify CPP to the CVS tree source code because the latest genbki.sh doesn't use the preprocessor.
postgresql-8.0.0beta1-hpux.patch
Description: Binary data
regression.diffs
Description: Binary data
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org