Bug #27519 Syntax error when running configure of mysql-gui-common
Submitted: 29 Mar 2007 11:18 Modified: 8 Jul 2009 11:34
Reporter: jkj jkj Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL GUI Common Severity:S3 (Non-critical)
Version:5.0.r12, 5.0r11 OS:Linux (openSUSE 10.2)
Assigned to: CPU Architecture:Any
Tags: Contribution

[29 Mar 2007 11:18] jkj jkj
Description:
When running configure I get:

checking for pcre-config... yes
checking for pcre-config... -L/usr/lib64 -lpcre
checking for unicode support in pcre... ./configure: line 23529: syntax error near unexpected token `}'
./configure: line 23529: `echo "${ECHO_T}yes" >&6; }'

How to repeat:
./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib64 --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-canvas --enable-grt

Suggested fix:
--- mysql-gui-common/configure.in
+++ mysql-gui-common/configure.in
@@ -337,10 +337,10 @@
   if (pcre_compile("(?:\\\\pL(?:\\\\pL|\\\\pN|\\\\pM|\\\\p{Pc}|\\\\p{Pd}|\\\\pS}|_)*)", PCRE_UTF8, &err, &o, NULL))
     return 0;
   return 1;
-])], [HAVE_UNICODE_PCRE=1 AC_MSG_RESULT(yes)], [HAVE_UNICODE_PCRE=0 AC_MSG_RESULT(no)])
+])], [HAVE_UNICODE_PCRE=1; AC_MSG_RESULT(yes)], [HAVE_UNICODE_PCRE=0; AC_MSG_RESULT(no)])
 CPPFLAGS=$ac_savecpp
 LIBS=$ac_savelibs
-AC_DEFINE(HAVE_UNICODE_PCRE, [], [whether pcre was compiled with unicode properties support])
+AC_DEFINE_UNQUOTED(HAVE_UNICODE_PCRE, $HAVE_UNICODE_PCRE, [whether pcre was compiled with unicode properties support])

 # path mangling
[29 Mar 2007 11:20] jkj jkj
The same as I pasted directly into "Suggested fix" section

Attachment: mysql-gui-common-build.patch (text/x-patch), 693 bytes.

[10 Apr 2007 12:21] Valeriy Kravchuk
Thank you for a problem report and a patch. Please, check with a newer version, 5.0r11, and inform about the results.
[11 Apr 2007 9:05] jkj jkj
Version 5.0r11 was not fixed. The problem remains the same.
[17 May 2007 9:15] jkj jkj
Still not fixed in version 5.0r12.
[8 Jul 2009 11:34] Susanne Ebrecht
Many thanks for writing a bug report. We are on the way to implement full functionality of MySQL GUI Tools into MySQL Workbench. Unfortunately you are using an unsupported platform. More informations about supported platforms you will find here:

http://www.mysql.com/support/supportedplatforms/tools.html

More informations about MySQL Workbench you will find here:

http://dev.mysql.com/workbench/