flex
A tool to generate fast lexical analyzers
Compilation
Needs gnu m4.
Apparently aliasing doesn't work,
so gnu m4 has to appear in the command path before the native m4.
Needs further texinfo,
which in turn needs TeX
to produce a documentation PDF.
The configure
also seems to look for
bison
,
existing versions of flex
and
g++
,
so it might be advisable to either exclude them from the
command path or ensure reasonably recent versions are accessed.
V2.5.3x
AIX
There's an ugly bug in config.h
and/or lib/realloc.c
causing the freshly built flex
to coredump. In lib/realloc.c
disable the (superfluous)
malloc
/realloc
redefinitions:
# <config.h>
# malloc
#undef malloc
#endif
# realloc
#undef realloc
#endif
Then:
# AIX 5.2; C 6
./configure --prefix=/tmp/flex-2.5.37 YACC=yacc CC=cc CFLAGS="-O2 -D_LARGE_FILES -qcpluscmt -qlanglvl=stdc99"
# AIX 5.3/6.1/7.1; C 12.1/9.0/12.1
./configure --prefix=/tmp/flex-2.5.37 YACC=yacc CC=cc CFLAGS="-O2 -D_LARGE_FILES -qcpluscmt"
make
make install
Installation/Configuration
Last updated: Tue Mar 25 15:18:46 CET 2014
, M.Kraemer
Impressum Data privacy protection