LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2008, 04:45 PM   #1
MrTuffPaws
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Solaris programming question, where the heck is libATA?


New to Linux, but have a Sun server up with Solaris 10.

We are trying to do some testing of a hard drive tool that we got from some other people. Issue is, we need to compile it first. It requires libATA and sg.h

I installed gcc3.4.6, but it doesn't seem to contain the libATA, and I can't find sg.h anywhere either. How does one go about checking to see if libATA is on a system, where would it live if it was there, and if it isn't there, how does one install it, and where should to go?

Also, looks like sg.h is part of the linux core source. Other than just downloading the source and linking to sg.h, is there anything I should know.

Thanks in advance.
 
Old 07-24-2008, 05:18 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,649

Rep: Reputation: 391Reputation: 391Reputation: 391Reputation: 391
Solaris 10 kernel is SunOS 5.10, quite a different beast than the Linux kernel.

Both libATA and sg.h are Linux specific and won't be usable under Solaris, nor will any Linux source code be linkable with the Solaris kernel for both technical and legal reasons.
 
Old 07-24-2008, 06:56 PM   #3
MrTuffPaws
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
If that is the case, would I have to compile the code under a Linux version and then move the executable over to Solaris, correct. Assuming no other caviots.
 
Old 07-25-2008, 12:59 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,649

Rep: Reputation: 391Reputation: 391Reputation: 391Reputation: 391
Solaris doesn't run Linux binaries natively. There are ways to run Linux applications under a Solaris zone but your hard-drive testing tool doesn't match the requirements as it relies on something Linux specific.

You need to have this code ported to Solaris.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Java Programming on Solaris 10 austinramsay Solaris / OpenSolaris 7 05-20-2008 02:46 PM
Libata. How do I get it going??! GingerPrince Fedora 4 12-06-2005 11:26 AM
differ between linux and solaris in socket programming taureanyang Programming 2 07-06-2005 04:27 AM


All times are GMT -5. The time now is 08:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration