Bug #1441 compile errors in strings/ctype-mb.c
Submitted: 30 Sep 2003 8:25 Modified: 2 Oct 2003 2:01
Reporter: Lenz Grimmer Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:4.1 OS:IBM AIX (AIX 4.3.3, IRIX 5.5)
Assigned to: Alexander Barkov CPU Architecture:Any

[30 Sep 2003 8:25] Lenz Grimmer
Description:
(Just as a reminder so it gets fixed before we release 4.1.1)

Two compile failures with the current 4.1 tree for non-gcc compilers:

IBM AIX 4.3.3, using IBM Visual Age C++:

[SNIP]
source='ctype-mb.c' object='ctype-mb.lo' libtool=yes \
depfile='.deps/ctype-mb.Plo' tmpdepfile='.deps/ctype-mb.TPlo' \
depmode=aix /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile xlc_r
-DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\""
-DDATADIR="\"/usr/local/mysql/data\""
-DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DDONT_USE_RAID  -I. -I. -I..
-I../include     -O -DDBUG_OFF -ma -O2 -qstrict -qoptimize=2 -qmaxmem=8192
-Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ -c -o ctype-mb.lo
`test -f ctype-mb.c || echo './'`ctype-mb.c
xlc_r -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\"
-DDATADIR=\"/usr/local/mysql/data\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\"
-DDONT_USE_RAID -I. -I. -I.. -I../include -O -DDBUG_OFF -ma -O2 -qstrict
-qoptimize=2 -qmaxmem=8192 -Wa,-many -DUNDEF_HAVE_INITGROUPS
-DSIGNALS_DONT_BREAK_READ -c -M ctype-mb.c
"ctype-mb.c", line 310.23: 1506-068 (S) Operation between types "unsigned int"
and "const char*" is not allowed.
make[2]: *** [ctype-mb.lo] Error 1
make[2]: Leaving directory
`/mysqldev/mysqldev/aix43/mysql-4.1.1-alpha/libmysql_r'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mysqldev/mysqldev/aix43/mysql-4.1.1-alpha'
make: *** [all] Error 2
[SNIP]

SGI IRIX 5.5, using the SGI compiler:

[SNIP]
cc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\"
-DDATADIR=\"/usr/local/mysql/data\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\"
-DDONT_USE_RAID -I. -I. -I.. -I../include -O -DDBUG_OFF -c ctype-mb.c
-Wp,-MDupdate,.deps/ctype-mb.TPlo -o ctype-mb.o
cc-1515 cc: ERROR File = ctype-mb.c, Line = 310
  A value of type "const char *" cannot be assigned to an entity of type
"uint".

            match[0].beg= big0;
                        ^

1 error detected in the compilation of "ctype-mb.c".
gmake[2]: *** [ctype-mb.lo] Error 1
gmake[2]: Leaving directory
`/usr/people/mysqldev/mnemonic/mysql-4.1.1-alpha/libmysql_r'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/people/mysqldev/mnemonic/mysql-4.1.1-alpha'
gmake: *** [all] Error 2
[SNIP]

How to repeat:
Compile the current 4.1 tree on the above mentioned platforms.
[30 Sep 2003 23:34] Alexander Barkov
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 bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[2 Oct 2003 2:01] Alexander Barkov
Boyd, I already fixed this bug. Please pull the latest sources.