Bug #587: Postgresql will not build on HP-UX 11.0 in debug mode - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #587: Postgresql will not build on HP-UX 11.0 in debug mode
Date
Msg-id 200202132109.g1DL9mC92684@postgresql.org
Whole thread Raw
Responses Re: Bug #587: Postgresql will not build on HP-UX 11.0 in
Re: Bug #587: Postgresql will not build on HP-UX 11.0 in debug mode
List pgsql-bugs
Andre Blanchard (andre@synchronicity.com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
Postgresql will not build on HP-UX 11.0 in debug mode

Long Description
Greetings:

This configuration:

Version 7.2 of postgresql
HP-UX 11.0 64 Bit Kernel

lr-xr-xr-t   1 root       sys             17 Apr  6  2001 cc@ -> /opt/ansic/bin/cc

/bin/cc:
         LINT A.11.01.00 CXREF A.11.01.00
        HP92453-01 A.11.01.00 HP C Compiler
         $ PATCH/11.00:PHCO_95167  Oct  1 1998 13:46:32 $

Generates the following compilation error in debug mode

Compilation error in File:

/home/andre/build/relbf1/src/vendor/postgresql/72/src/backend/access/heap/heapam.c

cc +DAportable -g -Ae +O2 -I../../../../src/include -I/home/andre/build/relbf1/src/vendor/postgresql/72/src/include
-I/home/andre/build/relbf1/obj/HP_UX_1100_aCC_0315_dbg/postgresql-72/../tcl/include -c -o hashstrat.o
/home/andre/build/relbf1/src/vendor/postgresql/72/src/backend/access/hash/hashstrat.c
cc +DAportable -g -Ae +O2 -I../../../../src/include -I/home/andre/build/relbf1/src/vendor/postgresql/72/src/include
-I/home/andre/build/relbf1/obj/HP_UX_1100_aCC_0315_dbg/postgresql-72/../tcl/include -c -o hashutil.o
/home/andre/build/relbf1/src/vendor/postgresql/72/src/backend/access/hash/hashutil.c
/bin/ld -r -o SUBSYS.o hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o hashsearch.o hashstrat.o
hashutil.o
make[4]: Leaving directory `/home/andre/pg_test/src/backend/access/hash'
make -C heap SUBSYS.o
make[4]: Entering directory `/home/andre/pg_test/src/backend/access/heap'
cc +DAportable -g -Ae +O2 -I../../../../src/include -I/home/andre/build/relbf1/src/vendor/postgresql/72/src/include
-I/home/andre/build/relbf1/obj/HP_UX_1100_aCC_0315_dbg/postgresql-72/../tcl/include -c -o heapam.o
/home/andre/build/relbf1/src/vendor/postgresql/72/src/backend/access/heap/heapam.c
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.
make[4]: *** [heapam.o] Error 9
make[4]: *** Deleting file `heapam.o'
make[4]: Leaving directory `/home/andre/pg_test/src/backend/access/heap'
make[3]: *** [heap-recursive] Error 2
make[3]: Leaving directory `/home/andre/pg_test/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/andre/pg_test/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/andre/pg_test/src'
make: *** [all] Error 2




Sample Code
This is my complete script file:

cat build_pg.template
#!/usr/local/bin/bash
PATH=/usr/local/jakarta-ant-1.4.1/bin:$PATH ; export PATH
unset EXTRA_CONFIG_OPTIONS
if [ ! -z "`echo ${SYNC_PLATFORM} | grep dbg`" ] ; then
        echo Debug
        EXTRA_CONFIG_OPTIONS=`echo --with-debug` ; export EXTRA_CONFIG_OPTIONS
else
        echo No Debug
fi
SRC_DIR=${SYNC_DEV_DIR}/${SYNC_RELEASE}/src/vendor/postgresql/72 ; export SRC_DIR
SBIN_DIR=${SYNC_DEV_DIR}/${SYNC_RELEASE}/sbin/${SYNC_PLATFORM} ; export SBIN_DIR
SOBJ_DIR=${SYNC_DEV_DIR}/${SYNC_RELEASE}/obj/${SYNC_PLATFORM}/postgresql-72 ; export SOBJ_DIR
#NOTE JAVA_HOME is different for each platform
if [ `uname` = "AIX" ] ; then
JAVA_HOME=/usr/local/java.130 ; export JAVA_HOME;
echo Press Return
read input
fi
if [ `uname` = "HP-UX" ] ; then
JAVA_HOME=/usr/local/java.130 ; export JAVA_HOME;
CONFIGURE_ENV="CC=cc +DAportable -g" ; export CONFIGURE_ENV
fi
if [ `uname` = "SunOS" ] ; then
JAVA_HOME=/usr/local/j2sdk1_3_1 ; export JAVA_HOME;
CONFIGURE_ENV="CC=cc" ; export CONFIGURE_ENV
CONFIGURE_ENV1="CFLAGS='-z muldefs'" ; export CONFIGURE_ENV1
fi
echo EXTRA CONFIG OPTIONS : ${EXTRA_CONFIG_OPTIONS}
echo CONFIGURE_ENV : ${CONFIGURE_ENV}
TCL_HOME=${HOME}/build/${SYNC_RELEASE}/src/vendor/tcl/tcl8.3.3 ; export TCL_HOME
TK_HOME=${HOME}/build/${SYNC_RELEASE}/src/vendor/tk/tk8.3.3 ; export TK_HOME
TCL_INST=${HOME}/build/${SYNC_RELEASE}/sbin/${SYNC_PLATFORM} ; export TCL_INST
TK_INST=${HOME}/build/${SYNC_RELEASE}/sbin/${SYNC_PLATFORM} ; export TK_INST
env CC='cc +DAportable -g'  bash ${SRC_DIR}/configure --srcdir=${SRC_DIR} \
        --prefix=${SOBJ_DIR}/install \
        --enable-locale \
        --enable-multibyte \
        --with-CXX \
        ${EXTRA_CONFIG_OPTIONS} \
        --with-tcl \
        --without-tk \
        --with-java \
        --with-x \
        --with-odbc \
        --with-tclconfig=${TCL_INST} \
        --with-tkconfig=${TK_INST} \
        --with-includes="${SOBJ_DIR}/../tk/include ${SOBJ_DIR}/../tcl/include" \
        --with-libraries=${TCL_INST} \
        --bindir=${SBIN_DIR} \
        --libdir=${SBIN_DIR}
make


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Bug #583: Wrong example in 7.2 Tutorial
Next
From: Peter Eisentraut
Date:
Subject: Re: Bug #587: Postgresql will not build on HP-UX 11.0 in