LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 03-25-2004, 11:45 AM   #1
daveyboy685
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Linker errors


I have compiled my code successfully on red hat 9.0 on an i386 machine with no linker errors and the programs run fine. With that said....
I am now trying to port this code to red hat 2.1 AS (Advanced Server) on A64 X455 IBM machine. I am using the following linker and compiler versions:

$ ld -v
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
$ cc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-124.7.2)

The compile options are below:
-g -Wall -fno-rtti -fno-exceptions -L/usr/shlib -lpthread -lm \
-pthread -D_THREAD_SAFE -lpthread -lc -lrt -ldl -rdynamic \
-D_GNU_SOURCE -D_LARGEFILE_SOURCE64 -D_FILE_OFFSET_BITS=64 \

The individual c program compiles fine as they all do!! Am I missing a compile option or do I have one I don't need?

Here are a couple of the linker error messages:
/home/l.c:5028: relocation truncated to fit:PCREL21B __divdf3
/home/l.c:6512: relocation truncated to fit: PCREL21B __divdf3
/home/l.c:7496: relocation truncated to fit: PCREL21B __divdf3
/home/l.c:8620: relocation truncated to fit: PCREL21B __divdf3

Someone please HELP me!!!!!!

David
 
Old 03-25-2004, 12:25 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker errors with Kylix3 C++ on Mandrake 9.1 HVDV Programming 10 08-30-2006 11:12 PM
ld linker errors Ankit mittal Programming 1 09-30-2005 03:05 PM
linker errors -please help MarcReing Programming 1 07-20-2005 07:44 AM
C++ - class template - linker errors? Wynd Programming 2 10-19-2004 03:54 PM
Linker Sections DylanDylan Linux - General 0 07-19-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration