Open varunpatro opened 6 years ago
After a lot more research, I believe htop
is not supported on solaris 5.10. Correct me if I'm wrong here @gmbroome.
If that's the case, I believe the configure script should output a warning saying the platform is unsupported?
@gmbroome If you can get me started or provide some initial help, I would love to make htop
work for solaris 5.10 (which unfortunately I'm stuck with for a few years from now)
@varunpatro This port of htop is untested on Solaris 10, as Solaris 10 entered the extended support phase (effectively making it a "legacy product") in January 2018, prior to @hishamhm doing the initial patch import.
That missing
First off, I'd check if there's a patch for Solaris 10 available that covers PSARC 2006/662. If so, grab it. If not, then you're likely stuck implementing err() on your own.
Once you're past that issue, you'll likely run into another one very quickly: the need for ncurses6. For that, I recommend OpenCSW. After OpenCSW's pkgutil is installed on your system, as root (or pfexec with local admin privs):
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i libncurses6 libncurses_dev pkgconfig
Then, back in your build environment:
PATH=/opt/csw/bin:$PATH
PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig
cd /path/to/your/source/htop
./configure
make
Depending on your GCC version, you might need a more recent GCC from OpenCSW as well.
All of that aside, expect an uphill battle on a legacy OS. Meanwhile, I'll look into implementing a clean configure failure on Solaris 10.
@hishamhm This could be implemented as a specific warning about Solaris 10, a check for err.h, or both. Thoughts?
htop builds on SmartOS through pkgsrc.
Thanks, @krytarowski - Out of curiosity, was that on Triton cloud, or a local installation?
I use just use NetBSD, but I'm aware that they build for the SunOS family of systems.
Ah, @krytarowski - I think you're referring to htop-2.0.2 in pkgsrc. Though that version does indeed build on SmartOS, on native containers it's the dummy "unsupported" platform which just shows empty meters, no processes, etc.
Once pkgsrc bumps up its version of htop to 2.2.0 or later, SmartOS native containers should (hopefully) get a real, working htop implementation. SmartOS Linux containers already have the Linux version of htop, of course.
@hishamhm I recommend closing this. We've added in a config warning for unsupported Solaris versions, and my efforts to create a patchset for Solaris 10 compatibility have gone nowhere. Missing headers, ancient ncurses, broken unicode, etc. ad nauseam and none of it likely to ever be fixed, given the support status of S10.
Hi @hishamhm!
I really love this tool and use this on every system I'm on.
My university for legacy reasons is using
solaris
and unfortunately, I'm stuck with it. I read thathtop
is now available forsolaris
? If yes, please help me out with this compile error I see.Before that, here's the system info:
And here's the make build error:
Thanks for building this wonderful product!
By the way, I'm also interested in contributing to this project, so that I can learn more about system performance and also practice low level programming in C. Do you have any contributing guidelines or simple issues that I can help with?