Thread: Compile errors on AIX
I had no problems on Solaris and HP, but trying to compile Postgres 7.3.2 on AIX I'm getting this errors: .../src/backend/postgres.imp -Wl,-bE:libpgtcl.exp ld: 0711-224 WARNING: Duplicate symbol: .pqsignal 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: 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: .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: .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: .EncryptMD5 ld: 0711-224 WARNING: Duplicate symbol: .md5_hash 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-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_UnregisterChannel 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_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[4]: *** [libpgtcl.so] Error 8 make[4]: Leaving directory ... Does anyone have a suggestion, or perhaps an experience building on AIX? Thanks, Mike.
On Wed, Apr 09, 2003 at 02:30:59AM -0400, Michael Brusser wrote: > I had no problems on Solaris and HP, but trying to compile > Postgres 7.3.2 on AIX I'm getting this errors: > > .../src/backend/postgres.imp -Wl,-bE:libpgtcl.exp > ld: 0711-224 WARNING: Duplicate symbol: .pqsignal ....[cut-ap] > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetVar ....[cut-ap] > make[4]: *** [libpgtcl.so] Error 8 > make[4]: Leaving directory ... > Does anyone have a suggestion, or perhaps an experience building on AIX? Hi Mike! I was building postgres on AIX some time ago. Unfortunately I do not have access to that box now, to look at it. But errors like shown above, remind me that I got similar things. Could you give more details on how you are trying to build it? Maybe it will remind me something, or someone else would see what's wrong - if you give more details. I was building with gcc. Are you using Gnu Make to build? Best regards, -- --- Artur Pietruk, arturp@plukwa.net
On Wed, Apr 09, 2003 at 02:30:59AM -0400, Michael Brusser wrote: > I had no problems on Solaris and HP, but trying to compile > Postgres 7.3.2 on AIX I'm getting this errors: > > .../src/backend/postgres.imp -Wl,-bE:libpgtcl.exp > ld: 0711-224 WARNING: Duplicate symbol: .pqsignal These appear to be ok. I get those on AIX, but the regression tests pass (except for the time-based ones, because of the DST change). > information. > ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetVar My guess here is that you don't have the necessary Tcl pieces installed, or else ld doesn't know where to look. -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada <andrew@libertyrms.info> M2P 2A8 +1 416 646 3304 x110
Yes, I think ld cannot locate the tcl resources. I believe that in the past we had to apply some patch to compile Postgres 7.2.1 on AIX, I wonder if a similar patch exists for v. 7.3.2 Mike. > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Andrew Sullivan > Sent: Wednesday, April 09, 2003 1:28 PM > To: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Compile errors on AIX > > > On Wed, Apr 09, 2003 at 02:30:59AM -0400, Michael Brusser wrote: > > I had no problems on Solaris and HP, but trying to compile > > Postgres 7.3.2 on AIX I'm getting this errors: > > > > .../src/backend/postgres.imp -Wl,-bE:libpgtcl.exp > > ld: 0711-224 WARNING: Duplicate symbol: .pqsignal > > These appear to be ok. I get those on AIX, but the regression tests > pass (except for the time-based ones, because of the DST change). > > > information. > > ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetVar > > My guess here is that you don't have the necessary Tcl pieces > installed, or else ld doesn't know where to look. > > -- > ---- > Andrew Sullivan 204-4141 Yonge Street > Liberty RMS Toronto, Ontario Canada > <andrew@libertyrms.info> M2P 2A8 > +1 416 646 3304 x110 > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
On Wed, Apr 09, 2003 at 01:40:17PM -0400, Michael Brusser wrote: > Yes, I think ld cannot locate the tcl resources. > I believe that in the past we had to apply some patch > to compile Postgres 7.2.1 on AIX, I wonder if a similar patch > exists for v. 7.3.2 Was it a Tcl-specific patch? If ld can't find the Tcl libraries, I'd be inclined to wonder whether your ld is configured correctly. Are you using Tcl elsewhere? A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada <andrew@libertyrms.info> M2P 2A8 +1 416 646 3304 x110