Bug #45766 Please make ./configure check for a decent lexer
Submitted: 25 Jun 2009 18:12 Modified: 13 Oct 2009 9:27
Reporter: Dennis Kaarsemaker Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Install/Config Severity:S3 (Non-critical)
Version:trunk (0.8) OS:Any
Assigned to: Jan Kneschke CPU Architecture:Any
Triage: Needs Triage: D2 (Serious)

[25 Jun 2009 18:12] Dennis Kaarsemaker
Description:
When flex is not installed, the generated Makefile contains the line:

LEX = :

Causing very confusing errors from ylwrap, extract from make output:

/bin/bash ../ylwrap sql-tokenizer.l .c sql-tokenizer.c -- :  
make[3]: *** [sql-tokenizer.c] Error 1
make[3]: Leaving directory `/home/dennis/mysql-proxy/mysql-proxy/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dennis/mysql-proxy/mysql-proxy/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dennis/mysql-proxy/mysql-proxy'
make: *** [all] Error 2

How to repeat:
bzr checkout lp:mysql-proxy
make sure flex is not installed
./autogen.sh
./configure
make
[puzzling error messages]
[25 Jun 2009 22:20] Sveta Smirnova
Thank you for the report.

Verified as described.
[16 Jul 2009 12:39] Enterprise Tools JIRA Robot
Jan Kneschke writes: 
------------------------------------------------------------
revno: 773
committer: jan@mysql.com
branch nick: trunk
timestamp: Thu 2009-07-16 14:37:13 +0200
message:
  added configure check if flex is really installed (#45766)
[2 Sep 2009 15:47] Enterprise Tools JIRA Robot
Diego Medina writes: 
Verified fixed on 0.8.0

Notes:
If you already have  lib/sql-tokenizer.c in your bzr branch, remove it.
./configure will not catch a missing flex, but make will
[13 Oct 2009 9:27] MC Brown
Internal change; no documentation needed