LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Solaris programming question, where the heck is libATA? (https://www.linuxquestions.org/questions/linux-newbie-8/solaris-programming-question-where-the-heck-is-libata-658052/)

MrTuffPaws 07-24-2008 03:45 PM

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.

jlliagre 07-24-2008 04:18 PM

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.

MrTuffPaws 07-24-2008 05:56 PM

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.

jlliagre 07-24-2008 11:59 PM

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.


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