LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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, 04:18 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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, 05: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-24-2008, 11:59 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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 01:46 PM
Libata. How do I get it going??! GingerPrince Fedora 4 12-06-2005 10:26 AM
differ between linux and solaris in socket programming taureanyang Programming 2 07-06-2005 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

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