[MDEV-4902] sql_yacc.yy incompatible with bison 3 Created: 2013-08-15  Updated: 2013-08-30  Resolved: 2013-08-30

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.32
Fix Version/s: 5.5.33

Type: Bug Priority: Major
Reporter: Bartłomiej Piotrowski (Inactive) Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None
Environment:

Arch Linux, gcc 4.8.1, bison 3.0


Attachments: Text File mdev4902.patch    

 Description   

As in summary. Build fails due to changes in the newest Bison, i.e.:

/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:32:23: error: 'yythd' was not declared in this scope
#define YYTHD ((THD *)yythd)
^
/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:39:14: note: in expansion of macro 'YYTHD'
#define Lex (YYTHD->lex)
^
/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:15324:23: note: in expansion of macro 'Lex'
LEX *lex= Lex;
^



 Comments   
Comment by Sergey Vojtovich [ 2013-08-29 ]

Sergei, please review attached patch.

Comment by Sergei Golubchik [ 2013-08-29 ]

ok to push. but try it in a stage tree in buildbot, to make sure all bison versions of our builders understand the patch

Comment by Sergey Vojtovich [ 2013-08-30 ]

Pushed to 5.5.33. Revision-id: svoj@mariadb.org-20130830070029-t0atr7z3zohmkoo7

Generated at Thu Feb 08 07:00:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.