Comment by spijdar

17 days ago

> So Unix has to feel like dealing with old cruft to you? ;)

Well, maybe :)

It's something about the system being made of a lot of messy parts which can be split apart and taped back together. Reductively, all computers are like this, but SunOS and other "unixes" are more easily put back together.

For instance, besides enabling DNS, I've extended the libc quite a bit, to get modern OpenSSL and curl to build, as well as KDE 1 just for kicks.

You can do the same with almost any OS (that doesn't lock you out with security), but it feels easier with a "Unix". Linux is also very like this!

> I have a Sparc in my collection but it's running Solaris and too new to run SunOS 4.

You could always run NetBSD and use COMPAT_SUNOS to run a SunOS chroot ;) I haven't tried running Xsun this way but it'd probably go...

Do you blog about any of this? Extending SunOS libc sounds pretty cool!

I did install OpenBSD on the Sparc (Ultra 5) at one point, before going back to an older Solaris. Maybe I'll try NetBSD next!

  • Haha, I haven't yet, but I want to. Maybe soon! Though extending libc isn't that exciting, really: that's kind of the cool (Unix-y??) thing about it. You just (IIRC) extract the static archive, add whatever .o object files with whatever symbols, add the symbols to a manifest, pack it up, and any C program on the system can call it. Since all C functions were implicit at the time (header files only had structs and enums) you can use trivially add whatever.

    > Ultra 5

    You should give it a shot! Even NetBSD/sparc64 has support for SunOS 4 binaries... allegedly.

    If one was so inclined, you can abuse the kernel a bit and tell the compat layers to use root as their search path. I did this to make a "Linux system" with a NetBSD kernel and full GNU/Linux userland, just for kicks.

    In my mind, you could do the same for SunOS. There's also COMPAT_MACH and COMPAT_DARWIN... imagine NeXT/SPARC binary compatibility alongside SunOS.

    Hmmm. :)