Bug #34585 wrong cast at ndb.cpp
Submitted: 15 Feb 2008 10:46 Modified: 18 Feb 2008 11:12
Reporter: Susanne Ebrecht Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:5.0-bk OS:FreeBSD ((amd 64))
Assigned to: CPU Architecture:Any

[15 Feb 2008 10:46] Susanne Ebrecht
Description:
$ gmake --version
GNU Make 3.81

...
gmake[4]: Entering directory `/usr/home/miracee/mysql50bksrc/ndb/src/ndbapi'
if /bin/bash ../../../libtool --preserve-dup-deps --tag=CXX --mode=compile gcc -DHAVE_CONFIG_H -DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD   -I. -I. -I../../../include -I../../../ndb/src/mgmapi -I. -I../../../include -I../../../ndb/include -I../../../include -I../../../mysys -I../../../ndb/include -I../../../ndb/include/kernel -I../../../ndb/include/transporter -I../../../ndb/include/debugger -I../../../ndb/include/mgmapi -I../../../ndb/include/mgmcommon -I../../../ndb/include/ndbapi -I../../../ndb/include/util -I../../../ndb/include/portlib -I../../../ndb/include/logger    -g  -DDBUG_ON -DSAFE_MUTEX -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor  -felide-constructors -fno-exceptions -fno-rtti -mtune=nocona -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -O1 -Wuninitialized    -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000   -MT Ndb.lo -MD -MP -MF ".deps/Ndb.Tpo" -c -o Ndb.lo Ndb.cpp; \
        then mv -f ".deps/Ndb.Tpo" ".deps/Ndb.Plo"; else rm -f ".deps/Ndb.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD -I. -I. -I../../../include -I../../../ndb/src/mgmapi -I. -I../../../include -I../../../ndb/include -I../../../include -I../../../mysys -I../../../ndb/include -I../../../ndb/include/kernel -I../../../ndb/include/transporter -I../../../ndb/include/debugger -I../../../ndb/include/mgmapi -I../../../ndb/include/mgmcommon -I../../../ndb/include/ndbapi -I../../../ndb/include/util -I../../../ndb/include/portlib -I../../../ndb/include/logger -g -DDBUG_ON -DSAFE_MUTEX -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=nocona -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -O1 -Wuninitialized -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT Ndb.lo -MD -MP -MF .deps/Ndb.Tpo -c Ndb.cpp  -fPIC -DPIC -o .libs/Ndb.o
Ndb.cpp: In member function 'void Ndb::printState(const char*, ...)':
Ndb.cpp:1420: error: cast from 'pthread*' to 'int' loses precision
../../../ndb/include/kernel/BlockNumbers.h: At global scope:
../../../ndb/include/kernel/BlockNumbers.h:48: warning: 'BACKUP_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:49: warning: 'DBTC_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:50: warning: 'DBDIH_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:51: warning: 'DBLQH_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:52: warning: 'DBACC_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:53: warning: 'DBTUP_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:54: warning: 'DBDICT_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:55: warning: 'NDBCNTR_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:56: warning: 'QMGR_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:57: warning: 'NDBFS_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:58: warning: 'CMVMI_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:59: warning: 'TRIX_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:60: warning: 'DBUTIL_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:61: warning: 'SUMA_REF' defined but not used
../../../ndb/include/kernel/BlockNumbers.h:62: warning: 'DBTUX_REF' defined but not used
gmake[4]: *** [Ndb.lo] Error 1
gmake[4]: Leaving directory `/usr/home/miracee/mysql50bksrc/ndb/src/ndbapi'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/home/miracee/mysql50bksrc/ndb/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/miracee/mysql50bksrc/ndb'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/miracee/mysql50bksrc'
gmake: *** [all] Error 2

How to repeat:
$ ./BUILD/compile-amd64-debug-max --prefix=/usr/home/myhome/mydirectory -c
$ gmake
[15 Feb 2008 10:49] Susanne Ebrecht
Verified as described.
[15 Feb 2008 10:53] Jonas Oreland
isnt this the same as http://bugs.mysql.com/bug.php?id=34169
[18 Feb 2008 11:12] Susanne Ebrecht
Jonas,

of course. I was blind on Friday.
This is a duplicate of bug #34169