Bug #41542 hello() function stress gcc under Ubuntu
Submitted: 17 Dec 2008 12:39 Modified: 17 Dec 2008 12:50
Reporter: Susanne Ebrecht Email Updates:
Status: Closed Impact on me:
Category:MySQL Workbench Severity:S1 (Critical)
Version: OS:Linux (Ubuntu 8.10 amd64)
Assigned to: Alfredo Kojima CPU Architecture:Any

[17 Dec 2008 12:39] Susanne Ebrecht
Download workbench from here:
Ubuntu Sources (tar.gz)

Using the following:
gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2

$ tar xvzf mysql-workbench-5.1.5.tar.gz

$ cd mysql-workbench-5.1.5

$ ./autogen.sh --with-mysql-config=<path>/mysql-config --prefix=<path>

$ make

Ubuntu crashes here when it tries to compile ./backend/workbench/wb_context.cpp

It throws error message about function hello()

All works fine when you put function hello betweeen /* */

The function is not needed for Linux anyway so there is no need to have them in public source code for Linux.

How to repeat:
see above

Suggested fix:
-void hello()
+/*void hello()
   char t[100];
   GTimeVal tv;
@@ -1117,7 +1117,7 @@
[17 Dec 2008 12:50] Alfredo Kojima
OS crash indicated problems elsewhere. However the unneeded hello() function has been deleted.
[17 Dec 2008 13:58] Alfredo Kojima
version 5.1.6 will be hello free