Hello!

I'm building my own LFS distribution and I get stuck at binutils compilation.
I typed: CC="gcc -B/usr/bin/" ../binutils-2.18/configure --prefix=/tools --disable-nls --disable-werror

and everything seems to be OK, but when I typed make command I'm getting such error:

make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
if [ x"" != x ]; then \
gcc -B/usr/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.18/libiberty/../include -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../../binutils-2.18/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -B/usr/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.18/libiberty/../include -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../../binutils-2.18/libiberty/cplus-dem.c -o cplus-dem.o
../../binutils-2.18/libiberty/cplus-dem.c:55: warning: function declaration isn't a prototype
../../binutils-2.18/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
../../binutils-2.18/libiberty/cplus-dem.c:56: warning: function declaration isn't a prototype
../../binutils-2.18/libiberty/cplus-dem.c: In function 'code_for_qualifier':
../../binutils-2.18/libiberty/cplus-dem.c:582: warning: implicit declaration of function 'abort'
../../binutils-2.18/libiberty/cplus-dem.c:582: warning: incompatible implicit declaration of built-in function 'abort'
../../binutils-2.18/libiberty/cplus-dem.c: In function 'qualifier_string':
../../binutils-2.18/libiberty/cplus-dem.c:622: warning: incompatible implicit declaration of built-in function 'abort'
../../binutils-2.18/libiberty/cplus-dem.c: In function 'squangle_mop_up':
../../binutils-2.18/libiberty/cplus-dem.c:1082: warning: implicit declaration of function 'free'
../../binutils-2.18/libiberty/cplus-dem.c: In function 'demangle_qualified':
../../binutils-2.18/libiberty/cplus-dem.c:3177: warning: implicit declaration of function 'atoi'
make[2]: *** [cplus-dem.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2

Could someone look at this and tell me what is this error about, I tryed almost evertyhing and I can't get rid of it.

Thanks for all replays.