gmake Error "/libpython2.4.a: could not read symbols: Bad value" with ./configure --with-python

Started by Nico Grubertabout 19 years ago3 messagesgeneral
Jump to latest
#1Nico Grubert
nicogrubert@gmail.com

Dear list members,

I am trying to install Postgresql-8.2.3 on a Suse Linux Enterprise
Server 10.1 64-Bit with Python 2.4.4. At the "gmake" command I get 2
errors (see below).

I ran:
./configure --with-python --with-openssl
gmake

Here are the last lines of the gmake process:
-------------------------------------------------------------------------------
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/local/lib/python2.4/config -L../../../src/port -lpython2.4
-lpthread -ldl -lutil -lm -Wl,-rpath,'/usr/local/lib/python2.4/config'
-o libplpython.so.0.0
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
/usr/local/lib/python2.4/config/libpython2.4.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/local/lib/python2.4/config/libpython2.4.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
gmake[3]: *** [libplpython.so.0.0] Error 1
gmake[3]: Leaving directory
`/usr/local/src/postgresql-8.2.0/src/pl/plpython'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/local/src/postgresql-8.2.0/src/pl'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-8.2.0/src'
gmake: *** [all] Error 2
-------------------------------------------------------------------------------

My system:
  + Suse Linux Enterprise Server 10.1 64-Bit
  + Postgresql-8.2.3
  + Python 2.4.4

Any idea, what's going wrong here?

Thanks in advance,
Nico

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Nico Grubert (#1)
Re: gmake Error "/libpython2.4.a: could not read symbols: Bad value" with ./configure --with-python

Nico Grubert escribi�:

Dear list members,

I am trying to install Postgresql-8.2.3 on a Suse Linux Enterprise
Server 10.1 64-Bit with Python 2.4.4. At the "gmake" command I get 2
errors (see below).

/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
/usr/local/lib/python2.4/config/libpython2.4.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/local/lib/python2.4/config/libpython2.4.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status

Did you compile Python manually? This error looks similar to problems
I've gotten when I've messed up trying to link 32bit libs with 64 bit
objects.

I'd suggest installing the Python libs that come with SLES. Does it not
ship 2.4.4?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#3Albe Laurenz
all@adv.magwien.gv.at
In reply to: Nico Grubert (#1)
Re: gmake Error "/libpython2.4.a: could not read symbols: Bad value" with ./configure --with-python

Nico Grubert wrote:

/usr/local/lib/python2.4/config/libpython2.4.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/local/lib/python2.4/config/libpython2.4.a: could not read

symbols:

Bad value

Any idea, what's going wrong here?

Does my memory fool me or did you ask that same question before?

Make sure that this is no problem pertaining to linking a 64-bit
object with a 32-bit object, which won't work.

If that's not the problem, supply the appropriate ld switches for
diagnostic output and try to get more detailed information, e.g.
which symbol is attempted to link with which object.

Yours,
Laurenz Albe