Bug #668 cygwin gen_lex_hash Makefile problem
Submitted: 18 Jun 2003 2:33 Modified: 20 Jun 2003 6:36
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.0.13 OS:Windows (winXP, cygwin)
Assigned to: Lenz Grimmer CPU Architecture:Any

[18 Jun 2003 2:33] [ name withheld ]
Description:
Building mysql 4.0.13, submake sql/, making the target lex_hash.h, the Makefile rule says "$(MAKE) gen_lex_hash". This is wrong, it should read "$(MAKE) gen_lex_hash$(EXEEXT)" (there's a rule for gen_lex_hash$(EXEEXT), but not for gen_lex_hash, so gmake will use a default rule and not have the include path set properly etc).

How to repeat:
on cygwin: untar sources, cd mysql-4.0.13; ./configure --without-extra-tools --without-bench --without-docs; cd sql; gmake

Suggested fix:
replace line 849 of sql/Makefile: "$(MAKE) gen_lex_hash"
with: "$(MAKE) gen_lex_hash$(EXEEXT)"
[20 Jun 2003 6:36] Lenz Grimmer
Thank you for your bug report. This issue has been fixed in the latest
development tree for that product. You can find more information about
accessing our development trees at 
    http://www.mysql.com/doc/en/Installing_source_tree.html

Thanks for the hint - this is now fixed in our BK tree and will be part of
the next release:

ChangeSet@1.1535.1.1, 2003-06-20 15:19:51+02:00, lenz@mysql.com
   - added $(EXEEXT) to gen_lex_hash generation/execution to fix a build
     problem on Windows/cygwin (BUG#668)