Bug #40650 gui tools 5.0r14 compile failure
Submitted: 11 Nov 2008 20:15 Modified: 29 Jan 2018 11:04
Reporter: Mark Johnson (Basic Quality Contributor) Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL GUI Common Severity:S3 (Non-critical)
Version:5.0r14 OS:Linux (Slackware 12.1)
Assigned to: CPU Architecture:Any
Tags: qc

[11 Nov 2008 20:15] Mark Johnson
Description:
OS has Gnome Slackbuild installed as well.

The compile of the gui common portion fails as follows:
 gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../include -I../../../library/utilities/shared_include -I../../../library/utilities/include -I../../../library/sql-parser/include -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -O3 -march=pentium4 -mtune=pentium4 -Wall -Wsign-compare -Wall -Wsign-compare -MT myx_database_model.lo -MD -MP -MF .deps/myx_database_model.Tpo -c myx_database_model.c  -fPIC -DPIC -o .libs/myx_database_model.o
myx_database_model.c:1: error: stray '\357' in program
myx_database_model.c:1: error: stray '\273' in program
myx_database_model.c:1: error: stray '\277' in program

After this, there is a bunch of warnings, and output from make.

Here is the beginning of hexdump -C of the myx_database_model.c:
00000000  ef bb bf 2f 2f 20 43 6f  70 79 72 69 67 68 74 20  |// Copyright |
00000010  28 43 29 20 32 30 30 33  20 2d 20 32 30 30 38 20  |(C) 2003 - 2008 |
00000020  4d 79 53 51 4c 20 41 42  2c 20 32 30 30 38 20 53  |MySQL AB, 2008 S|
00000030  75 6e 20 4d 69 63 72 6f  73 79 73 74 65 6d 73 2c  |un Microsystems,|
00000040  20 49 6e 63 2e 0d 0a 0d  0a 23 69 6e 63 6c 75 64  | Inc.....#includ|
00

You can see there are three non-text characters in the first line.

Output of gcc --version:
gcc (GCC) 4.2.3

How to repeat:
$ ./autogen.sh --prefix=/usr --localstatedir=/var/lib  --enable-grt \
   --enable-canvas \
   --with-lua-includes=/usr/include \
   --with-lua-libs=/usr/lib \
   --with-java-ldflags="-L/usr/lib/jdk1.5.0_03/jre/lib/i386/server/ -ljvm" \
   --with-java-includes="/usr/lib/jdk1.5.0_03/include/"
$ make

Suggested fix:
-Remove non-text characters from source files.
-Check all other source files for non-text characters.
[17 Nov 2008 20:17] Scott Harmon
Remove bad characters

Attachment: bad-char.patch (text/x-patch), 461 bytes.

[15 Jan 2009 10:47] Susanne Ebrecht
Many thanks for writing a bug report and send us a patch. We will check your patch and look what we will be able to do here.
[1 Feb 2009 17:30] Anthony P
I have the same issue; same error.
[29 Jan 2018 11:04] Mike Lischke
Issue has been reported for a product that no longer exists.