Am having trouble building flex (versions 2.3.34 and 2.3.35) in chapter 5. I get the following errors for both versions;
gcc -g -O2 -o flex ccl.o dfa.o ecs.o scanflags.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o options.o scanopt.o buf.o tables.o tables_shared.o filter.o regex.o /tools/lib/libintl.so /tools/lib/libc.so -Wl,-rpath -Wl,/tools/lib -lm /mnt/hlfs/tools/bin/../lib/gcc/i486-anchor-linux-uclibc/4.1.2/../../../libss p.so: warning: the 'gets' function is dangerous and should not be used. dfa.o: In function `ntod': /mnt/hlfs/sources/flex-2.5.34/dfa.c:715: undefined reference to `rpl_realloc' parse.o: In function `yyparse': /mnt/hlfs/sources/flex-2.5.34/parse.c:1274: undefined reference to `rpl_malloc' scan.o: In function `flex_realloc': /mnt/hlfs/sources/flex-2.5.34/scan.l:1022: undefined reference to `rpl_realloc' scan.o: In function `yyrealloc': /mnt/hlfs/sources/flex-2.5.34/scan.c:5096: undefined reference to `rpl_realloc' scan.o: In function `flex_alloc': /mnt/hlfs/sources/flex-2.5.34/scan.l:1015: undefined reference to `rpl_malloc' scan.o: In function `yyalloc': /mnt/hlfs/sources/flex-2.5.34/scan.c:5084: undefined reference to `rpl_malloc' scanopt.o: In function `scanopt_init': /mnt/hlfs/sources/flex-2.5.34/scanopt.c:170: undefined reference to `rpl_malloc' /mnt/hlfs/sources/flex-2.5.34/scanopt.c:189: undefined reference to `rpl_malloc' scanopt.o: In function `scanopt_usage': /mnt/hlfs/sources/flex-2.5.34/scanopt.c:296: undefined reference to `rpl_malloc' collect2: ld returned 1 exit status make[2]: *** [flex] Error 1 make[2]: Leaving directory `/mnt/hlfs/sources/flex-2.5.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/hlfs/sources/flex-2.5.34' make: *** [all] Error 2 Flex 2.5.33 builds without any errors. Daniel Myth: Knowledge is Power Truth: APPLIED Knowledge is Power -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page