Bug #22378 Make error, strings/ctype-utf8.c, uni_plane undeclared
Submitted: 15 Sep 2006 6:04 Modified: 3 Apr 2007 22:49
Reporter: Sean Pringle Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.24a OS:Linux (Linux)
Assigned to: Alexander Barkov CPU Architecture:Any
Tags: bfsm_2007_04_05

[15 Sep 2006 6:04] Sean Pringle
Description:
Received an error during the 5.0.24a make process after configuring with --with-collation=utf8_general_cs:

ctype-utf8.c: In function ‘my_strnncoll_utf8_cs’:
ctype-utf8.c:2660: error: ‘uni_plane’ undeclared (first use in this function)
ctype-utf8.c:2660: error: (Each undeclared identifier is reported only once
ctype-utf8.c:2660: error: for each function it appears in.)
ctype-utf8.c: In function ‘my_strnncollsp_utf8_cs’:
ctype-utf8.c:2702: error: ‘uni_plane’ undeclared (first use in this function)
ctype-utf8.c: At top level:
ctype-utf8.c:2750: warning: initialization from incompatible pointer type
ctype-utf8.c:2752: warning: initialization from incompatible pointer type
ctype-utf8.c:2753: warning: initialization from incompatible pointer type
ctype-utf8.c:2754: warning: initialization from incompatible pointer type
ctype-utf8.c:2755: warning: initialization from incompatible pointer type
ctype-utf8.c:2756: warning: initialization from incompatible pointer type
ctype-utf8.c:2758: warning: initialization from incompatible pointer type
make[2]: *** [ctype-utf8.o] Error 1
make[2]: Leaving directory `/home/sean/mysql/src/mysql-5.0.22/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sean/mysql/src/mysql-5.0.22'
make: *** [all] Error 2

This is repeatable at least on 5.0.22, 21, 18.

The problem is not encountered on 4.1.21.

How to repeat:
./configure --with-charset=utf8 --with-collation=utf8_general_cs
make

Suggested fix:
Functions "my_strnncoll_utf8_cs" and "my_strncollsp_utf8_cs" appear to be missing a declaration:

MY_UNICASE_INFO **uni_plane= cs->caseinfo;
[15 Sep 2006 6:39] Alexander Barkov
Affected versions: 4.1, 5.0, 5.1
[15 Sep 2006 6:52] Alexander Barkov
Sorry for a mistake:

Affected version: 5.0 and 5.1

4.1 is not affected.
[27 Mar 2007 10:10] 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/22992
[29 Mar 2007 5:21] Alexander Barkov
Pushed into 5.0.38
Pushed into 5.1.17
[29 Mar 2007 7:09] Joerg Bruehe
Those version numbers can't be right, because 
5.0.38 is finished already and
5.1.17 is currently being built.

So assuming the team tree will be merged in time, it will be versions 5.0.40 and 5.1.18.
[29 Mar 2007 7:16] Alexander Barkov
Joerg, I copied the version number from configure.in
[31 Mar 2007 23:53] Bugs System
Pushed into 5.0.40
[31 Mar 2007 23:55] Bugs System
Pushed into 5.1.18-beta
[3 Apr 2007 22:49] Paul DuBois
No changelog entry needed.
[8 Oct 2007 3:57] Alexander Barkov
See also:

http://bugs.mysql.com/bug.php?id=28468