Bug #52919 library/sql-parser/include/myx_sql_tree_item.h needs stdarg.h
Submitted: 17 Apr 2010 17:45 Modified: 26 Apr 2010 10:14
Reporter: Twang Li Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.18 OS:Other (NetBSD)
Assigned to: Sergei Tkachenko CPU Architecture:Any
Tags: build, C++, contributions

[17 Apr 2010 17:45] Twang Li
Description:
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../.. -I../include -I../../../mo
dules/db.mysql.sqlparser/src -I./linux -I/usr/pkgsrc/wip/mysql-workbench/work/.b
uildlink/include/mysql -DUSE_OLD_FUNCTIONS -I/usr/pkgsrc/wip/mysql-workbench/wor
k/.buildlink/include -I/usr/pkgsrc/wip/mysql-workbench/work/.buildlink/include/n
curses -Dunix -pthread -I/usr/pkgsrc/wip/mysql-workbench/work/.buildlink/include
/glib/glib-2.0 -I/usr/pkgsrc/wip/mysql-workbench/work/.buildlink/lib/glib-2.0/in
clude -I/usr/pkgsrc/wip/mysql-workbench/work/.buildlink/include/libxml2 -I/usr/p
kgsrc/wip/mysql-workbench/work/.buildlink/include/freetype2 -I/usr/pkgsrc/wip/my
sql-workbench/work/.buildlink/include/python2.5 -O2 -Wextra -Wall -Wno-unused -W
no-deprecated -Wno-unknown-pragmas -O2 -Wextra -Wall -Wno-unused -Wno-deprecated
 -c myx_lex_helpers.cpp  -fPIC -DPIC -o .libs/myx_lex_helpers.o
../include/myx_sql_tree_item.h:88: error: 'va_list' has not been declared
../include/myx_sql_tree_item.h:89: error: 'va_list' has not been declared
../include/myx_sql_tree_item.h:116: error: 'va_list' has not been declared
gmake[4]: *** [myx_lex_helpers.lo] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/wip/mysql-workbench/work/mysql-workbenc
h-oss-5.2.18/library/sql-parser/source'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/wip/mysql-workbench/work/mysql-workbenc
h-oss-5.2.18/library/sql-parser'
gmake[2]: *** [all-recursive] Error 1

How to repeat:
bmake

Suggested fix:
Add:

#include <stdarg.h>

to:

library/sql-parser/include/myx_sql_tree_item.h  

I didn“t write a patch for this, because i was unsure of the order of (or your practice of ordering) included libraries in files. I added this after stdlib.h and the build continued.
[24 Apr 2010 0:22] Johannes Taxacher
fix confirmed in repository
[26 Apr 2010 10:14] Tony Bedford
An entry has been added to the 5.2.20 changelog:

MySQL Workbench failed to compile. This was due to a missing #include <stdarg.h> statement in the file library/sql-parser/include/myx_sql_tree_item.h.