Bug #18718 myx_grt_mysql_reveng_script.c myx_sql_parser_public_interface.h compile failure
Submitted: 2 Apr 2006 19:46 Modified: 6 Apr 2006 0:35
Reporter: John Yodsnukis (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:1.0.5beta svn revision 1223 OS:Linux (Linux (Gentoo on PPC))
Assigned to: CPU Architecture:Any

[2 Apr 2006 19:46] John Yodsnukis
Description:
make[3]: Entering directory `/home/zero/wb/wb-1.0.5-beta/mysql-gui-common/library_grt_modules/source'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../library_grt/include -I../../library_grt_modules/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../library_util/include -I../../library_util/shared_include -I../../library/include -I../../library_sql_parser/include -I/usr/include/mysql -fomit-frame-pointer -mcpu=750 -mtune=750 -mpowerpc-gfxopt -mmultiple -mstring -pipe -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/python2.4  -DENABLE_LUA_MODULES -DENABLE_PYTHON_MODULES    -Wno-switch -O3 -fomit-frame-pointer -mcpu=750 -mtune=750 -mpowerpc-gfxopt -mmultiple -mstring -pipe -MT myx_grt_mysql_reveng_script.o -MD -MP -MF ".deps/myx_grt_mysql_reveng_script.Tpo" -c -o myx_grt_mysql_reveng_script.o myx_grt_mysql_reveng_script.c; \
then mv -f ".deps/myx_grt_mysql_reveng_script.Tpo" ".deps/myx_grt_mysql_reveng_script.Po"; else rm -f ".deps/myx_grt_mysql_reveng_script.Tpo"; exit 1; fi
In file included from myx_grt_mysql_reveng_script.c:23:
../../library_sql_parser/include/myx_sql_parser_public_interface.h:86: error: syntax error before ':' token
In file included from myx_grt_mysql_reveng_script.c:24:
../../library_grt_modules/include/myx_grt_mysql_reveng_script_helper.h:39:50: warning: no newline at end of file
myx_grt_mysql_reveng_script.c:130:2: warning: no newline at end of file
make[3]: *** [myx_grt_mysql_reveng_script.o] Error 1

How to repeat:
svn checkout --revision 1223 http://svn.mysql.com/svnpublic/mysql-gui-common
cd ./mysql-gui-common
sh autogen.sh --enable-grt --enable-canvas --disable-java-modules
make

Suggested fix:
Index: library_sql_parser/include/myx_sql_parser_public_interface.h
===================================================================
--- library_sql_parser/include/myx_sql_parser_public_interface.h (revision 1223)
+++ library_sql_parser/include/myx_sql_parser_public_interface.h (working copy)
@@ -83,7 +83,6 @@
void *user_data,
int mode);

-MYX_PUBLIC_FUNC void myx_set_parser_input(std::istream *sqlstream);
MYX_PUBLIC_FUNC void myx_set_parser_source(const char *sql);
MYX_PUBLIC_FUNC void myx_free_parser_source();
MYX_PUBLIC_FUNC void myx_parse();
@@ -92,6 +91,7 @@
#ifdef __cplusplus
}

+MYX_PUBLIC_FUNC void myx_set_parser_input(std::istream *sqlstream);
MYX_PUBLIC_FUNC void myx_set_parser_source(std::istream *sql);

#endif /* __cplusplus */
[6 Apr 2006 0:35] John Yodsnukis
Problem corrected in SVN revision 1228.  Thanks.