List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:September 24 1999 9:21am
Subject:error on with-charset=big5
View as plain text  
Hi!

Geocrawler> Hi All

Geocrawler> I've got an error when I compile mysql-3.22.26a with --with-charset=big5,
Geocrawler> I've already change the file m_ctype.h
Geocrawler> from
Geocrawler> -----------------------------------------------
Geocrawler> extern my_bool my_like_range(const char *ptr,
Geocrawler> 			     uint ptr_length,
Geocrawler> 			     pchar escape,
Geocrawler> 			     uint res_length,
Geocrawler> 			     char *min_str,
Geocrawler> 			     char *max_str);
Geocrawler> ------------------------------------------------
Geocrawler> to
Geocrawler> ------------------------------------------------
Geocrawler> extern my_bool my_like_range(const char *ptr,
Geocrawler> 			     uint ptr_length,
Geocrawler> 			     pchar escape,
Geocrawler> 			     uint res_length,
Geocrawler> 	 		     char *min_str,
Geocrawler> 			     char *max_str,
Geocrawler> 			     uint *min_length,
Geocrawler> 			     uint *max_length);
Geocrawler> -----------------------------------------------
Geocrawler> but when I make, it retrun these 
Geocrawler> --------------------------------
Geocrawler> c++ -DMYSQL_SERVER                      -DDEFAULT_MYSQL_HOME=""/usr/local""
>                   -DDATADIR=""/usr/local/var""                       
> -DSHAREDIR=""/usr/local/share/mysql""                         -DHAVE_CONFIG_H
> -I./../include                        -I./../regex                    -I. -I../include
> -I.. -I.    -O   -fno-implicit-templates -DDBUG_OFF -D_FILE_OFFSET_BITS=64 -c
> opt_range.cc
Geocrawler> opt_range.cc: In function `class SEL_ARG * get_mm_leaf(struct PARAM *,
> class Field *, struct KEY_PART *, enum
Geocrawler> Item_func::Functype, class Item *, enum Item_result)':
Geocrawler> opt_range.cc:846: `min_length' undeclared (first use this function)
Geocrawler> opt_range.cc:846: (Each undeclared identifier is reported only once
Geocrawler> opt_range.cc:846: for each function it appears in.)
Geocrawler> opt_range.cc:846: `max_length' undeclared (first use this function)
Geocrawler> make[3]: *** [opt_range.o] Error 1
Geocrawler> make[3]: Leaving directory `/usr/local/src/mysql-3.22.26a/sql'
Geocrawler> make[2]: *** [all-recursive] Error 1
Geocrawler> make[2]: Leaving directory `/usr/local/src/mysql-3.22.26a/sql'
Geocrawler> make[1]: *** [all-recursive] Error 1
Geocrawler> make[1]: Leaving directory `/usr/local/src/mysql-3.22.26a'
Geocrawler> make: *** [all-recursive-am] Error 2
Geocrawler> -------------------------------------
Geocrawler> sound like there were some variables undeclared

Try this fix:

(/my/monty/sql-3.22) diff -c /my/monty/master/mysql-3.22.26a/sql/opt_range.cc .
*** /my/monty/master/mysql-3.22.26a/sql/opt_range.cc    Sat Aug 28 15:10:45 1999
--- ./opt_range.cc      Fri Sep 24 11:57:55 1999
***************
*** 840,849 ****
        like_error=like_range(res->ptr(),res->length(),wild_prefix,field_length,
                            min_str,max_str,max_sort_char);
  #else
!     uint min_length,max_length;
!     like_error= my_like_range(res->ptr(),res->length(),wild_prefix,
!                             field_length, min_str, max_str,
!                             &min_length,&max_length);
  #endif
      if (like_error)                           // Can't optimize with LIKE
        DBUG_RETURN(0);
--- 840,851 ----
        like_error=like_range(res->ptr(),res->length(),wild_prefix,field_length,
                            min_str,max_str,max_sort_char);
  #else
!     {
!       uint min_length,max_length;
!       like_error= my_like_range(res->ptr(),res->length(),wild_prefix,
!                               field_length, min_str, max_str,
!                               &min_length,&max_length);
!     }
  #endif
      if (like_error)                           // Can't optimize with LIKE
        DBUG_RETURN(0);

Regards,
Monty
Thread
error on with-charset=big5Geocrawler.com24 Sep
  • error on with-charset=big5Michael Widenius24 Sep