Description:
github MySQL source code:
[root@LAPTOP-TJHMD4IG mysql-server]# git branch -lv
* trunk 87307d4ddd8 Bug#35897778: Upgrade to CURL 8.4.0 [remove old]
cmake is run as follows:
cd bld
rm -rf *
cmake -DWITH_BOOST=/root/boost/boost_1_77_0 -DWITH_SSL=system -DWITH_DEBUG=1 -DWITH_INNODB_EXTRA_DEBUG=1 ..
then make results in the error below:
from /root/mysql-server/storage/innobase/buf/buf0lru.cc:33:
369 /root/mysql-server/storage/innobase/buf/buf0lru.cc: In function ‘bool buf_LRU_block_remove_hashed(buf_page_t*, bool, bool)’:
370 /root/mysql-server/storage/innobase/buf/buf0lru.cc:2138:60: error: ‘struct buf_block_t’ has no member named ‘index’
371 2138 | ((buf_block_t *)bpage)->index));
372 | ^~~~~
373 /root/mysql-server/storage/innobase/include/ut0dbg.h:58:34: note: in definition of macro ‘ut_a’
374 58 | if (unlikely(false == (bool)(make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/build.make:328: stma ke[2]: *** [storage/innobase/CMakeFiles/innobase.dir/build.makemake[1]: *** [CMakeFiles/Makefile2:8313: storage/inno base/CMakeFiles/innomake[1]: *** [CMakeFilmake: *** [Makefile:166: all] Error 2
375 akeFiles/innobase.dir/all] Error 2
376 make: *** [Makefile:166: all] Error 2
How to repeat:
see description. See also attached file
Suggested fix:
desupport -DWITH_INNODB_EXTRA_DEBUG and remove related code.
Reasons:
* iirc WITH_INNODB_EXTRA_DEBUG has not been working for quite some time
* I've tried to fix the compilation errors but they are more than one
* even if it's compiled quite some testing would be required