Solaris programming question, where the heck is libATA?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.