Bug #7719 4.1.8a compile fails
Submitted: 6 Jan 2005 22:23 Modified: 12 Jan 2005 23:10
Reporter: Todd Carter Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.8a OS:Solaris (Solaris 2.8)
Assigned to: CPU Architecture:Any

[6 Jan 2005 22:23] Todd Carter
Description:
When compiling 4.1.8a on Solaris 2.8 - the make fails on the ndb/src/common directory.

Here is the error:

make[5]: Entering directory `/opt/depot/src/mysql-4.1.8a/ndb/src/common'
/bin/bash ../../../libtool --preserve-dup-deps --mode=link gcc  -O3 -DDBUG_OFF    -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -I/opt/depot/src/mysql-4.1.8/include -DHAVE_RWLOCK_T   -o libcommon.la    transporter/libtransporter.la debugger/libtrace.la debugger/signaldata/libsignaldataprint.la mgmcommon/libmgmsrvcommon.la portlib/libportlib.la logger/liblogger.la util/libgeneral.la  -lpthread -lthread -lposix4 -lcrypt -lgen -lsocket -lnsl -lm  -lpthread -lthread
libtool: link: `transporter/libtransporter.la' is not a valid libtool archive
make[5]: *** [libcommon.la] Error 1
make[5]: Leaving directory `/opt/depot/src/mysql-4.1.8a/ndb/src/common'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/depot/src/mysql-4.1.8a/ndb/src/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/depot/src/mysql-4.1.8a/ndb/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/depot/src/mysql-4.1.8a/ndb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/depot/src/mysql-4.1.8a'
make: *** [all] Error 2

I am able to successfully compile a snapshot release from 12/12/2004 version 4.1.8.

How to repeat:
Run Configure with the following options:

./configure --prefix=/opt/mysql-4.1.8 --with-mysql-user
=mysql --without-debug --with-ndbcluster --with-low-memory --enable-assembler

Run the compile program:

make
[7 Jan 2005 0:57] Todd Carter
I have a work around for this - I copied the these files from a previous build of 4.1.8
:

 cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/transporter/libtransporter.la .
  536  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/debugger/libtrace.la /opt/depot/src/mysql-4.1.8/ndb/src/common/debugger/.
  538  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/debugger/signaldata/libsignaldataprint.la /opt/depot/src/mysql-4.1.8/ndb/src/common/debugger/signaldata/.
  540  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/mgmcommon/libmgmsrvcommon.la /opt/depot/src/mysql-4.1.8/ndb/src/common/mgmcommon/.
  542  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/portlib/libportlib.la /opt/depot/src/mysql-4.1.8/ndb/src/common/portlib/.
  544  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/logger/liblogger.la /opt/depot/src/mysql-4.1.8/ndb/src/common/logger/.
  546  cp -p /opt/depot/src/mysql-4.1.8-nightly-20041207/ndb/src/common/util/libgeneral.la /opt/depot/src/mysql-4.1.8/ndb/src/common/util/.

- I added one at a time, after which the make succeeded successfully. . .

Any ideas ?
[12 Jan 2005 23:10] Jorge del Conde
Hi!

I was unable to reproduce this behaviour using the following configure command:

CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --libexecdir=/usr/local/mysql/bin --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --disable-shared --without-innodb --with-mysql-user=mysql --without-debug --with-ndbcluster --with-low-memory