Skip site navigation (1) Skip section navigation (2)

Bug #588: Postgresql will not build on AIX; cannot locate tcl library

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #588: Postgresql will not build on AIX; cannot locate tcl library
Date: 2002-02-13 22:10:45
Message-ID: 200202132210.g1DMAjO12946@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
Andre Blanchard (andre(at)synchronicity(dot)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 AIX; cannot locate tcl library

Long Description
Greetings:

With the following configuration:

VisualAge 5.0 Compiler Resources
AIX OS version 4.3.3
postgresql version 7.2
tcl version 8.3.3

 echo $LIBPATH
/tools/windu440/lib.rs6000:.:.:/home/andre/build/relbf1/sbin/AIX_4330_xlC_5000:/home/synch/build/relbf1/sbin/AIX_4330_xlC_5000:/usr/vacpp/lib:/usr/lib/threads/:/usr/lib:/usr/dt/lib:/usr/ccs/lib

tcl resources hierarchy

~/build/relbf1/sbin/AIX_4330_xlC_5000> ls -l
total 1032
drwxr-xr-x   8 andre    usr          4096 Feb 12 23:52 lib/
-rw-r--r--   1 andre    usr         13691 Feb 12 22:57 libtcl8.3.exp
-rwxr-xr-x   1 andre    usr       1010391 Feb 12 22:57 libtcl8.3.so*
-rw-r--r--   1 andre    usr          2721 Feb 12 22:57 libtclstub8.3.a
-rw-r--r--   1 andre    usr          7143 Feb 12 22:57 tclConfig.sh
lrwxrwxrwx   1 andre    usr             8 Feb 12 22:57 tclsh -> tclsh8.3*
-rwxr-xr-x   1 andre    usr          5433 Feb 12 22:57 tclsh8.3*
~/build/relbf1/sbin/AIX_4330_xlC_5000> 

The build will halt with the following error:

xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong  -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:../../../src/backend/postgres.imp -Wl,-bE:libpgtcl.exp -o libpgtcl.so libpgtcl.a -L/home/andre/build/relbf1/sbin/AIX_4330_xlC_5000  -L/home/andre/build/relbf1/sbin/AIX_4330_xlC_5000 -L../../../src/interfaces/libpq -lpq -L/home/andre/build/relbf1/sbin/AIX_4330_xlC_5000  -lc  
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: _pthread_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: .__mod_init
ld: 0711-224 WARNING: Duplicate symbol: __mod_init
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-224 WARNING: Duplicate symbol: .exit
ld: 0711-224 WARNING: Duplicate symbol: exit
ld: 0711-224 WARNING: Duplicate symbol: .putenv
ld: 0711-224 WARNING: Duplicate symbol: putenv
ld: 0711-224 WARNING: Duplicate symbol: ._ptrgl
ld: 0711-224 WARNING: Duplicate symbol: .snprintf
ld: 0711-224 WARNING: Duplicate symbol: .vsnprintf
ld: 0711-224 WARNING: Duplicate symbol: .sprintf
ld: 0711-224 WARNING: Duplicate symbol: sprintf
ld: 0711-224 WARNING: Duplicate symbol: .strlen
ld: 0711-224 WARNING: Duplicate symbol: strlen
ld: 0711-224 WARNING: Duplicate symbol: .__divu64
ld: 0711-224 WARNING: Duplicate symbol: __divu64
ld: 0711-224 WARNING: Duplicate symbol: ._moveeq
ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-224 WARNING: Duplicate symbol: .ovbcopy
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
ld: 0711-224 WARNING: Duplicate symbol: .memmove
ld: 0711-224 WARNING: Duplicate symbol: .realloc
ld: 0711-224 WARNING: Duplicate symbol: realloc
ld: 0711-224 WARNING: Duplicate symbol: .free
ld: 0711-224 WARNING: Duplicate symbol: free
ld: 0711-224 WARNING: Duplicate symbol: .malloc
ld: 0711-224 WARNING: Duplicate symbol: malloc
ld: 0711-224 WARNING: Duplicate symbol: .bzero
ld: 0711-224 WARNING: Duplicate symbol: bzero
ld: 0711-224 WARNING: Duplicate symbol: .select
ld: 0711-224 WARNING: Duplicate symbol: select
ld: 0711-224 WARNING: Duplicate symbol: .strerror
ld: 0711-224 WARNING: Duplicate symbol: strerror
ld: 0711-224 WARNING: Duplicate symbol: .pqsignal
ld: 0711-224 WARNING: Duplicate symbol: .sigemptyset
ld: 0711-224 WARNING: Duplicate symbol: sigemptyset
ld: 0711-224 WARNING: Duplicate symbol: .sigaction
ld: 0711-224 WARNING: Duplicate symbol: sigaction
ld: 0711-224 WARNING: Duplicate symbol: .send
ld: 0711-224 WARNING: Duplicate symbol: send
ld: 0711-224 WARNING: Duplicate symbol: .fflush
ld: 0711-224 WARNING: Duplicate symbol: fflush
ld: 0711-224 WARNING: Duplicate symbol: .recv
ld: 0711-224 WARNING: Duplicate symbol: recv
ld: 0711-224 WARNING: Duplicate symbol: .close
ld: 0711-224 WARNING: Duplicate symbol: close
ld: 0711-224 WARNING: Duplicate symbol: .fprintf
ld: 0711-224 WARNING: Duplicate symbol: fprintf
ld: 0711-224 WARNING: Duplicate symbol: .getenv
ld: 0711-224 WARNING: Duplicate symbol: getenv
ld: 0711-224 WARNING: Duplicate symbol: .pg_char_to_encoding
ld: 0711-224 WARNING: Duplicate symbol: .pg_valid_server_encoding
ld: 0711-224 WARNING: Duplicate symbol: .pg_valid_client_encoding
ld: 0711-224 WARNING: Duplicate symbol: .pg_encoding_to_char
ld: 0711-224 WARNING: Duplicate symbol: .pg_char_to_encname_struct
ld: 0711-224 WARNING: Duplicate symbol: .isalnum
ld: 0711-224 WARNING: Duplicate symbol: isalnum
ld: 0711-224 WARNING: Duplicate symbol: .tolower
ld: 0711-224 WARNING: Duplicate symbol: tolower
ld: 0711-224 WARNING: Duplicate symbol: pg_enc2name_tbl
ld: 0711-224 WARNING: Duplicate symbol: pg_encname_tbl_sz
ld: 0711-224 WARNING: Duplicate symbol: pg_encname_tbl
ld: 0711-224 WARNING: Duplicate symbol: .strcmp
ld: 0711-224 WARNING: Duplicate symbol: .pg_encoding_mblen
ld: 0711-224 WARNING: Duplicate symbol: .pg_utf_mblen
ld: 0711-224 WARNING: Duplicate symbol: .pg_encoding_max_length
ld: 0711-224 WARNING: Duplicate symbol: .pg_mic_mblen
ld: 0711-224 WARNING: Duplicate symbol: .pg_mule_mblen
ld: 0711-224 WARNING: Duplicate symbol: pg_wchar_table
ld: 0711-224 WARNING: Duplicate symbol: pg_utf_mblen
ld: 0711-224 WARNING: Duplicate symbol: pg_mule_mblen
ld: 0711-224 WARNING: Duplicate symbol: .strncpy
ld: 0711-224 WARNING: Duplicate symbol: .DLNewElem
ld: 0711-224 WARNING: Duplicate symbol: .DLMoveToFront
ld: 0711-224 WARNING: Duplicate symbol: .DLRemTail
ld: 0711-224 WARNING: Duplicate symbol: .DLRemHead
ld: 0711-224 WARNING: Duplicate symbol: .DLAddTail
ld: 0711-224 WARNING: Duplicate symbol: .DLAddHead
ld: 0711-224 WARNING: Duplicate symbol: .DLRemove
ld: 0711-224 WARNING: Duplicate symbol: .DLFreeElem
ld: 0711-224 WARNING: Duplicate symbol: .DLInitElem
ld: 0711-224 WARNING: Duplicate symbol: .DLFreeList
ld: 0711-224 WARNING: Duplicate symbol: .DLInitList
ld: 0711-224 WARNING: Duplicate symbol: .DLNewList
ld: 0711-224 WARNING: Duplicate symbol: ._fill
ld: 0711-224 WARNING: Duplicate symbol: .strcpy
ld: 0711-224 WARNING: Duplicate symbol: .strncmp
ld: 0711-224 WARNING: Duplicate symbol: strncmp
ld: 0711-224 WARNING: Duplicate symbol: .strtoul
ld: 0711-224 WARNING: Duplicate symbol: strtoul
ld: 0711-224 WARNING: Duplicate symbol: .strspn
ld: 0711-224 WARNING: Duplicate symbol: strspn
ld: 0711-224 WARNING: Duplicate symbol: .strdup
ld: 0711-224 WARNING: Duplicate symbol: strdup
ld: 0711-224 WARNING: Duplicate symbol: .isupper
ld: 0711-224 WARNING: Duplicate symbol: isupper
ld: 0711-224 WARNING: Duplicate symbol: .PQuntrace
ld: 0711-224 WARNING: Duplicate symbol: .PQtrace
ld: 0711-224 WARNING: Duplicate symbol: .setsockopt
ld: 0711-224 WARNING: Duplicate symbol: setsockopt
ld: 0711-224 WARNING: Duplicate symbol: .fcntl
ld: 0711-224 WARNING: Duplicate symbol: fcntl
ld: 0711-224 WARNING: Duplicate symbol: .fopen
ld: 0711-224 WARNING: Duplicate symbol: fopen
ld: 0711-224 WARNING: Duplicate symbol: .fgets
ld: 0711-224 WARNING: Duplicate symbol: fgets
ld: 0711-224 WARNING: Duplicate symbol: .isspace
ld: 0711-224 WARNING: Duplicate symbol: isspace
ld: 0711-224 WARNING: Duplicate symbol: .fclose
ld: 0711-224 WARNING: Duplicate symbol: fclose
ld: 0711-224 WARNING: Duplicate symbol: .strtok
ld: 0711-224 WARNING: Duplicate symbol: strtok
ld: 0711-224 WARNING: Duplicate symbol: .perror
ld: 0711-224 WARNING: Duplicate symbol: perror
ld: 0711-224 WARNING: Duplicate symbol: .EncryptMD5
ld: 0711-224 WARNING: Duplicate symbol: .md5_hash
ld: 0711-224 WARNING: Duplicate symbol: .crypt
ld: 0711-224 WARNING: Duplicate symbol: crypt
ld: 0711-224 WARNING: Duplicate symbol: .geteuid
ld: 0711-224 WARNING: Duplicate symbol: geteuid
ld: 0711-224 WARNING: Duplicate symbol: .getpwuid
ld: 0711-224 WARNING: Duplicate symbol: getpwuid
ld: 0711-224 WARNING: Duplicate symbol: .strcasecmp
ld: 0711-224 WARNING: Duplicate symbol: strcasecmp
ld: 0711-224 WARNING: Duplicate symbol: .inet_aton
ld: 0711-224 WARNING: Duplicate symbol: inet_aton
ld: 0711-224 WARNING: Duplicate symbol: .gethostbyname
ld: 0711-224 WARNING: Duplicate symbol: gethostbyname
ld: 0711-224 WARNING: Duplicate symbol: .atoi
ld: 0711-224 WARNING: Duplicate symbol: atoi
ld: 0711-224 WARNING: Duplicate symbol: .socket
ld: 0711-224 WARNING: Duplicate symbol: socket
ld: 0711-224 WARNING: Duplicate symbol: .connect
ld: 0711-224 WARNING: Duplicate symbol: connect
ld: 0711-224 WARNING: Duplicate symbol: .strcat
ld: 0711-224 WARNING: Duplicate symbol: .ngetsockname
ld: 0711-224 WARNING: Duplicate symbol: ngetsockname
ld: 0711-224 WARNING: Duplicate symbol: .strchr
ld: 0711-224 WARNING: Duplicate symbol: strchr
ld: 0711-224 WARNING: Duplicate symbol: .lo_export
ld: 0711-224 WARNING: Duplicate symbol: .lo_import
ld: 0711-224 WARNING: Duplicate symbol: .lo_unlink
ld: 0711-224 WARNING: Duplicate symbol: .lo_tell
ld: 0711-224 WARNING: Duplicate symbol: .lo_creat
ld: 0711-224 WARNING: Duplicate symbol: .lo_lseek
ld: 0711-224 WARNING: Duplicate symbol: .lo_write
ld: 0711-224 WARNING: Duplicate symbol: .lo_read
ld: 0711-224 WARNING: Duplicate symbol: .lo_close
ld: 0711-224 WARNING: Duplicate symbol: .lo_open
ld: 0711-224 WARNING: Duplicate symbol: .open
ld: 0711-224 WARNING: Duplicate symbol: open
ld: 0711-224 WARNING: Duplicate symbol: .write
ld: 0711-224 WARNING: Duplicate symbol: write
ld: 0711-224 WARNING: Duplicate symbol: .read
ld: 0711-224 WARNING: Duplicate symbol: read
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetVar
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetDouble
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetVar2
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetVar
ld: 0711-317 ERROR: Undefined symbol: .Tcl_AppendResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Preserve
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Alloc
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GlobalEval
ld: 0711-317 ERROR: Undefined symbol: .Tcl_AddErrorInfo
ld: 0711-317 ERROR: Undefined symbol: .Tcl_BackgroundError
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Release
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Free
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetChannel
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetChannelType
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetInt
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetChannelInstanceData
ld: 0711-317 ERROR: Undefined symbol: .Tcl_QueueEvent
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DeleteChannelHandler
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DeleteEvents
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateChannelHandler
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetChannelName
ld: 0711-317 ERROR: Undefined symbol: .Tcl_ResetResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Realloc
ld: 0711-317 ERROR: Undefined symbol: .Tcl_FirstHashEntry
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NextHashEntry
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DeleteHashTable
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DontCallWhenDeleted
ld: 0711-317 ERROR: Undefined symbol: .Tcl_EventuallyFree
ld: 0711-317 ERROR: Undefined symbol: .Tcl_MakeTcpClientChannel
ld: 0711-317 ERROR: Undefined symbol: .Tcl_RegisterChannel
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateChannel
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetChannelOption
ld: 0711-317 ERROR: Undefined symbol: .Tcl_InitHashTable
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CallWhenDeleted
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DeleteHashEntry
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetStringFromObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetIntFromObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewIntObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetObjResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewStringObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_ObjSetVar2
ld: 0711-317 ERROR: Undefined symbol: .Tcl_AppendElement
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringInit
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringAppendElement
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringFree
ld: 0711-317 ERROR: Undefined symbol: .Tcl_Eval
ld: 0711-317 ERROR: Undefined symbol: .Tcl_UnsetVar
ld: 0711-317 ERROR: Undefined symbol: .Tcl_UnregisterChannel
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringStartSublist
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringEndSublist
ld: 0711-317 ERROR: Undefined symbol: .Tcl_DStringResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateCommand
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateObjCommand
ld: 0711-317 ERROR: Undefined symbol: .Tcl_PkgProvide
make[3]: *** [libpgtcl.so] Error 8
make[3]: Leaving directory `/home/andre/pg_test/src/interfaces/libpgtcl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/andre/pg_test/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/andre/pg_test/src'
make: *** [all] Error 2
~/pg_test> 


Sample Code
The following script was utilized:

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
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

Next:From: Srinivasa R ChavaDate: 2002-02-14 15:19:18
Subject: bugs
Previous:From: Tom LaneDate: 2002-02-13 22:07:56
Subject: Re: Bug #587: Postgresql will not build on HP-UX 11.0 in debug mode

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group