Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B12C52E0195 for ; Tue, 4 Mar 2008 12:24:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95949-04 for ; Tue, 4 Mar 2008 12:24:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.fmed.uba.ar (mail.fmed.uba.ar [157.92.152.1]) by postgresql.org (Postfix) with ESMTP id AE31C2E00AE for ; Tue, 4 Mar 2008 12:24:04 -0400 (AST) Received: from [157.92.155.58] (mailbis [157.92.155.58]) by mail.fmed.uba.ar (Postfix) with ESMTP id C5AC712EC31; Tue, 4 Mar 2008 14:24:06 -0200 (ARST) Message-ID: <47CD75D0.6070008@fmed.uba.ar> Date: Tue, 04 Mar 2008 13:16:16 -0300 From: Gerardo Herzig User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane CC: "pgsql-sql@postgresql.org" Subject: Re: compiling plpython compilation error (solved) References: <47CBFA04.30300@fmed.uba.ar> <24554.1204560748@sss.pgh.pa.us> In-Reply-To: <24554.1204560748@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/9 X-Sequence-Number: 30337 Tom Lane wrote: >Gerardo Herzig writes: > > >>Hi all. Im having a hard time trying to compile the plpython package. >>This is the error make gives me: >> >> > > > >>/usr/lib/python2.5/config/libpython2.5.a(abstract.o): relocation >>R_X86_64_32 against `a local symbol' can not be used when making a >>shared object; recompile with -fPIC >> >> > >Well, I'd try following the error message's advice: use -fPIC not >-fpic. Note that it's not real clear whether this needs to be done >for plpython, or libpython, or perhaps both; so you might well be >in for making a custom libpython installation. > > regards, tom lane > > > > Yes, i was trying to recompile plpy with -fPIC with no success, recompiling *python* with -fPIC did work. Thanks!! Gerardo