Bug #32410 ndbj does not compile on linux
Submitted: 15 Nov 2007 14:42 Modified: 26 Nov 2007 19:22
Reporter: Oli Sennhauser Email Updates:
Status: Unsupported Impact on me:
None 
Category:Connectors: NDB/Bindings Severity:S3 (Non-critical)
Version:5.1.22-ndb-6.3.6 and 6.2.6 OS:Linux
Assigned to: Monty Taylor CPU Architecture:Any

[15 Nov 2007 14:42] Oli Sennhauser
Description:
The NDB/J API does not compile on customers systems. It seems that the configure/make files are broken.

How to repeat:
./BUILD/compile-pentium --prefix=/home/mysql/product/mysql-5.1.22-ndb-6.2.6 \
                        --with-mysql=/home/mysql/product/mysql-5.1.22-ndb-6.2.6 \
                        --with-debug=full \
                        --with-ndb-include=/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql/storage/ndb

checking for stdlib.h... (cached) yes
./configure: line 21143: Xmysql: command not found

This test seems to be crap!!!

21138 ################################
21139 # CHECKS FOR MYSQL INSTALL DIR
21140 ################################
21141
21142 USERID=`id | sed -e 's/).*//; s/^.*(//;'`
21143 if  "X$USERID" = "Xroot" ; then
21144     MYSQL_DIR="/usr/local/mysql"
21145 else
21146     HOMEDIR=`(cd ; pwd)`
21147     MYSQL_DIR="${HOMEDIR}/.mysql/mysql"
21148 fi

Checking for my_config.h file in /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql ... yes
Checking for the NDB Header files in... /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb
Checking for ndb_init.h in /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb... no
configure: error: Could not find ndb header files (the 'include'  directory) installed here: /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb    Specify ndb include (header files) directory using: --with-ndb-include=/your/ndb/include

/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql/storage/ndb/ndb_init.h

Unknown option '--with-ndb-include=/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql/storage/ndb'

---------------------------------------------------------------------------

./configure --prefix=/home/mysql/product/ndbj_api-0.2 \
            --with-mysql=/home/mysql/product/mysql-5.1.22-ndb-6.2.6 \
            --with-debug=full \
            --with-ndb-include=/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql \
            --with-mysql-include=/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql \

checking for stdlib.h... (cached) yes
./configure: line 21143: Xmysql: command not found
You specified the mysql directory as:  /home/mysql/product/mysql-5.1.22-ndb-6.2.6
Checking for mysql dir at /home/mysql/product/mysql-5.1.22-ndb-6.2.6... yes
...

Checking for my_config.h file in /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql ... yes
Checking for the NDB Header files in... /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb
Checking for ndb_init.h in /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb... no
configure: error: Could not find ndb header files (the 'include'  directory) installed here: /home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/storage/ndb    Specify ndb include (header files) directory using: --with-ndb-include=/your/ndb/include

find /home/mysql/product/mysql-5.1.22-ndb-6.2.6 -name my_config.h
/home/mysql/product/mysql-5.1.22-ndb-6.2.6/include/mysql/my_config.h

Suggested fix:
configure/make must be able to compile on more complex env than just /var/lib/mysql ...
[15 Nov 2007 17:32] Monty Taylor
ndb/j 0.2 has been superseded by the NDB/Connectors project. Please see http://launchpad.net/ndb-connectors