pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
compiling plpython compilation error
2+ messages / 2 participants
[nested] [flat]

* compiling plpython compilation error
@ 2008-03-03 13:15  Gerardo Herzig <gherzig@fmed.uba.ar>
  0 siblings, 1 reply; 2+ messages in thread

From: Gerardo Herzig @ 2008-03-03 13:15 UTC (permalink / raw)
  To: pgsql-sql; Python Mailing List <python-list@python.org>

Hi all. Im having a hard time trying to compile the plpython package.
This is the error make gives me:

gherzig@vdb:/usr/local/src/postgresql-8.2.5/src/pl/plpython> make
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline 
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic 
-shared -Wl,-soname,libplpython.so.0   plpython.o 
-L/usr/lib/python2.5/config -L../../../src/port -lpython2.5 -lpthread 
-ldl -lutil -lm -Wl,-rpath,'/usr/lib/python2.5/config' -o libplpython.so.0.0
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: 
/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
/usr/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libplpython.so.0.0] Error 1


This runs on OpenSuse 10.3.
python 2.5
postgres 8.2.5 ( and 8.3.0)

Any clues?
Thanks!

Gerardo



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: compiling plpython compilation error
@ 2008-03-03 16:12  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Gerardo Herzig <gherzig@fmed.uba.ar>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2008-03-03 16:12 UTC (permalink / raw)
  To: Gerardo Herzig <gherzig@fmed.uba.ar>; +Cc: pgsql-sql; Python Mailing List <python-list@python.org>

Gerardo Herzig <gherzig@fmed.uba.ar> 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2008-03-03 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 13:15 compiling plpython compilation error Gerardo Herzig <gherzig@fmed.uba.ar>
2008-03-03 16:12 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox