Looks like you can't even compile zlib.
You might try downloading zlib and compiling it to check whether that
works at all.
for some reason I don't got your reply but I read it throught the web
interface.
I think the real error is
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from ../../../zlib/zutil.h:38,
from ../../../zlib/crc32.c
I tried to follow the instructions as closely as possible and get
[...]
This doesn't show the real error, it should be somewhere above in the log.
I tried to follow the instructions as closely as possible and get
ar rc ./libiberty.a \
./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o
./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatforma