relocation error during linking on CentOS 5.6

Bug #842300 reported by Shining
This bug report is a duplicate of:  Bug #894659: Fails to build on NetBSD 5.1/amd64. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subvertpy
Triaged
Medium
Unassigned

Bug Description

OS: CentOS 5.6 x86_64
Linux dbbox 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
subvertpy-0.8.5
neon-devel-0.25.5-10.el5_4.1
neon-0.25.5-10.el5_4.1
subversion-devel-1.6.11-7.el5
subversion-1.6.11-7.el5
python-2.4.3-43.el5
python-devel-2.4.3-43.el5
gcc-c++-4.1.2-44.el5
gcc-4.1.2-44.el5
libgcc-4.1.2-44.el5

./setup.py install
running install
running build
running build_py
running build_ext
building 'subvertpy.client' extension
creating build/temp.linux-x86_64-2.4
creating build/temp.linux-x86_64-2.4/subvertpy
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python2.4 -c subvertpy/client.c -o build/temp.linux-x86_64-2.4/subvertpy/client.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python2.4 -c subvertpy/editor.c -o build/temp.linux-x86_64-2.4/subvertpy/editor.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python2.4 -c subvertpy/util.c -o build/temp.linux-x86_64-2.4/subvertpy/util.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python2.4 -c subvertpy/_ra.c -o build/temp.linux-x86_64-2.4/subvertpy/_ra.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python2.4 -c subvertpy/wc.c -o build/temp.linux-x86_64-2.4/subvertpy/wc.o
subvertpy/wc.c: In function ‘adm_process_committed’:
subvertpy/wc.c:1205: warning: ‘svn_wc_process_committed4’ is deprecated (declared at /usr/include/subversion-1/svn_wc.h:3765)
subvertpy/wc.c: In function ‘get_pristine_copy_path’:
subvertpy/wc.c:2451: warning: ‘svn_wc_get_pristine_copy_path’ is deprecated (declared at /usr/include/subversion-1/svn_wc.h:4994)
gcc -pthread -shared build/temp.linux-x86_64-2.4/subvertpy/client.o build/temp.linux-x86_64-2.4/subvertpy/editor.o build/temp.linux-x86_64-2.4/subvertpy/util.o build/temp.linux-x86_64-2.4/subvertpy/_ra.o build/temp.linux-x86_64-2.4/subvertpy/wc.o -L/usr/lib -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -lsvn_wc-1 -o build/lib.linux-x86_64-2.4/subvertpy/client.so -lapr-1 -lpthread -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: build/temp.linux-x86_64-2.4/subvertpy/client.o: relocation R_X86_64_PC32 against `py_wc_notify_func' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Tags: centos
Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is either an issue in subvertpy's use of distutils, or a bug somewhere in distutils (it should be specifying -fPIC when building .o files).

Do you have setuptools installed?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Actually, it seems like -fPIC is specified appropriately so I'm not sure what could be going wrong here.

summary: - Can't build subvertpy 0.8.5 on CentOS 5.6 x86_64
+ relocation error during linking
summary: - relocation error during linking
+ relocation error during linking on CentOS 5.6
tags: added: centos
Revision history for this message
Shining (nshi-nb) wrote :

What is your means of "setuptools"? Could you give me an example?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.