Bug 40829

Summary: /usr/bin/ld: OpenDis.o: @gprel relocation against dynamic symbol _XInitDisplayLock_fn
Product: [Retired] Red Hat Raw Hide Reporter: Elliot Lee <sopwith>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: high    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-21 16:04:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elliot Lee 2001-05-16 04:37:52 UTC
[root@boris Python-2.1]# gcc -shared build/temp.linux-ia64-2.1/_tkinter.o
build/temp.linux-ia64-2.1/tkappinit.o -L/usr/X11R6/lib
-L/usr/local/lib -ltk8.3 -ltcl8.3 -lX11 -o build/lib.linux-ia64-2.1/_tkinter.so
/usr/bin/ld: OpenDis.o: @gprel relocation against dynamic symbol
_XInitDisplayLock_fn
/usr/bin/ld: OpenDis.o: @gprel relocation against dynamic symbol
_XFreeDisplayLock_fn
collect2: ld returned 1 exit status

[root@boris Python-2.1]# rpm -q gcc binutils
gcc-2.96-85
binutils-2.10.91.0.2-3

Comment 1 Bill Nottingham 2001-05-16 06:48:01 UTC
Where are you linking in _XInitDisplayLock_fn from? Is it compiled with
-fPIC?

On ia64 you can't (generally) link non-fPIC code into a shared object.

Comment 2 Jakub Jelinek 2001-09-06 17:14:59 UTC
Assuming this was what Bill described...