X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2F6A0DB970 for ; Thu, 17 Nov 2005 12:20:01 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63418-04 for ; Thu, 17 Nov 2005 16:19:58 +0000 (GMT) X-Greylist: delayed 17:46:35.73587 by SQLgrey- Received: from mail.libertyrms.com (unknown [207.219.45.62]) by svr1.postgresql.org (Postfix) with ESMTP id 4DDE3D7003 for ; Thu, 17 Nov 2005 12:19:57 -0400 (AST) Received: from dev5.int.libertyrms.com ([10.1.3.42]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1EcmUM-0002bl-Pi; Thu, 17 Nov 2005 11:19:54 -0500 Message-ID: <437CADBF.80904@ca.afilias.info> Date: Thu, 17 Nov 2005 11:20:15 -0500 From: Seneca Cunningham User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane CC: dba@ca.afilias.info, pgsql-ports@postgresql.org, Mark Gibson , stefan@kaltenbrunner.cc Subject: Re: Patchless postgres 8.x on AIX References: <437BB3C6.6050204@ca.afilias.info> <13111.1132183705@sss.pgh.pa.us> In-Reply-To: <13111.1132183705@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Mail-From: scunning@ca.afilias.info X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.813 required=5 tests=[AWL=0.000, INFO_TLD=0.813] X-Spam-Score: 0.813 X-Spam-Level: X-Archive-Number: 200511/10 X-Sequence-Number: 2244 Tom Lane wrote: > Seneca Cunningham writes: > >>What is happening with postgres certainly appears to be related to the >>linker; in dynahash.c, the keycopy functions that work with no new >>linker flags (strncpy, memmove worked as a memcpy replacement) are all >>exported by libreadline.a, while the segfaulting/infinite-looping memcpy >>is not. > > > libreadline exports these?? I'd say you have a seriously braindead copy > of libreadline ... can you recompile a fresh copy off the net? That was just IBM's rpm of readline 4.3, my fresh build of readline 5.0 exports memcpy in addition to the aforementioned functions. As a result, LDFLAGS-less postgres doesn't segfault but it gets its memcpy linked through libreadline. libreadline's build scripts, at least for 5.0, don't seem to give a build that can be properly linked against on AIX, and it's entirely possible that my build used different linker flags than IBM's to get a libreadline that actually exports what it provides. > The inet failures look like there is consistently no support for IPv6. > I wonder if the linker is somehow replacing our own inet-parsing > subroutines with a non-IPv6-aware set. It's conceivable that there > could be a name collision with subroutines from an old version of > libbind. The linker appears to be grabbing the inet functions from the AIX libc, not the postgres set. LDFLAGS is placed before all the SUBSYS.o, and by my understanding of the AIX linker, adding "-lc" to LDFLAGS would cause it to search libc.a before utils/SUBSYS.o and use the functions like inet_net_pton from libc. -- Seneca Cunningham scunning@ca.afilias.info