[Clfs-support] error in cross binutils
Reimundo Heluani
rheluani at gmail.com
Sun Oct 11 20:22:46 PDT 2009
On Sun, 2009-10-11 at 19:59 -0700, Reimundo Heluani wrote:
> Hi there, trying to compile binutils in chapter 5.12 of
> SVN-20091010-x86_64-Multilib make fails with
>
> ...
> ...
> ar.o: In function `main':
> /media/clfs/sources/binutils-build/binutils/../../binutils-2.19.51/binutils/ar.c:370: multiple definition of `main'
> arlex.o:/media/clfs/sources/binutils-build/binutils/arlex.c:1: first
> defined here
> arparse.o: In function `printf':
> /usr/include/bits/stdio2.h:105 undefined reference to `linenumber'
> arparse.o: In function `yyparse':
> /media/clfs/sources/binutils-build/binutils/arparse.c:1365 undefined
> reference to `yylex'
> arparse.o: In function `printf':
> /usr/include/bits/stdio2.h:105 undefined reference to `linenumber'
> /usr/include/bits/stdio2.h:105 undefined reference to `linenumber'
> collect2:ld returned 1 exit status
> make[4]: *** [ar] Error 1
> make[4]: Leaving directory `/media/clfs/sources/binutils-build/binutils'
> ...
> ...
I read in an old LFS thread that it could be lack of Flex in the host
http://www.linuxfromscratch.org/pipermail/lfs-support/2005-October/028633.html
Flex is not listed in the book as a requirement, but I'll try adding it
(it's a pain as I need to remaster a DVD each time I need to add
something to this host).
Cheers,
R.
>
> Any idea?
>
> Thanks
>
> R.
>
>
More information about the Clfs-support
mailing list