parse error in strings/ctype.c (mysql-4.1)

parse error in strings/ctype.c (mysql-4.1)

am 09.12.2002 12:57:25 von Benoit Artuso

Hello,

i got a lot of these errors :
ctype.c:3478: parse error before `my_strntol_8bit'
ctype.c:3479: warning: initialization from incompatible pointer type
ctype.c:3480: warning: initialization from incompatible pointer type
ctype.c:3481: warning: initialization from incompatible pointer type
ctype.c:3483: warning: initialization from incompatible pointer type
ctype.c:3520: warning: initialization from incompatible pointer type
ctype.c:3520: parse error before `my_strntol_8bit'
ctype.c:3521: warning: initialization from incompatible pointer type
ctype.c:3522: warning: initialization from incompatible pointer type
ctype.c:3523: warning: initialization from incompatible pointer type
ctype.c:3525: warning: initialization from incompatible pointer type
ctype.c:3563: warning: initialization from incompatible pointer type
when i try to compile mysql-4.1 (pulled this morning) on my debian woody
(gcc 2.95).

It comes from malformed code like this in strings/ctype.c
"""
my_strcasecmp_8bit,
my_strncasecmp_8bit,
my_hash_caseup_simple,
my_hash_sort_simple,
0,
my_snprintf_8bit
my_strntol_8bit,
my_strntoul_8bit,
"""
(a ',' is missing after my_snprintf_8bit)

Replacing every "my_snprintf_8bit" by "my_snprintf_8bit," does the trick :
vim -c "%s/my_snprintf_8bit$/my_snprintf_8bit,/" -c "wq" strings/ctype.c

Please let know if you need any other details.

How to Repeat:
../configure \
--prefix=/usr \
--exec-prefix=/usr \
--libexecdir=/usr/sbin \
--datadir=/usr/share \
--sysconfdir=/etc/mysql \
--localstatedir=/var/lib/mysql \
--includedir=/usr/include \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--enable-shared \
--with-libwrap \
--enable-assembler \
--with-innodb \
--enable-static \
--enable-shared \
--enable-local-infile \
--with-raid \
--enable-thread-safe-client \
--without-readline \
--with-unix-socket-path=/var/run/mysqld/mysqld.sock \
--with-mysqld-user=mysql \
--without-bench \
--without-docs \
--with-client-ldflags=-lstdc++ \
--with-extra-charsets=all \
make

(if you're wondering, that's the configure line from the 3.23 debian package
i started with).

--
Benoit
I don't care if Ned Flanders is the nicest guy
in the world. He's a jerk -- end of story.
-- Homer Simpson


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13253@lists.mysql.com
To unsubscribe, e-mail