libkate: Fails to build with latest flex
/bin/bash ../libtool --tag=CC --silent --mode=link gcc -Wall -W -I/home/slomo/Projects/centricular/toolsonair/cerbero/build/dist/linux_x86_64/include/libpng16 -Wall -g -O2 -m64 -Wall -g -O2 -m64 -L/home/slomo/Projects/centricular/toolsonair/cerbero/build/dist/linux_x86_64/lib -m64 -m64 -o kateenc kateenc-kateenc.o kateenc-kate_lexer.o kateenc-kate_parser.o kateenc-kpng.o ../lib/liboggkate.la ../lib/libkate.la -L/home/slomo/Projects/centricular/toolsonair/cerbero/build/dist/linux_x86_64/lib -logg -L/home/slomo/Projects/centricular/toolsonair/cerbero/build/dist/linux_x86_64/lib -lpng16 -lz -lfl
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libfl.so: undefined reference to `yylex'
Reason is (AFAIU) that it tries to link to the shared libfl
but redefines yylex
:
tools/kate_parser.c
68:#define yylex katedesc_lex
Linking to the static version of the library solves this.