PR# 12129 System compiled with dynamic runtime gets link warnings and won't run
Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: Medium
Date: 2007/02/25
Class: Bug
Severity: Serious
Number: 12129
Release: 6.0.66833
Confidential: No
Status: Closed
Responsible: manus_eiffel
Environment: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1) Gecko/20061228 Firefox/2.0
Solaris 10 on x64
Synopsis: System compiled with dynamic runtime gets link warnings and won't run
Description
A system compiled with dynamic runtime produces a bunch of link warnings like ld: warning: relocation error: R_AMD64_PC32: file /home/dave/eiffel/Eiffel6.0.6\6833/studio/spec/solaris-x86-64/lib//libwkbench.so: symbol fcount: displacement\ relocation applied to the symbol <unknown> at 0x5901d: the symbol fcount is a \copy relocated symbol The link finishes but the executable won't run - error is ld.so.1: sample: fatal: relocation error: R_AMD64_32: file /home/dave/eiffel/Eiffel6.0.66595/studio/spec/solaris-x86-64/lib/libwkbench.so: symbol (unknown): value 0x7fffffee0000 does not fit This is on Solaris 10 on x64. Linking with dynamic runtime with 32-bit version probably works, though I can't try it since that version isn't available right now.
To Reproduce
Compile with attached root class and .ecf file.
Problem Report Interactions
It had to do with the way the runtime is built. We need to use the -K pic option like it is done on some other platforms too. Fixed in rev#68836.
Attachments for problem report #12129