Bug #19153 Mysql 5.1 nightly download not compiling
Submitted: 17 Apr 2006 23:42 Modified: 19 Apr 2006 15:00
Reporter: Ryan Turnbull Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.1 OS:Linux (Slackware 9.1)
Assigned to: CPU Architecture:Any

[17 Apr 2006 23:42] Ryan Turnbull
Description:
With the following packages installed on Slackware 9.1
autoconf-2.59-noarch-1.tgz
automake-1.9.5-noarch-1.tgz
libtool-1.5.20-i486-1.tgz
bison-1.35-i386-1.tgz

(all the correct versions needed)

I'm able to get the source to do everything needed except make completion.... The following occurs following the procedure to do the building of mysql from source.

make[2]: Leaving directory `/usr/local/mysql-5.1/vio'
Making all in sql
make[2]: Entering directory `/usr/local/mysql-5.1/sql'
bison -y -p MYSQL  -d sql_yacc.yy
sql_yacc.yy:1550: type clash (`' `NONE') on default action
sql_yacc.yy:1551: type clash (`' `NONE') on default action
sql_yacc.yy:1552: type clash (`' `NONE') on default action
sql_yacc.yy:1553: type clash (`' `NONE') on default action
sql_yacc.yy:1554: type clash (`' `NONE') on default action
sql_yacc.yy:1555: type clash (`' `NONE') on default action
sql_yacc.yy:1556: type clash (`' `NONE') on default action
sql_yacc.yy:1557: type clash (`' `NONE') on default action
sql_yacc.yy:1558: type clash (`' `NONE') on default action
sql_yacc.yy:1559: type clash (`' `NONE') on default action
sql_yacc.yy:1560: type clash (`' `NONE') on default action
sql_yacc.yy:1561: type clash (`' `NONE') on default action
sql_yacc.yy:1562: type clash (`' `NONE') on default action
sql_yacc.yy:1563: type clash (`' `NONE') on default action
sql_yacc.yy:5655: type clash (`' `NONE') on default action
sql_yacc.yy:5678: type clash (`' `NONE') on default action
sql_yacc.yy:6006: type clash (`' `NONE') on default action
sql_yacc.yy:6006: type clash (`' `NONE') on default action
sql_yacc.yy:6007: type clash (`' `NONE') on default action
sql_yacc.yy:6007: type clash (`' `NONE') on default action
sql_yacc.yy:6009: type clash (`' `NONE') on default action
sql_yacc.yy:9764: type clash (`' `num') on default action
make[2]: *** [sql_yacc.cc] Error 1
make[2]: Leaving directory `/usr/local/mysql-5.1/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.1'
make: *** [all] Error 2

How to repeat:
1) Build a Slackware 9.1 box - full installation.
2) Do upgrade of needed packages.
3) get mysql source nightly download
4) Follow compile procedure

Same result should occur.
[19 Apr 2006 8:57] Valeriy Kravchuk
I've just successfully built 5.1-BK on my SuSE 9.3 with:

automake-1.9.5-3
autoconf-2.59-80
libtool-1.5.14-3
bison-1.875-55

So, please, try to upgrade your bison, build again with latest 5.1-BK sources and inform about the results. How much RAM do you have?
[19 Apr 2006 14:52] Ryan Turnbull
Total memory in the box I'm building mysql 5.1 on is 6GB.

I'm in the process of upgrading bison and I will let you know if it works out.

Thanks
[19 Apr 2006 15:00] Ryan Turnbull
Thank you very much.

I appears that the upgrade of bison worked on the box that I was compiling on as I'm moving further down in the make process. 

For Slackware users make sure your bison package is the latest, which according to the Slackware Package site is bison-2.1-i486-1.

Thanks

Ryan Turnbull