The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
relocation error: yyparse referenced symbol not found agilgeous UNIX for Advanced & Expert Users 2 05-06-2008 02:40 PM
ld.so.1: relocation error sanjasam High Level Programming 1 09-10-2007 05:23 AM
relocation error abhi1826 UNIX for Advanced & Expert Users 1 01-23-2006 12:36 PM
PS truncated in AIX moe2266 AIX 2 10-13-2005 04:54 PM
ps truncated output renoc SUN Solaris 8 05-28-2004 08:14 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-29-2006
houdini_1 houdini_1 is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 1
relocation truncated to fit errors

I have 2 directories: a1 and b1
Directory b1 depends on directory a1
Using directory a1, I create a1.lib
Using directory b1, I create b1.lib


Now, using a1 and b1, I create a shared object ab1.so
I've been able to build ab1.so just fine. I made an update to file b1.c
and am now getting a ton of relocation truncated to fit: R_SPARC_GOT13
errors and don't know why. The change I made is nothing out of the
ordinary, just a few more if statements to a function.


I'm building on Solaris 7, gcc 2.95.2
This same code compiles just fine under RedHat9 and Suse9.3.


Anyone have any suggestions as to how to fix this?


Thank you.
  #2 (permalink)  
Old 08-30-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
Some architectures need different compiler flags than others. this thread on Google Groups suggests using -fPIC for SPARC.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0