Bug #24402 Build from 5.1.12 source tarball throws error
Submitted: 17 Nov 2006 18:14 Modified: 16 Aug 2008 8:33
Reporter: George Hernando Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.1.12-beta OS:Linux (Fedora 4 Linux)
Assigned to: CPU Architecture:Any
Tags: build, install, tarball

[17 Nov 2006 18:14] George Hernando
Description:
I'm seeing this error on the install/build process.

I took these steps:

cd /usr/local/src
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz/from/http://mysql.bi... 
(Get the Source tarball)
tar -xzvf mysql-5.1.12-beta.tar.gz

yum install gcc.i386
yum install gcc-c++.i386
 
mv mysql-5.1.12-beta ..
cd ..
ln -s /usr/local/mysql-5.1.12-beta mysql
 
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
       -fno-exceptions -fno-rtti" ./configure \
       --prefix=/usr/local/mysql --enable-assembler \
       --with-mysqld-ldflags=-all-static 
 
groupadd mysql
useradd -g mysql mysql
 
make
make install
-------------------------------------------------

At the end of the "make install", I see these errors.
What's this about?  I'm interested in MySQL Cluster and wonder if there may be problems if I attempt to use that functionality.

----------------------------------------------------
...
test -z "/usr/local/mysql/mysql-test/ndb" || mkdir -p -- "/usr/local/mysql/mysql-test/ndb"
 /usr/bin/install -c -m 644 'ndb_config_2_node.ini' '/usr/local/mysql/mysql-test/ndb/ndb_config_2_node.ini'
/usr/bin/install: `ndb_config_2_node.ini' and `/usr/local/mysql/mysql-test/ndb/ndb_config_2_node.ini' are the same file
 /usr/bin/install -c -m 644 'ndb_config_1_node.ini' '/usr/local/mysql/mysql-test/ndb/ndb_config_1_node.ini'
/usr/bin/install: `ndb_config_1_node.ini' and `/usr/local/mysql/mysql-test/ndb/ndb_config_1_node.ini' are the same file
make[4]: *** [install-dist_testDATA] Error 1
make[4]: Leaving directory `/usr/local/mysql-5.1.12-beta/mysql-test/ndb'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/local/mysql-5.1.12-beta/mysql-test/ndb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/mysql-5.1.12-beta/mysql-test'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.1.12-beta'
make: *** [install] Error 2

How to repeat:
See above
[21 Nov 2006 17:15] Valeriy Kravchuk
Thank you for a problem report. Please, specify what exact ./configure command, if any, you had executed before make. Read http://dev.mysql.com/doc/refman/5.0/en/quick-install.html for the details.
[22 Dec 2006 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".
[8 May 2008 8:51] James Pang
I install mysql on a linux (2.6 kernel),following are my install step:
1.
[root@RFDT5 opt]# tar zxvf ./mysql-5.0.51b.tar.gz

2.
[root@RFDT5 opt]# chown -R mysql.mysql ./mysql-5.0.51b

3.
[root@RFDT5 opt]# su - mysql

4.
[mysql@RFDT5 ~]$ cd /opt/mysql-5.0.51b

5.
[mysql@RFDT5 mysql-5.0.51b]$ ./configure --prefix=/opt/mysql-5.0.51b --with-unix-socket-path=/opt/mysql-5.0.51b/tmp/mysql.sock --with-mysqld-user=mysql --enable-large-files  --without-bench --with-mysqld-ldflags=-all-static  --with-big-tables --with-charset=utf8 --with-extra-charsets=latin1,latin2,latin5,latin7,gb2312,gbk --with-ndbcluster --with-ndb-test --with-ndb-docs

6.
[mysql@RFDT5 mysql-5.0.51b]$ make

7.
[mysql@RFDT5 mysql-5.0.51b]$ make install

at last,it show following:

make[4]: Nothing to be done for `install-exec-am'.
test -z "/opt/mysql-5.0.51b/mysql-test/ndb" || mkdir -p -- "/opt/mysql-5.0.51b/mysql-test/ndb"
 /usr/bin/install -c -m 644 'ndb_config_2_node.ini' '/opt/mysql-5.0.51b/mysql-test/ndb/ndb_config_2_node.ini'
/usr/bin/install: ‘ndb_config_2_node.ini’ and ‘/opt/mysql-5.0.51b/mysql-test/ndb/ndb_config_2_node.ini’ are same files
make[4]: *** [install-dist_testDATA] Error 1
make[4]: Leaving directory `/opt/mysql-5.0.51b/mysql-test/ndb'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/opt/mysql-5.0.51b/mysql-test/ndb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/opt/mysql-5.0.51b/mysql-test'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/mysql-5.0.51b'
make: *** [install] Error 2
================================================
how can I resolve this question?
[11 May 2008 1:11] MySQL Verification Team
Thank you for the feedback. Actually that is repeatable and already verified by
bug: http://bugs.mysql.com/bug.php?id=36646.
[15 Jul 2008 21:06] Timothy Smith
Hi.  This is not a duplicate of bug #36646, which is fixed and has a different symptom.

Please try to verify this bug.  I was unable to repeat it with 5.1.26 or 5.0.51b source code.  If re-verified, please include config.log, full output from 'configure', and full output from 'make install'.  Please provide a 'ls -lR /path/to/your/installation/prefix' after 'make install' fails.

I used the following to test (same command for 5.0.51b and 5.1.26-rc):

{ ./configure --prefix=/var/tmp/mysql-tsmith --with-unix-socket-path=/var/tmp/mysql-tsmith/tmp/mysql.sock --with-mysqld-user=mysql --enable-large-files --without-bench --with-mysqld-ldflags=-all-static --with-big-tables --with-charset=utf8 --with-extra-charsets=latin1,latin2,latin5,latin7,gb2312,gbk --with-ndbcluster --with-ndb-test --with-ndb-docs && make -j6 && make install; } 2>&1 | tee log

No errors, at the end I have:

$ ls -l /var/tmp/mysql-tsmith/mysql-test/ndb/ndb_config_2_node.ini 
-rw-r--r-- 1 tsmith tsmith 968 2008-07-15 12:21 /var/tmp/mysql-tsmith/mysql-test/ndb/ndb_config_2_node.ini

This is on Ubuntu 8.04.
[16 Jul 2008 8:33] Susanne Ebrecht
George,

MySQL 5.1.12 is quite old. Please use our newer version 5.1.26-rc.

There is no MySQL Cluster support at this version. We excluded cluster support for 5.1. To avoid compilation breaks please use:

configure --without-ndbcluster

If you need cluster, then look here:
http://dev.mysql.com/downloads/cluster/

Please let us know if all works fine for you with newer version.
[16 Aug 2008 23: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".