Launch / compile Linux vs Solaris executable

if I have code compiled for Solaris 8 and 10, and now you have a provider who wants to use my bin / exe under Linux. Could there be compatibility issues?

I am sure that I will need to compile / link under Linux OS so that it works 100%, but I just wanted to know if anyone could explain to me why it will not work on Linux, although exe has everything, and in this is nothing dynamic, since it no longer needs to run anything. If we are not talking about runtime libs, that if there is a mismatch, this can lead to an exe failure.

+3
source share
2 answers

You need to recompile the application on Linux.

Linux - Solaris. , / , . , . SPARC vs X86.

Solaris, Linux API C Posix, , - API- Solaris, Linux , , , endianess 64- 32- .

+8

, , , Solaris Linux :

  • :
    1.1 Solaris SPARC- Sun, 8-10 Intel.
    1.2 Linux Intel ( Sparc).

  • :
    2.1 Solaris 8 Sun (Sun WorkShop 6+) ( , ABI ..). Solaris 10 gcc, , , ( , Solaris 8); 2.2 Linux g++, , ABI ..

+2

Source: https://habr.com/ru/post/1792337/


All Articles