It would be quite a bit easier to help you if you included the actual
error messages :)
My initial guess would be that you're trying to compile the libc5 version
on a glibc system. In that case, search for (and download) the
glibc-version of the source code.
--Magne / la1bfa