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

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// 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 sample: fatal: relocation error: R_AMD64_32: file /home/dave/eiffel/Eiffel6.0.66595/studio/spec/solaris-x86-64/lib/ 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
From:manus_eiffel    Date:2007/06/01    Status: Closed    Download   
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.

From:prestoat2000    Date:2007/02/25    Download   
Attachments for problem report #12129

Attachment: sample.ecf     Size:930
Attachment: root_class.e     Size:244