Bug #11579 Can't compile 4.1bk
Submitted: 25 Jun 2005 22:04 Modified: 12 Jul 2005 1:08
Reporter: Jorge del Conde Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1 OS:Linux (linux)
Assigned to: Brian Aker CPU Architecture:Any

[25 Jun 2005 22:04] Jorge del Conde
Description:
I got the following error when compiling 4.1bk in FC4 (gcc4):

handler.h:483: warning: minimum/maximum operators are deprecated
item_sum.h: In member function ‘virtual void Item_sum_avg::fix_length_and_dec()’:
item_sum.h:283: warning: minimum/maximum operators are deprecated
item_sum.h: In member function ‘virtual void Item_sum_variance::fix_length_and_dec()’:
item_sum.h:342: warning: minimum/maximum operators are deprecated
opt_range.cc: In function ‘SEL_TREE* get_mm_parts(PARAM*, COND*, Field*, Item_func::Functype, Item*, Item_result)’:
opt_range.cc:986: error: expected ‘;’ before ‘tree’
opt_range.cc: In function ‘ha_rows check_quick_keys(PARAM*, uint, SEL_ARG*, char*, uint, char*, uint)’:
opt_range.cc:2305: warning: minimum/maximum operators are deprecated
make[4]: *** [opt_range.o] Error 1
make[4]: Leaving directory `/my/mysql-4.1/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/my/mysql-4.1/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/my/mysql-4.1/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/my/mysql-4.1'
make: *** [all] Error 2
jorge@laptop-/my/mysql-4.1/>              

NOTE: 5.0bk compiled without problems!

How to repeat:
compile 4.1bk in FC4.
[12 Jul 2005 1:08] Brian Aker
Warnings fixed in 1.2338, the error message is gone (must have been cleaned up by someone else).