Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1DD852E0177 for ; Mon, 3 Mar 2008 12:12:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 03568-05 for ; Mon, 3 Mar 2008 12:12:33 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D23822E0048 for ; Mon, 3 Mar 2008 12:12:31 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m23GCSXn024555; Mon, 3 Mar 2008 11:12:28 -0500 (EST) To: Gerardo Herzig cc: "pgsql-sql@postgresql.org" , Python Mailing List Subject: Re: compiling plpython compilation error In-reply-to: <47CBFA04.30300@fmed.uba.ar> References: <47CBFA04.30300@fmed.uba.ar> Comments: In-reply-to Gerardo Herzig message dated "Mon, 03 Mar 2008 10:15:48 -0300" Date: Mon, 03 Mar 2008 11:12:28 -0500 Message-ID: <24554.1204560748@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/5 X-Sequence-Number: 30333 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