Bug #7375 make test or mysql-test-run no longer works with MySQL-4.1.8 on OpenServer 5.0.
Submitted: 17 Dec 2004 4:44 Modified: 7 Sep 2005 20:12
Reporter: Boyd GERBER Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:mysql-4.1.X OS:OpenServer 5.0.7
Assigned to: Jim Winstead CPU Architecture:Any

[17 Dec 2004 4:44] Boyd GERBER
Description:
After patching sql/Makefile as in bug 6203 a make test or ./mysql-test-run does not work it fails as follows.cd mysql-test; ./mysql-test-run && ./mysql-test-run --ps-protocol
Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --based
ir=. --datadir=./var/master-data --skip-innodb --skip-ndbcluster --skip-bdb
--language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Installing Slave Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --based
ir=. --datadir=./var/slave-data --skip-innodb --skip-ndbcluster --skip-bdb     -
-language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Manager disabled, skipping manager start.
Loading Standard Test Databases
Starting Tests

TEST                            RESULT
-------------------------------------------------------
ERROR: /home/osr5/mysql-4.1.8/mysql-test/var/run/master.pid was not created in 4
00 seconds;  Aborting
make: *** [test] Error 1

How to repeat:
Download a source distribution of mysql-4.1.8.
gunzip mysql-4.1.8.tar.gz
tar xf mysql-4.1.8.tar
cd mysql-4.1.8
CC=gcc CXX=gcc ./configure --prefix=/usr/local/mysql --enable-thread-safe-client --with-berkeley-db=./bdb --with-innodb --with-openssl --with-vio --with-extra-charsets=complex 

make
create Makefile.patch with
*** sql/Makefile.org Thu Dec 16 21:39:26 2004
--- sql/Makefile Thu Dec 16 21:41:13 2004
***************
*** 498,504 ****
                        $(top_builddir)/strings/libmystrings.a -lz

  mysqld_LDADD =  \
!                       -L$(top_builddir)/bdb/build_unix -ldb  $(top_builddir)/innobase/usr/libusr.a $(top_builddir)/innobase/srv/libsrv.a $(top_builddir)/innobase/dict/libdict.a $(top_builddir)/innobase/que/libque.a $(top_builddir)/innobase/srv/libsrv.a $(top_builddir)/innobase/ibuf/libibuf.a $(top_builddir)/innobase/row/librow.a $(top_builddir)/innobase/pars/libpars.a $(top_builddir)/innobase/btr/libbtr.a $(top_builddir)/innobase/trx/libtrx.a $(top_builddir)/innobase/read/libread.a $(top_builddir)/innobase/usr/libusr.a $(top_builddir)/innobase/buf/libbuf.a $(top_builddir)/innobase/ibuf/libibuf.a $(top_builddir)/innobase/eval/libeval.a $(top_builddir)/innobase/log/liblog.a $(top_builddir)/innobase/fsp/libfsp.a $(top_builddir)/innobase/fut/libfut.a $(top_builddir)/innobase/fil/libfil.a $(top_builddir)/innobase/lock/liblock.a $(top_builddir)/innobase/mtr/libmtr.a $(top_builddir)/innobase/page/libpage.a $(top_builddir)/innobase/rem/librem.a $(top_builddir)/innobase/thr/libthr.a $(top_builddir)/innobase/sync/libsync.a $(top_builddir)/innobase/data/libdata.a $(top_builddir)/innobase/mach/libmach.a $(top_builddir)/innobase/ha/libha.a $(top_builddir)/innobase/dyn/libdyn.a $(top_builddir)/innobase/mem/libmem.a $(top_builddir)/innobase/sync/libsync.a $(top_builddir)/innobase/ut/libut.a $(top_builddir)/innobase/os/libos.a $(top_builddir)/innobase/ut/libut.a  \
                           \
                          \
                        $(LDADD)  $(CXXLDFLAGS) $(WRAPLIBS) -ldl  -L/usr/local/lib/ -lssl -lcrypto
--- 498,504 ----
                        $(top_builddir)/strings/libmystrings.a -lz

  mysqld_LDADD =  \
!                       -L$(top_builddir)/bdb/build_unix -ldb  $(top_builddir)/bdb/build_unix/libdb.a $(top_builddir)/innobase/usr/libusr.a $(top_builddir)/innobase/srv/libsrv.a $(top_builddir)/innobase/dict/libdict.a $(top_builddir)/innobase/que/libque.a $(top_builddir)/innobase/srv/libsrv.a $(top_builddir)/innobase/ibuf/libibuf.a $(top_builddir)/innobase/row/librow.a $(top_builddir)/innobase/pars/libpars.a $(top_builddir)/innobase/btr/libbtr.a $(top_builddir)/innobase/trx/libtrx.a $(top_builddir)/innobase/read/libread.a $(top_builddir)/innobase/usr/libusr.a $(top_builddir)/innobase/buf/libbuf.a $(top_builddir)/innobase/ibuf/libibuf.a $(top_builddir)/innobase/eval/libeval.a $(top_builddir)/innobase/log/liblog.a $(top_builddir)/innobase/fsp/libfsp.a $(top_builddir)/innobase/fut/libfut.a $(top_builddir)/innobase/fil/libfil.a $(top_builddir)/innobase/lock/liblock.a $(top_builddir)/innobase/mtr/libmtr.a $(top_builddir)/innobase/page/libpage.a $(top_builddir)/innobase/rem/librem.a $(top_builddir)/innobase/thr/libthr.a $(top_builddir)/innobase/sync/libsync.a $(top_builddir)/innobase/data/libdata.a $(top_builddir)/innobase/mach/libmach.a $(top_builddir)/innobase/ha/libha.a $(top_builddir)/innobase/dyn/libdyn.a $(top_builddir)/innobase/mem/libmem.a $(top_builddir)/innobase/sync/libsync.a $(top_builddir)/innobase/ut/libut.a $(top_builddir)/innobase/os/libos.a $(top_builddir)/innobase/ut/libut.a  \
                           \
                          \
                        $(LDADD)  $(CXXLDFLAGS) $(WRAPLIBS) -ldl  -L/usr/local/lib/ -lssl -lcrypto

patch < sql/Makefile.patch
make
make test
or cd mysql-test
./mysql-test-run
[10 Mar 2005 21:03] Boyd GERBER
The test do work if --with-debug is used, otherwise they do not.
[11 Mar 2005 14:23] Sinisa Milivojevic
It could be a compiler problem.

Can you try it without debug, but setting optimizer options low, like -O1 ??

If they fail again, then it is a bug in compiler.
[7 Apr 2005 15:48] Boyd GERBER
The tests will only run if --debug is added to configuration.  Once this flag is added all tests run.
[7 May 2005 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".
[7 Sep 2005 20:12] Brian Aker
Sorry, we only support OpenServer 6.0 and above.