[MDEV-11148] undeclared identifier 'debug_sync_set_action' Created: 2016-10-26  Updated: 2016-11-02

Status: Confirmed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5.53
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: gfischer Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: 5.5, clang, freebsd
Environment:

FreeBSD 10.3, x86, clang 3.4.1



 Description   

cd /build/maria/mariadb-5.5.53/sql && /usr/bin/clang++   -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -I/usr/local/include -I/build/maria/mariadb-5.5.53/include -I/build/maria/mariadb-5.5.53/sql -I/build/maria/mariadb-5.5.53/regex  -O3 -march=native -fno-exceptions -fno-rtti    -o CMakeFiles/sql.dir/item_func.cc.o -c /build/maria/mariadb-5.5.53/sql/item_func.cc
/build/maria/mariadb-5.5.53/sql/item_func.cc:4507:7: error: use of undeclared identifier
      'debug_sync_set_action'
      debug_sync_set_action
      ^
/build/maria/mariadb-5.5.53/include/my_dbug.h:75:50: note: expanded from macro 'DBUG_EXECUTE_IF'
        do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
                                                 ^
1 error generated.
gmake[2]: *** [sql/CMakeFiles/sql.dir/build.make:502: sql/CMakeFiles/sql.dir/item_func.cc.o] Error 1

built with:

cmake . -DCMAKE_INSTALL_PREFIX:PATH=/opt/maria_5553 -DCMAKE_BUILD_TYPE:STRING=None -DENABLE_DEBUG_SYNC:BOOL=OFF -DENABLED_PROFILING:BOOL=OFF -DWITH_UNIT_TESTS:BOOL=OFF -DWITH_FEDERATED_STORAGE_ENGINE:BOOL=OFF -DWITH_EMBEDDED_SERVER:BOOL=OFF -DWITH_BLACKHOLE_STORAGE_ENGINE:BOOL=OFF -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE -DCMAKE_SKIP_RPATH:BOOL=YES

as you can see ENABLE_DEBUG_SYNC is off. maybe something slipped through the cracks.



 Comments   
Comment by Elena Stepanova [ 2016-11-02 ]

clang is unimportant here. CMAKE_BUILD_TYPE=None apparently causes the confusion. The following is enough to reproduce (e.g. on Jessie):

cmake .  -DCMAKE_BUILD_TYPE:STRING=None -DENABLE_DEBUG_SYNC:BOOL=OFF
make

Generated at Thu Feb 08 07:47:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.