Bug #4021 mysql4.1 ndb compile error
Submitted: 6 Jun 2004 7:12 Modified: 7 Jun 2004 12:18
Reporter: Brian Klug Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:4.1.2 OS:Linux (fedora 1)
Assigned to: Tomas Ulin CPU Architecture:Any

[6 Jun 2004 7:12] Brian Klug
Description:
Sources from bk @ Jun  5 23:46.  standard fedora 1 box.

in ndb, make install gives:

.
.
.
make[5]: Entering directory `/usr/mysql-4.1/ndb/src/kernel/blocks/backup/restore'
/bin/sh ../../../../../../libtool --preserve-dup-deps --mode=link g++  -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o ndb_restore  main.o Restore.o ../../../../../../ndb/src/common/portlib/gcc.cpp ../../../../../../ndb/src/libndbclient.la -lpthread -lz -lcrypt -lnsl -lm  -lpthread 
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o ndb_restore main.o Restore.o ../../../../../../ndb/src/common/portlib/gcc.cpp  ../../../../../../ndb/src/.libs/libndbclient.a -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lpthread -lz -lcrypt -lnsl -lm -lpthread
../../../../../../ndb/src/.libs/libndbclient.a(Ndbinit.o)(.text+0x59e): In function `Ndb::Ndb[not-in-charge](char const*, char const*)':
: undefined reference to `Vector<NdbTableImpl*>::Vector[in-charge](int)'
../../../../../../ndb/src/.libs/libndbclient.a(Ndbinit.o)(.text+0xae6): In function `Ndb::Ndb[in-charge](char const*, char const*)':
: undefined reference to `Vector<NdbTableImpl*>::Vector[in-charge](int)'
../../../../../../ndb/src/.libs/libndbclient.a(Ndbinit.o)(.text+0xf42): In function `Ndb::~Ndb [not-in-charge]()':
: undefined reference to `Vector<NdbTableImpl*>::~Vector [in-charge]()'
.
.
.

[root@dev2 ndb]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

[root@dev2 ndb]# autoconf -V
autoconf (GNU Autoconf) 2.57

[root@dev2 ndb]# libtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)

[root@dev2 ndb]# automake --version
automake (GNU automake) 1.7.8

[root@dev2 ndb]# make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.

Config line:
./configure --prefix=/usr/local/mysql

How to repeat:
try to compile ndb
[7 Jun 2004 12:17] Tomas Ulin
if you want to compile and use "ndb", configure must be made with the switch --with-ndbcluster  (otherwise the correct compile switches will not be appended)

i.e.  modify your configure to

./configure --prefix=/usr/local/mysql --with-ndbcluster
[7 Jun 2004 12:18] Tomas Ulin
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