Bug #50304 next-4284 fails to build on fedora12 / gcc4.4.2
Submitted: 13 Jan 2010 12:04 Modified: 18 Feb 2010 7:53
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Linux
Assigned to: CPU Architecture:Any

[13 Jan 2010 12:04] Tor Didriksen
Description:
I'm getting errors when compiling error messages

../extra/comp_err \
    --charset=../sql/share/charsets \
    --out-dir=../sql/share/ \
    --header_file=../include/mysqld_error.h \
    --name_file=../include/mysqld_ername.h \
    --state_file=../include/sql_state.h \
    --in_file=../sql/share/errmsg-utf8.txt
Still inside formatspecifier after end of string in'%s: Готов принимать соединения.
Верси�: '%%s'  сокет: '%s'  порт: %"'
comp_err: comp_err.c:681: checksum_format_specifier: Assertion `start==0' failed.
gmake[1]: *** [../include/mysqld_error.h] Aborted (core dumped)
gmake[1]: Leaving directory `/export/home/didrik/mysqldev-wl-4284/next-4284/extra'
gmake: *** [all-recursive] Error 1

../extra/comp_err \
    --charset=../sql/share/charsets \
    --out-dir=../sql/share/ \
    --header_file=../include/mysqld_error.h \
    --name_file=../include/mysqld_ername.h \
    --state_file=../include/sql_state.h \
    --in_file=../sql/share/errmsg-utf8.txt
Wrong formatspecifier of error message string for error 'ER_COLUMNACCESS_DENIED_ERROR' in language 'jpn'
Failed to parse input file ../sql/share/errmsg-utf8.txt
gmake[1]: *** [../include/mysqld_error.h] Error 1
gmake[1]: Leaving directory `/export/home/didrik/mysqldev-wl-4284/next-4284/extra'
gmake: *** [all-recursive] Error 1

How to repeat:
bzr branch bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-next-4284
BUILD/compile-pentium-debug-max

$gcc --version
gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

td136807@atum07 /export/home/didrik/mysqldev-wl-4284/next-4284
$uname -a
Linux atum07 2.6.31.6-166.fc12.x86_64 #1 SMP Wed Dec 9 10:46:22 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

td136807@atum07 /export/home/didrik/mysqldev-wl-4284/next-4284
$cat /etc/fedora-release
Fedora release 12 (Constantine)

Suggested fix:
More backporting needed?

I tried backporting changes to comp_err.cc
but then I got errors while running tests.
[17 Jan 2010 6:37] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior with revision 3052. Which revision do you use?
[18 Jan 2010 7:01] Tor Didriksen
revno: 3049
revision-id: tor.didriksen@sun.com-20100112113255-2hd07faifl255fei
updated to
revno: 3052
revision-id: jon.hauglid@sun.com-20100115114722-q1df7xd2o3fvg0v3

I'm still seeing the same problem.
[17 Feb 2010 21:18] Kal McFate
I also see this problem.

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)

 ./configure --disable-shared --without-embedded-server --with-innodb --with-csv-storage-engine --with-archive-storage-engine --with-blackhole-storage-engine --with-federated-storage-engine --without-bench --with-zlib-dir=bundled --with-big-tables --enable-assembler --enable-local-infile --with-mysqld-user=mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock --with-pic --prefix=/ --with-extra-charsets=complex --prefix=/usr/local/mysql-5.0.84 --enable-thread-safe-client
[18 Feb 2010 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[18 Feb 2010 7:53] Tor Didriksen
This branch is merged into next-mr now, so let's see if that works.
Yes it does. This seems to be the same as
Bug #48864  	MySQL fails to compile on 64 bit Fedora 12
which found its way to next-mr on [16 Dec 2009 9:54] 
Which is after next-4284 forked off I guess.