Opened 20 years ago

Closed 20 years ago

#871 closed defect (invalid)

Flex-2.5.31 with flex-2.5.31-debian_fixes-2.patch applied is unbuildable

Reported by: kredba@… Owned by: lfs-book@…
Priority: lowest Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

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"

Change History (4)

comment:1 by Matthew Burgess, 20 years ago

This would appear to point to gettext not being installed in the /tools directory. Do you still have that directory around by any chance, so you can confirm or deny that the chapter 5 install of gettext was successful?

comment:2 by kredba@…, 20 years ago

I did rm -rf to /lfs/build/gettext* .

Gettext was succesfuly installed by make install as I remeber.

There is /lfs/tools/bin/gettext,gettext.sh,gettextsize,xgettext and many msg* files. There is /lfs/tools/include/gettext-po.h. There are /lfs/tools/lib/libgettextlib-0.14.1.so,libgettextsrc-0.14.1.so and some symlinks. There are /lfs/tools/share/gettext directory with three subdirs and files.

But U are right, flex configure saw gettext but gcc can`t find declaration.

I`ll do full rebuild and do report if I can or cannot reproduce it.

comment:3 by kredba@…, 20 years ago

Close this "bug" please. I can`t confirm it.

Build of the flex on fresh chapter 5 is OK now.

Thanks

comment:4 by jim@…, 20 years ago

Resolution: invalid
Status: newclosed

Unable to confirm. Closing as invalid

Note: See TracTickets for help on using tickets.