These links might give you a couple of options to look at...from what I was seeing, it looked like a binary problem or a glibc problem. Have you installed any packages lately on this system? If so, did you install dependencies/source dependencies as well?
I don't have much Mandrake experience, but you may want to upgrade your kernel to 2.4.25. Many issues have been fixed since the 2.4.22 release ranging from driver issues, to exploit fixes. I myself have had issues compiling kernel drivers, and an update to 2.4.25 took care of my build issues. (I was previously using 2.4.22 also, but for slackware) Compiling a kernel can be a bit troublesome the first time, but lots of help and documentation is available for this. Doesn't mandrake even provide an update tool for this?
As a side note, I highly recommend that anyone running a kernel prior to 2.4.25 upgrade soon!