The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Link type between working machine and server machine palash2k UNIX for Dummies Questions & Answers 1 05-22-2008 03:43 AM
Can I link object files compiled with xlC and g++? luop0812 AIX 0 04-07-2008 03:23 PM
Link error while linking a shared library in unix arunkumar_mca UNIX for Dummies Questions & Answers 3 02-15-2007 05:59 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 01:10 AM
use gcc and link with a library AUBERT High Level Programming 1 06-21-2004 09:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Dec 2007
Posts: 1
Stumble this Post!
Lightbulb link a library compiled with SC 5.9 on a machine with SC5.8

Is it possible to link a library compiled on Solaris 10 with SunCompiler 5.9 in a project compiled with SC 5.8 ?

Is there an option to "downgrade" the SC5.9 => SC5.8 to be sure of the compatibility ?

Thanks 4 your help
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
I would not do it that way, remember the code compiled on a later platform will be linking against later include files and later libraries.

Code compiled on 5.8 should run on 5.9 and 5.10, but not the otherway round.

Doing what you want would actually count as a cross-compile because you would need to get a copy of the 5.8 libraries and headers, and recompile making sure you compiled and linked against those and did not use any default /usr/include or /usr/lib.
Reply With Quote
  #3 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 356
Stumble this Post!
I believe you can fake a library to an earlier release with the elfedit command which appeared in Solaris Express build 75.

elfedit(1)

Of course, there is a slight risk in doing so.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0