List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:September 19 1999 10:47am
Subject:3.23.3 compiling problem with charset czech
View as plain text  
>>>>> "Ondrej" == Ondrej Koala Vacha <koala@stripped> writes:

Ondrej> I have problem with m_ctype.h:

shell> CC=egcs CXX=egcs ./configure --with-charset=czech
shell> make


Ondrej> ....
Ondrej> egcs -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="/usr/local" 
Ondrej> 	-DDATADIR="/usr/local/var" -DSHAREDIR="/usr/local/share/mysql" 
Ondrej> 	-DHAVE_CONFIG_H -I./../include -I./../regex -I. -I../include -I.. -I. -O3 
Ondrej> 	-DDBUG_OFF -fno-implicit-templates -c opt_range.cc
Ondrej> ../include/m_ctype.h: In function `class SEL_ARG * get_mm_leaf(class Field *, 
Ondrej> struct st_key_part *, enum Item_func::Functype, class Item *)':
Ondrej> ../include/m_ctype.h:193: too many arguments to function `my_like_range(const
> char *, unsigned int, char, unsigned int, char *, char *)'
Ondrej> opt_range.cc:941: at this point in file
Ondrej> ))

Ondrej> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/specs
Ondrej> gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)

Ondrej> With charset=latin1 (default) is all OK.

Hi!

Unfortunately the prototype for my_like_range in include/m_ctype.h was 
wrong in 3.23.3.

Fix:

Change in include/m_ctype.h

extern my_bool my_like_range(const char *ptr,uint ptr_length,pchar escape,
                             uint res_length, char *min_str,char *max_str);

to

extern my_bool my_like_range(const char *ptr,uint ptr_length,pchar escape,
                             uint res_length, char *min_str,char *max_str,
                             uint *min_length,uint *max_length);

Regards,
Monty
Thread
3.23.3 compiling problem with charset czechOndrej Koala Vacha18 Sep
  • 3.23.3 compiling problem with charset czechMichael Widenius19 Sep