Executable compiled on solaris 10 not working on solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Executable compiled on solaris 10 not working on solaris 9
# 1  
Old 05-19-2010
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. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9.
the ldd for the executable on two servers is as follows:-
on solaris 9:-
Code:
% 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:-
Code:
% 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.

Last edited by pludi; 05-19-2010 at 10:02 AM.. Reason: code tags, please...
# 2  
Old 05-20-2010
You need to compile your code on Solaris 9.
# 3  
Old 05-20-2010
It is an intended target to compile the code on Solaris 10 and install and test on solaris 9 , which is for backward compatibility.
# 4  
Old 05-20-2010
i have question about this also
if i have executable code for program running on linux
shall i execute it in solaris
# 5  
Old 05-20-2010
Quote:
Originally Posted by ash_bit2k2
It is an intended target to compile the code on Solaris 10 and install and test on solaris 9 , which is for backward compatibility.
Compiling in a newer release than the intended target is unsupported.

---------- Post updated at 15:59 ---------- Previous update was at 15:52 ----------

Quote:
Originally Posted by xxmasrawy
i have question about this also
if i have executable code for program running on linux
shall i execute it in solaris
No, or at least not directly. lxrun, lx branded zones or virtual box are potential solutions on x86. Nothing really usable on SPARC.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What are the executable file formats in Solaris and Linux?

we all knew that .exe files are the executable file formats in windows....... Similarly, what are the executable file formats in solaris and linux ........ please tell me:D Thanks in Advance. (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. Solaris

Newly Compiled GCC 4.4.4 on Solaris sparc gives problem with -m32/-m64 flags

Hello experts, This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message: /usr/local/bin/ld: target elf32-sparc not found collect2: ld returned 1 exit status I tried every step possible thing that I could think... (2 Replies)
Discussion started by: d_shanke
2 Replies

3. Solaris

getent not working, solaris 10 only

Hello, thanks in advance for any help! We use LDAP for our unix boxes When I run getent passwd on solaris 10, it only returns some of the ldap entries, not all. Aprox 300 of 4000. When i run the same command on linux or solaris 9, it comes back correct. my nsswitch file is good. I ran a... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

4. Solaris

Executable file on Solaris

Hi! What are executable file formats in Solaris? Can someone please share it? Thanks! (3 Replies)
Discussion started by: Klyde
3 Replies

5. Solaris

Issue in pro*C program compiled in solaris 10

Hi, We upgraded our servers from solaris 9 to 10. We recompiled all the Pro*C programs with the new oracle version as well. Oracle is 11g. We are facing core dump with the below error for certain executions. But when we are placing new statements between the error fucntion we get junk values to... (1 Reply)
Discussion started by: saroopkris85
1 Replies

6. UNIX for Advanced & Expert Users

Viewing a compiled executable file

I've got a executable binary file (source code fortran77, compiled using gfortran). I'm not sure this is even possible but I remember someone I knew was able to view the source code that created this binary file, i.e. he used a program that enabled him to see what the source code was. Is this... (2 Replies)
Discussion started by: lost.identity
2 Replies

7. Programming

Finding the number of bits a executable was compiled

Hi, Can anyone tell me how to find out how many bits a c executable was compiled in? I am trying to do some investigation of running 32bit programs in 64bit systems. (1 Reply)
Discussion started by: Leion
1 Replies

8. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies

9. Linux

gcc compiled executable not working across x86_64 linux platforms

Hi I compiled a hello world program on two different 64-bit Linux machines, named quimby and node0331. When I compile on quimby and run on node0331 I get a "Floating exception (core dumped)" error. But if I do it in reverse, things work fine. Here's my compilation on quimby: $ uname -a... (3 Replies)
Discussion started by: same1290
3 Replies

10. Programming

dbx error ("Executable contains object file compiled on ...")

Hi, We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them: Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies
Login or Register to Ask a Question