Ok, this is just a bit of a fun exercise, but it can\'t be too hard compiling programmes for some older linux systems, or can it?
I have access to a couple of ancient sy
The reason you can't compile it on the original system likely has nothing to do with kernel version (it could, but 2.2 isn't generally old enough for that to be a stumbling block for most code). The problem is that the toolchain is ancient (at the very least, the compiler). However, nothing stops you from building a newer version of G++ with the egcs
that is installed. You may also encounter problems with glibc
once you've done that, but you should at least get that far.
What you should do will look something like this:
egcs
gcc
you just builtld
with your new compilerNow you have a well-built modern compiler and (most of a) toolchain with which to build your sample application. If luck is not on your side you may also need to build a newer version of glibc
, but this is your problem - the toolchain - not the kernel.