﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
871	Flex-2.5.31 with flex-2.5.31-debian_fixes-2.patch applied is unbuildable	kredba@…	lfs-book@…	"The LFS-BOOK-6.0-testing-200407012-NOCHUNKS.html book instructs in chapter 5 to
apply flex-2.5.31-debian_fixes-2.patch to flex-2.5.31 source tree. The main.c
file is patched too.

./configure is ran with --prefix=/tools and configure assumes, that nls is
requested.

Compilation fails with :


make[2]: Entering directory `/lfs/build/flex-2.5.31'
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DLOCALEDIR=\""/tools/share/locale\""
-I/tools/include -I./intl -MT main.o -MD -MP -MF "".deps/main.Tpo"" \
  -c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv "".deps/main.Tpo"" "".deps/main.Po""; \
else rm -f "".deps/main.Tpo""; exit 1; \
fi
main.c: In function `main':
main.c:201: error: `LC_MESSAGES' undeclared (first use in this function)
main.c:201: error: (Each undeclared identifier is reported only once
main.c:201: error: for each function it appears in.)
main.c:202: error: `LC_CTYPE' undeclared (first use in this function)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/lfs/build/flex-2.5.31'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lfs/build/flex-2.5.31'
make: *** [all] Error 2


If patched source tree is configured with --disable-nls, flex compiles fine.

All packages described before the flex in the book builds fine.

Machine is i686-pc-linux-gnu.

lfs:/lfs/build/flex-2.5.31$ export
declare -x HOME=""/home/lfs""
declare -x LC_ALL=""POSIX""
declare -x LFS=""/lfs""
declare -x OLDPWD=""/lfs/build""
declare -x PATH=""/tools/bin:/bin:/usr/bin""
declare -x PS1=""\\u:\\w\\\$ ""
declare -x PWD=""/lfs/build/flex-2.5.31""
declare -x SHLVL=""1""
declare -x TERM=""xterm"""	defect	closed	lowest		Book	CVS	normal	invalid		
