Tim Hentenaar's Blog

Building GCC for Solaris 2.5.1 (i386) in 10 Easy Steps

Having installed Solaris 2.5.1 in VirtualBox, I happened to recall the unfortunate fact that the Solaris of that era doesn't ship with a C compiler. Of course, you could always buy Sun's compiler, but in this day and age I haven't been able to find a copy, and I doubt Oracle would be willing to sell it to me. Thus, I set about to build one. Not the simplest task, as evidenced by the length of this post. Thank God Sun ships the C library, headers, and basic binary tools at least. :P

In this article, I cover the steps necessary to build the toolchain and build / package software under Solaris, and I've also made binary packages available of software that I've already built.

Let's get started...

Continue reading...

Published on: Jul 26, 2015

Patch for the Solaris 2.5.1 (i386) Paging Bug

Recently, I decided just for the hell of it to install the i386 version of Solaris 2.5.1 (SunOS 5.5.1) in VirtualBox just to screw around with it. It's been quite some time since I was greeted by Open Windows and the classic korn shell. Much to my dismay, however, the OS would not boot.

Thankfully, Michal Necasek wrote an article describing the issue, as he debugged it with kadb. His analysis was spot on, and most helpful with getting Solaris to install and run. Since there was no patch available, I decided it was damn sure time to write one...

Continue reading...

Published on: Jul 24, 2015

This Month's New Software



I don't always have enough time on my hands, but over the last month I've published a few more projects to my Github page. Since I haven't updated my blog in a while, I figured it'd be an opportune time to write a short post introducing those projects...

Continue reading...

Published on: Jul 14, 2015

Don't Learn C the Wrong Way

Across the vastness of the internet, there are many resources for aspiring programmers to learn to program. Nowadays you can find the answer to most common questions with a simple Google search. Before this explosion of post-modern data availability, information was disseminated in the form of the written word.

Recently, I came across an e-book written by Zed A. Shaw entitled Learn C The Hard Way, and while I can commend the author for spending the time and energy to write it, I would NOT recommend it to anyone seriously interested in learning the C programming language. In fact, if you were one of the unlucky souls who happened to have purchased it. Go right now and at least try to get your money back!

In the same vein of the author's own "critique" of The C Programming Language , I'm going to critique the author's own work, pointing out misinformation, and rebutting his points with code and excerpts from the C standard. Although, from what I've read the author has little stomach for criticism.

Continue reading...

Published on: Jan 29, 2015