Bug #23137 ha_ndbcluster.m4 bug
Submitted: 10 Oct 2006 13:02 Modified: 10 May 2007 17:46
Reporter: Sergei Golubchik Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: david li CPU Architecture:Any

[10 Oct 2006 13:02] Sergei Golubchik
Description:
There's a line in config/ac-macros/ha_ndbcluster.m4

  CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)"

It makes configure to fail all compilation tests after it. config.log contains in these cases:

configure:47038: gcc -c -g -DSAFE_MUTEX -DSAFEMALLOC  -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -ggdb3 -O0 -DMY_LF_EXTRA_DEBUG -DPEDANTIC_SAFEMALLOC  -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti $(NDB_CXXFLAGS)  conftest.cc >&5
gcc: $(NDB_CXXFLAGS): No such file or directory

How to repeat:
./configure --with-plugins=max --without-readline
[14 Nov 2006 7:57] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/15286

ChangeSet@1.2320, 2006-11-14 15:58:06+08:00, dli@dev3-76.dev.cn.tlan +2 -0
  ndb - fix for BUG#23137, ha_ndbcluster.m4 bug.
  
  Because NDB_CXXFLAGS is just used in ndb engine, moved NDB_CXXFLAGS from ha_ndbcluster.m4 to ndb/config/common.mk.am.
[25 Jan 2007 5:33] Tomas Ulin
Serg,

can you please review?

David,

you have to chase your reviewwe :)

BR,

T
[25 Jan 2007 5:33] Tomas Ulin
Serg,

can you please review?

BR,

T
[3 Apr 2007 10:44] Marc - A. Dahlhaus
The patch works like a charm for me.

An up to date bk 5.1 tree configures,
builds and runs tests fine here.
[9 May 2007 3:16] Guangbao Ni
merge into mysql-5.1-new-ndb tree
[10 May 2007 12:56] Bugs System
Pushed into 5.1.19-beta
[10 May 2007 17:46] Paul DuBois
No changelog entry needed.