link a library compiled with SC 5.9 on a machine with SC5.8


 
Thread Tools Search this Thread
Operating Systems Solaris link a library compiled with SC 5.9 on a machine with SC5.8
# 1  
Old 12-19-2007
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
# 2  
Old 12-19-2007
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.
# 3  
Old 12-19-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

TensorFlow: Open Source Software Library for Machine Intelligence

Hi. Is anyone using TensorFlow ? oZikw5k_2FM Please let us know if you are using or planning to use TensorFlow. Thanks. (0 Replies)
Discussion started by: Neo
0 Replies

2. UNIX for Advanced & Expert Users

Xserver shared library link is gone

I am administering an Xserver v10.6.8 and I updated the ports using Macports self update. I received this error when calling the program R dyld: Library not loaded: /opt/local/lib/libicuuc.48.dylib Referenced from: /opt/local/lib/R/lib/x86_64/libR.dylib Reason: image not found Trace/BPT... (2 Replies)
Discussion started by: godzilla07
2 Replies

3. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

4. UNIX for Advanced & Expert Users

Figure out the minimum os version neede to run executable or link library.

Hello, I need to figure out the minimum OS version needed to run some executable. For the following OS: Linux, AIX, Solaris. For example how do I know the minimum OS version for /bin/ls ? "file" command does not give me much information. There are some tools that are helpful for understanding... (4 Replies)
Discussion started by: +Yan
4 Replies

5. Shell Programming and Scripting

Library on Remote machine or $PATH is not working..

I don't know how to put this. However here is the problem. While executing command remotely on a Unix machine i get an error /usr/lib/hpux32/dld.so: Unable to find library 'libxerces-c.sl.21'. However when i execute the command on the remote machine locally. it works fine. Also i have... (2 Replies)
Discussion started by: suraj.sheikh
2 Replies

6. Linux

Linux Library symbolic link damaged

Hi, firstly I am not so familiar with linux and i think i have done some damage to the red hat server. It seems that now in command line I am unable to use any basic command whatsoever (ls, move, cp, bash, etc). I was trying to deploy an application and have changed the symbolic link (soft... (1 Reply)
Discussion started by: zaxx
1 Replies

7. UNIX for Dummies Questions & Answers

Link type between working machine and server machine

There are two servers where my machine is connected. Is there any type of link formed between my machine and server machine? (1 Reply)
Discussion started by: palash2k
1 Replies

8. AIX

Can I link object files compiled with xlC and g++?

Hello, Is it possible to link object files compiled with different compilers on AIX, say xlC and g++? Thanks Ping (0 Replies)
Discussion started by: luop0812
0 Replies

9. UNIX for Dummies Questions & Answers

Link error while linking a shared library in unix

Getting the following error , ld: /opt/syncsort39/lib/libsyncsort.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link. Is there any difference in the ld options in opt file while linking a 64 bit shared library ? Or is the problem because we are trying to link both 32 bit and 64... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

10. Programming

use gcc and link with a library

Hello, J have a problem when I use gcc: This comand works: gcc -shared -fpic -I/usr/include/sys -I/usr/include -L/usr/lib/librt.sl essai1.c mylib.sl but gcc I/usr/include/sys -I/usr/include -L/usr/lib/librt.sl essai2.c -o essai don't work. The first command creates a dynamique... (1 Reply)
Discussion started by: AUBERT
1 Replies
Login or Register to Ask a Question