Bug #39996 5.1 fails to compile on Windows 32-bit with VS2005
Submitted: 13 Oct 2008 13:54 Modified: 15 Oct 2008 0:39
Reporter: Miguel Solorzano
Status: Verified
Category:Server: Compiling Severity:S2 (Serious)
Version:5.1 OS:Microsoft Windows
Assigned to: Joerg Bruehe Target Version:5.1+
Triage: Triaged: D2 (Serious)

[13 Oct 2008 13:54] Miguel Solorzano
Description:
Compiling process fails with the below error message:

Generating sql_yacc.h
bison.exe: option `--defines' doesn't allow an argument
Usage: bison.exe [-dhklntvyV] [-b file-prefix] [-o outfile] [-p name-prefix]
       [--debug] [--defines] [--fixed-output-files] [--no-lines]
       [--verbose] [--version] [--help] [--yacc]
       [--no-parser] [--token-table]
       [--file-prefix=prefix] [--name-prefix=prefix]
       [--output=outfile] grammar-file
Report bugs to bug-bison@gnu.org
Project : error PRJ0019: A tool returned an error code from "Generating sql_yacc.h"
Build log was saved at "file://c:\build\mysql-5.1\sql\mysqld.dir\Debug\BuildLog.htm"
mysqld - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 22 up-to-date, 0 skipped ==========

C:\build\mysql-5.1>bison --version
bison (GNU Bison) 2.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

VS2003 not presents this compile problem.

How to repeat:
see description

Suggested fix:
-