Bug #3452 Current mysql-4.1 bk tree does not compile on Linux
Submitted: 13 Apr 2004 1:29 Modified: 16 Apr 2004 7:38
Reporter: Sebastian Bergmann Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-4.1.2-bk OS:Linux (Gentoo/Linux 2004.0)
Assigned to: CPU Architecture:Any

[13 Apr 2004 1:29] Sebastian Bergmann
Description:
ccache g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../regex -I.     -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -march=pentium3 -pipe -O3 -fno-omit-frame-pointer  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o sql_base.o `test -f sql_base.cc || echo './'`sql_base.cc
sql_parse.cc: In function `int create_table_precheck(THD*, TABLE_LIST*,
   TABLE_LIST*)':
sql_parse.cc:5227: error: parse error before `}' token
gmake[4]: *** [sql_parse.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
sql_base.cc: In function `void close_temporary_tables(THD*)':
sql_base.cc:483: warning: `char*end' might be used uninitialized in this
   function
set_var.cc: In function `int check_max_delayed_threads(THD*, set_var*)':
set_var.cc:1095: warning: comparison between signed and unsigned integer
   expressions
gmake[4]: Leaving directory `/usr/src/mysql-4.1/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/src/mysql-4.1/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/src/mysql-4.1/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/mysql-4.1'
gmake: *** [all] Error 2

How to repeat:
#! /bin/sh
export WANT_AUTOCONF=2.5
export WANT_AUTOMAKE=1.5

. "BUILD/SETUP.sh"

extra_flags="-march=pentium3 -pipe $fast_cflags"
extra_configs="$pentium_configs $static_link"
strip=yes

. "BUILD/FINISH.sh"
[15 Apr 2004 1:19] Sebastian Bergmann
This issue was resolved by

  ChangeSet
    1.1805 04/04/15 04:55:49 lenz@mysql.com +1 -0
     - Fixed compile error in sql_parse.cc

    sql/sql_parse.cc
      1.342 04/04/15 04:54:56 lenz@mysql.com +1 -1
       - Fixed compile errorw
[16 Apr 2004 7:38] Greg Weir
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html