> errors on Mandriva 2007.1 with gcc 4.1.2. It's missing all sorts
> of includes (unistd.h, stdlib.h) and has some funky extern declarations
afaik, this is only possible if you are somehow missing
some basic package like glibc-headers. (you can find this out
on an rpm system by "rpm -qf /usr/include/stdlib.h".)