Bug #16188 5.1 fails to build sql_class.cc:1994: error: thdT was not declared
Submitted: 4 Jan 2006 14:55 Modified: 4 Jan 2006 21:18
Reporter: Jonathan Miller Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5..1 OS:Linux (Linux)
Assigned to: Lars Thalmann CPU Architecture:Any

[4 Jan 2006 14:55] Jonathan Miller
Description:
using compile-pent-max

sql_class.cc: In member function â?~void THD::reset_sub_statement_state(Sub_statement_state*, uint)â?T:
sql_class.cc:1994: error: â?~thdâ?T was not declared in this scope
if gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/s
hare/mysql\"" -DLIBDIR="\"/usr/local/mysql/lib/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../regex -I.      -DDB
UG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strin
gs -Wunused -mtune=athlon -march=athlon -O3 -fno-omit-frame-pointer  -g   -MT sql_state.o -MD -MP -MF ".deps/sql_state.Tpo" -c -o sql_s
tate.o sql_state.c; \
then mv -f ".deps/sql_state.Tpo" ".deps/sql_state.Po"; else rm -f ".deps/sql_state.Tpo"; exit 1; fi
gmake[4]: *** [sql_class.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
field.cc: In function â?~Field* make_field(TABLE_SHARE*, char*, uint32, uchar*, uchar, uint, enum_field_types, CHARSET_INFO*, Field::ge
ometry_type, Field::utype, TYPELIB*, const char*)â?T:
field.cc:8797: warning: â?~bit_offsetâ?T may be used uninitialized in this function
field.cc:8796: warning: â?~bit_ptrâ?T may be used uninitialized in this function
field.cc: In member function â?~virtual int Field_decimal::store(const char*, uint, CHARSET_INFO*)â?T:
field.cc:1758: warning: â?~int_digits_tail_fromâ?T may be used uninitialized in this function
field.cc:1760: warning: â?~int_digits_added_zerosâ?T may be used uninitialized in this function
field.cc:1765: warning: â?~frac_digits_head_endâ?T may be used uninitialized in this function
field.cc:1767: warning: â?~frac_digits_added_zerosâ?T may be used uninitialized in this function
gmake[4]: Leaving directory `/home/ndbdev/jmiller/clones/5.1-new2/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/ndbdev/jmiller/clones/5.1-new2/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/ndbdev/jmiller/clones/5.1-new2/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/ndbdev/jmiller/clones/5.1-new2'
gmake: *** [all] Error 2

ndbdev@ndb08:~/jmiller/junk>

How to repeat:
see above
[4 Jan 2006 15:09] Valeriy Kravchuk
What exact changeset you tried to build? I was able to build 5.1-BK (ChangeSet@1.2029, 2006-01-04 10:36:54+01:00, knielsen@mysql.com
) on SuSE 9.3 successfully today with the following commands:

BUILD/autorun.sh
./configure --prefix=/home/openxs/dbs/5.1 --with-extra-charsets=all --with-readline --with-archive --with-ndbcluster --with-innodb
make
make install
[4 Jan 2006 15:25] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/615
[4 Jan 2006 15:36] Lars Thalmann
Pushed.  Did not affect any official release.
No documentation needed.
[4 Jan 2006 21:18] Mike Hillyer
Closing from documenting status as it states no documenting required.