Bug #25075 sql_class.cc doesn't compile with --without-query-cache
Submitted: 14 Dec 2006 14:59 Modified: 9 Mar 2007 7:23
Reporter: Robert Schwebel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.1.14-beta, 5.1bk, 5.0bk OS:Linux (Linux)
Assigned to: Timothy Smith CPU Architecture:Any

[14 Dec 2006 14:59] Robert Schwebel
Description:
When configured without query cache, mysql doesn't compile any more.

How to repeat:
./configure --without-query-cache && make

[...]

sql_class.cc: In constructor 'THD::THD()':
sql_class.cc:265: error: 'query_cache_init_query' was not declared in this scope
make[5]: *** [sql_class.o] Error 1
[14 Dec 2006 16:44] Hartmut Holzgraefe
verified with latest 5.1bk source
[14 Dec 2006 17:09] 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/16969

ChangeSet@1.2359, 2006-12-14 18:06:48+01:00, hartmut@mysql.com +1 -0
  Don't init query cache if its not compiled in (Bug #25075)
[14 Dec 2006 18:12] Hartmut Holzgraefe
same problem in 5.0
[6 Mar 2007 21:56] 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/21305

ChangeSet@1.2458, 2007-03-06 14:55:52-07:00, tsmith@siva.hindu.god +1 -0
  Bug #25075: sql_class.cc doesn't compile with --without-query-cache
  
  Wrap query_cache_init_query() call with #ifdef HAVE_QUERY_CACHE in THD::THD()
[9 Mar 2007 7:23] Jon Stephens
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 bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Documented bugfic in 5.0.38 and 5.1.17 changelogs.