Results 1 to 5 of 5
We are having c programs in our application, for some of the c programs c code is available and for the rest compiled exe(64 bit) is available.
We are trying ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-18-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
c programs migration from solaris to linux
We are having c programs in our application, for some of the c programs c code is available and for the rest compiled exe(64 bit) is available.
We are trying to migrate from solaris 8 to Linux OEL5U3. We are looking help on the below questions.
1. Will the C programs (source code available) work on Linux environment if we compile it.
2. If we copy the "C" exe from solaris to linux, will it work or not.
- 03-18-2011 #2I am not a dev, but for what itīs worth:1. Will the C programs (source code available) work on Linux environment if we compile it.
If that source was coded with portability in mind, then it has a chance to compile.
In general:
The more solaris specifics were used, the harder the code modifications will be.
No.2. If we copy the "C" exe from solaris to linux, will it work or not.You must always face the curtain with a bow.
- 03-18-2011 #3
Whats your application? Is it related to socket/networking programming?
Or is it related to DB access kind of stuffs Or something else.
Yes,Mostly It should work with minor changes,but it can be resolved.1. Will the C programs (source code available) work on Linux environment if we compile it.
Its unlikely ,the binary compiled on Solaris will not work on Linux straight way.2. If we copy the "C" exe from solaris to linux, will it work or not.First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 03-18-2011 #4First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 03-21-2011 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,236
Solaris binaries in most likelihood will not work on Linux, certainly not if they were build on Sparc systems. The C code might build and run on Linux, as the other responders mentioned here. I do a lot of cross-platform development for software that runs on Solaris, HP-UX, and Linux and they are, for the most part, compatible code-wise. There are always "gotchas" to deal with. Testing will take the greatest number of development cycles here. Don't expect the process to be painless.
For the software to which you do not have the source code, you are in for a reverse engineering task. This is going to be your biggest problem, and requires VERY competent and experienced engineers to do properly. It will be costly at best. Make sure your specifications are clear, unambiguous, and invariant (don't change them once the design/coding processes start).Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

