Bug #13364 compile fail
Submitted: 21 Sep 2005 2:27 Modified: 24 Sep 2005 10:55
Reporter: Chen Joson Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:mysql-4.1.14 OS:Linux (Red Hat Enterprise Linux AS rele)
Assigned to: CPU Architecture:Any

[21 Sep 2005 2:27] Chen Joson
Description:
 -e 's!@''MACHINE_TYPE''@!i686!' \
  -e 's!@''HOSTNAME''@!/bin/hostname!' \
  -e 's!@''SYSTEM_TYPE''@!pc-linux-gnu!' \
  -e 's!@''CHECK_PID''@!/bin/kill -0 $PID > /dev/null 2> /dev/null!' \
  -e 's!@''FIND_PROC''@!/bin/ps p $PID | grep -v grep | grep mysqld > /dev/null!' \
  -e 's!@''MYSQLD_DEFAULT_SWITCHES''@!--skip-locking!' \
  -e 's!@''MYSQL_UNIX_ADDR''@!/tmp/mysql.sock!' \
  -e 's!@''TARGET_LINUX''@!true!' \
  -e "s!@""CONF_COMMAND""@!./configure '--prefix=/usr/local/mysql' '--enable-assembler' '--with-mysqld-ldflags=-all-static' '--with-client-ldflags=-all-static' '--with-low-memory' '--with-mysqld-user=mysql' '--without-bench' '--with-charset=utf8' '--with-extra-charsets=all' '--with-big-tables' '--without-innodb'!" \
  -e 's!@''MYSQLD_USER''@!mysql!' \
  -e 's!@''sysconfdir''@!/usr/local/mysql/etc!' \
  -e 's!@''SHORT_MYSQL_INTRO''@!@SHORT_MYSQL_INTRO@!' \
  -e 's!@''SHARED_LIB_VERSION''@!14:0:0!' \
  -e 's!@''MYSQL_BASE_VERSION''@!4.1!' \
  -e 's!@''MYSQL_NO_DASH_VERSION''@!4.1.14!' \
  -e 's!@''MYSQL_TCP_PORT''@!3306!' \
  -e 's!@''PERL_DBI_VERSION''@!@PERL_DBI_VERSION@!' \
  -e 's!@''PERL_DBD_VERSION''@!@PERL_DBD_VERSION@!' \
  -e 's!@''PERL_DATA_DUMPER''@!@PERL_DATA_DUMPER@!' \
ndb-config-2-node.ini.sh > ndb-config-2-node.ini-t
/bin/mv ndb-config-2-node.ini-t ndb-config-2-node.ini
make[3]: Leaving directory `/usr/local/mysql-4.1.14/support-files'
make[2]: Leaving directory `/usr/local/mysql-4.1.14/support-files'
make[1]: Leaving directory `/usr/local/mysql-4.1.14'

How to repeat:
CFLAGS="-O3" CC=gcc CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" 

./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-low-memory --with-mysqld-user=mysql --without-bench --with-charset=utf8 --with-extra-charsets=all  --with-big-tables --without-innodb
[24 Sep 2005 10:55] Valeriy Kravchuk
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.mysql.com/documentation/ and the instructions on
how to report a bug at http://bugs.mysql.com/how-to-report.php

Additional info:

Sorry, but you just have to continue installation according to the manual (http://dev.mysql.com/doc/mysql/en/quick-install.html).

I tried to repeat the action you described. I configured fresh 4.1.14 on our RH server:

-bash-2.05b$ cat /etc/issue
Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
Kernel \r on an \m

-bash-2.05b$ uname -a
Linux nocona 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:46:36 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

Then configured it with a similar command:

CFLAGS="-O3" CC=gcc CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/users/vkravchuk/dbs/4.1-nocona --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-low-memory --with-mysqld-user=vkravchuk --without-bench --with-charset=utf8 --with-extra-charsets=all  --with-big-tables --without-innodb 

and just run make. It was finished successfully (use echo $? to check), with the last lines similar to yours:

  -e 's!@''MACHINE_TYPE''@!x86_64!' \
  -e 's!@''HOSTNAME''@!/bin/hostname!' \
  -e 's!@''SYSTEM_TYPE''@!unknown-linux-gnu!' \
  -e 's!@''CHECK_PID''@!/bin/kill -0 $PID > /dev/null 2> /dev/null!' \
  -e 's!@''FIND_PROC''@!/bin/ps p $PID | grep -v grep | grep mysqld > /dev/null!
' \
  -e 's!@''MYSQLD_DEFAULT_SWITCHES''@!--skip-locking!' \
  -e 's!@''MYSQL_UNIX_ADDR''@!/tmp/mysql.sock!' \
  -e 's!@''TARGET_LINUX''@!true!' \
  -e "s!@""CONF_COMMAND""@!./configure '--prefix=/users/vkravchuk/dbs/4.1-nocona
' '--enable-assembler' '--with-mysqld-ldflags=-all-static' '--with-client-ldflag
s=-all-static' '--with-low-memory' '--with-mysqld-user=vkravchuk' '--without-ben
ch' '--with-charset=utf8' '--with-extra-charsets=all' '--with-big-tables' '--wit
hout-innodb' 'CC=gcc' 'CFLAGS=-O3' 'CXXFLAGS=-O3 -felide-constructors -fno-excep
tions -fno-rtti' 'CXX=gcc'!" \
  -e 's!@''MYSQLD_USER''@!vkravchuk!' \
  -e 's!@''sysconfdir''@!/users/vkravchuk/dbs/4.1-nocona/etc!' \
  -e 's!@''SHORT_MYSQL_INTRO''@!@SHORT_MYSQL_INTRO@!' \
  -e 's!@''SHARED_LIB_VERSION''@!14:0:0!' \
  -e 's!@''MYSQL_BASE_VERSION''@!4.1!' \
  -e 's!@''MYSQL_NO_DASH_VERSION''@!4.1.14!' \
  -e 's!@''MYSQL_TCP_PORT''@!3306!' \
  -e 's!@''PERL_DBI_VERSION''@!@PERL_DBI_VERSION@!' \
  -e 's!@''PERL_DBD_VERSION''@!@PERL_DBD_VERSION@!' \
  -e 's!@''PERL_DATA_DUMPER''@!@PERL_DATA_DUMPER@!' \
ndb-config-2-node.ini.sh > ndb-config-2-node.ini-t
/bin/mv ndb-config-2-node.ini-t ndb-config-2-node.ini
make[3]: Leaving directory `/users/vkravchuk/mysql-4.1.14/support-files'
make[2]: Leaving directory `/users/vkravchuk/mysql-4.1.14/support-files'
make[1]: Leaving directory `/users/vkravchuk/mysql-4.1.14'

Than I performed:

make install
cd
cd dbs/4.1-nocona/
bin/mysql_install_db
bin/mysqld_safe --skip-networking &

and got a working copy of Mysql 4.1.14