Reimundo Heluani wrote: > On Sun, 2009-10-11 at 20:22 -0700, Reimundo Heluani wrote: > >> 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). >> > > Flex is not needed, but I couldn't compile 2.19.51 hosted by clfs. I > didn't have any problems compiling the latest 2.19.1 from the GNU site > and applying all the upstream patches. I think someone posted a ticket > about this problem on CLFS without any information a couple of weeks > ago. > > You're right, flex is not needed, but Bison and its corresponding development packages are.
_______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
