LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-14-2003, 06:50 AM   #1
chi
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
Question unix application on solaris/intel?


Hi
I want to know if it is possible to run a solaris application on a PC box , i mean solaris8/intel or solaris9/intel, if no why in the documentation found on the sun web site, they specify that solaris/intel and /sparc have the same system interfaces ?

Thanx.
 
Old 01-14-2003, 08:05 PM   #2
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
a little more details would help. What application?, was it compiled for sparc or intel?

A program that is compiled on Sparc will not run on Intel, however if the source is available, then you should be able to compile the same source on Intel without any changes.
 
Old 01-16-2003, 07:13 AM   #3
chi
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi
My application runs actually on a sparc server , i have also the binarie , i don`t know if i can install it on a pc , it is probably compiled for sparc and the source code is not available !

This what i found in a sun web site :" (9.22) Will my application from Solaris/SPARC work on Solaris/x86? I have the source.

Yes and no. Generally applications that don't make assumptions about computer architecture will work. That is, code shouldn't depend on structure or union alignments, or in what order a number appears in a word ("big endian" SPARC or "little endian" Intel). Don't use functions labeled SPARC or x86 only in the man pages. In other words, "well-behaved" C (or other language) programs should recompile fine.
 
Old 01-16-2003, 11:15 AM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
If you only have a binary that is compiled for a SPARC, then it won't
run on an X86 machine. Once a program has been compiled, it is
no longer portable, even if the source code was.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting Solaris Application to Linux CaptainRon Solaris / OpenSolaris 5 10-01-2005 02:29 AM
Debian or Solaris for a server application? Gaz25 Solaris / OpenSolaris 8 05-30-2005 12:30 PM
Extra Software for Solaris/Unix and Help Thorrn4 Solaris / OpenSolaris 7 03-18-2005 07:07 PM
NIS - Solaris and Unix integrated - problem andrec_ufmg Solaris / OpenSolaris 2 04-01-2003 11:03 AM
Solaris 9 for Intel ?? trickykid Solaris / OpenSolaris 33 02-17-2003 03:27 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration