LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   executable compiled on solaris 10 not working on solaris 9 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/executable-compiled-on-solaris-10-not-working-on-solaris-9-a-808826/)

ash_bit2k2 05-19-2010 07:49 AM

executable compiled on solaris 10 not working on solaris 9
 
Hi

I compiled an executable on Solaris 10 which creates semaphore ( semget)
but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10.
the ldd for the executable on two servers is as follows:-
on solaris 9:-

% pldd 16373
16373: ./a.out
/.SUNWnative/usr/lib/brand/solaris9/sparcv9/s9_preload.so.1
/usr/lib/sparcv9/libCstd.so.1
/usr/lib/sparcv9/libCrun.so.1
/usr/lib/sparcv9/libm.so.1
/usr/lib/sparcv9/libc.so.1
/usr/lib/sparcv9/libdl.so.1
/usr/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1


on solaris 10:-

% pldd 28447
28447: a.out
/usr/lib/sparcv9/libCstd.so.1
/usr/lib/sparcv9/libCrun.so.1
/lib/sparcv9/libm.so.1
/lib/sparcv9/libc.so.1
/platform/sun4v/lib/sparcv9/libc_psr.so.1

It is dependant upon this additional preload.so.1 on solaris9

Can anyone suggest what needs to be changed.

jlliagre 05-19-2010 11:03 AM

What doesn't work ?

Did you try to recompile it under Solaris 9 ?

The preload you see in pldd is due to the application running in a Solaris 9 branded zone on top of Solaris 10 instead of running on a bare Solaris 9 installation.

ash_bit2k2 05-20-2010 12:32 AM

Hi
Actually it was intended to compile it on solaris 10 and install and test on solaris 9 , that was the intended target.

jlliagre 05-20-2010 12:58 AM

It might not be the issue in your case but compiling in a newer release than the intended target is unsupported.


All times are GMT -5. The time now is 04:39 AM.