summaryrefslogtreecommitdiff
path: root/configure.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch '5.5' into 10.0Vicențiu Ciorbaru2018-01-241-1/+11
|\
| * MDEV-14229: Stack trace is not resolved for shared objectsVicențiu Ciorbaru2018-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolving a stacktrace including functions in dynamic libraries requires us to look inside the libraries for the symbols. Addr2line needs to be started with the correct binary for each address on the stack. To do this, figure out which library it is using dladdr, then if the addr2line binary was started with a different binary, fork it again with the correct one. We only have one addr2line process running at any point during the stacktrace resolving step. The maximum number of forks for addr2line should generally be around 6. One for server stacktrace code, one for plugin code, one when going back into server code, one for pthread library, one for libc, one for the _start function in the server. More can come up if plugin calls server function which goes back to a plugin, etc.
| * MDEV-14469 build with cmake -DMYSQL_MAINTAINER_MODE=ON fails: 'readdir_r' is ↵Sergei Golubchik2018-01-151-1/+10
| | | | | | | | | | | | | | | | deprecated 1. test readdir_r() availability under -Werror 2. don't protect readdir() with mutexes, it's not needed for the way we use readdir()
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-12-091-1/+0
|\ \ | |/
| * MDEV-10293 'setupterm' was not declared in this scopeSergei Golubchik2016-12-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | Check for readline before checking for curses headers, because MYSQL_CHECK_READLINE fails when curses is not found, but CHECK_INCLUDE_FILES simply remembers the fact and continues. So if there's no curses, MYSQL_CHECK_READLINE will abort, the user will then installs curses and continue the build. Thus, CHECK_INCLUDE_HEADERS will remember that there is no curses, but other checks from MYSQL_CHECK_READLINE will remember that curses are there. It will result in inconsistent HAVE_xxx defines.
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-02-151-3/+23
|\ \ | |/
| * better inline checkSergei Golubchik2016-02-151-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. check that unused inline functions are removed 2. only allow compilation if they are or if the check if overridden 3. with CMAKE_GENERATOR=Makefiles, use all flags when testing (e.g. both CMAKE_C_FLAGS and CMAKE_C_FLAGS_DEBUG if CMAKE_BUILD_TYPE=Debug). This is because - on Solaris with the SunPro compiler, default CMAKE_C_FLAGS_xxx values contain -xO2 (for Release and RelWithDebInfo) and -g (for RelWithDebInfo and Debug) - proper inlining only works at -xO4 without -g - so if CMAKE_C_FLAGS has -xO4, inlining would work in configure.cmake (before this fix) and fail during actual compilation also remove the outdated check for inline from myu_global.h
| * MDEV-9024 Build fails with VS2015Sergei Golubchik2016-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cherry-pick f1daf9ce from 10.0 branch ------------------------------------- Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
* | Merge MDEV-9112 into 10.0Kristian Nielsen2016-02-011-0/+3
|\ \ | |/ | | | | | | Conflicts: configure.cmake
| * MDEV-9112: Non-blocking client API missing on non-x86 platformsGeorg Richter2016-02-011-0/+3
| | | | | | | | | | | | | | The check for UCONTEXT in cmake was somehow become broken, disabling the fallback to ucontext. This caused the non-blocking client API to not be available for non-x86 platforms, on which no hand-crafted assembler implementation of my_context is available.
* | Fixed failing test cases and compiler warnings found by buildbotMonty2015-11-241-0/+1
| | | | | | | | | | | | | | | | - Added some extra command to rpl_start_stop to ensure that the IO thread has connected to the master before we shut down the server. - if signal returns signalhandler_t, use this with the alarm code - Added missing tests to sys_vars - Fixed some possible overflow bugs in tabxml.cpp
* | MDEV-9024 Build fails with VS2015Vladislav Vaintroub2015-11-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
* | MDEV-7398 mysqld segfaults on FreeBSD 10.1 i386 when built with clang 3.4Sergei Golubchik2015-06-161-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in cmake tests let's treat clang like gcc (same options, same builtins) in many cases. * don't check the compiler when * testing for -fvisibility=hidden support * testing for HAVE_ABI_CXA_DEMANGLE * testing for HAVE_GCC_ATOMIC_BUILTINS * when removing options with string(replace) * when running ${CC} --version (ignore the error instead) * run ABI checks for clang * use "canonical" gcc flags for clang * fix groonga too Also: * add cmake detection for gcc __atomic_* builtins. they might be supported (__ATOMIC_SEQ_CST is defined), but not for all operand sizes. In particular, 64-bit atomic load is problematic on i386 * cache check results for Windows * remove the test for HAVE_CXXABI_H (HAVE_ABI_CXA_DEMANGLE is suffifient)
* | 5.5 mergeSergei Golubchik2015-01-211-10/+0
|\ \ | |/
| * mysql-5.5.41 mergeSergei Golubchik2014-12-191-9/+0
| |\
| | * Bug#17633291: SET PROPER COMPILE OPTIONS FOR CLANGJon Olav Hauglid2014-10-131-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug#17959689: MAKE GCC AND CLANG GIVE CONSISTENT COMPILATION WARNINGS Bug#18313717: ENABLE -WERROR IN MAINTANER MODE WHEN COMPILING WITH CLANG Bug#18510941: REMOVE CMAKE WORKAROUNDS FOR OLDER VERSIONS OF OS X/XCODE Backport from mysql-5.6 to mysql-5.5
* | | typos in cmake -DWITH_ATOMIC_OPS=xxxSergei Golubchik2014-09-071-5/+5
| | |
* | | 10.0-base mergeSergei Golubchik2014-02-031-0/+4
|\ \ \
| * \ \ 5.5 mergeSergei Golubchik2014-02-011-0/+4
| |\ \ \ | | |/ /
| | * | MySQL-5.5.35 mergeSergei Golubchik2014-01-221-0/+4
| | |\ \ | | | |/
| | | * Bug#17296644 CONV(X, INT_MIN, INT_MIN) SEGFAULTS THE SERVERTor Didriksen2013-09-091-0/+4
| | | | | | | | | | | | | | | | | | | | Do not call abs(INT_MIN) as the result is undefined.
* | | | 10.0-base mergeSergei Golubchik2013-07-181-2/+3
|\ \ \ \ | |/ / /
| * | | 5.5 mergeSergei Golubchik2013-07-171-2/+3
| |\ \ \ | | |/ /
| | * | mysql-5.5.32 mergeSergei Golubchik2013-07-161-2/+2
| | |\ \ | | | |/
| | | * Bug#11766815 INVALID SYSTEM CHECK TIME_T_UNSIGNEDTor Didriksen2013-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for unsigned time_t failed, on all platforms, due to missing #include. from CMakeFiles/CMakeError.log with this patch: error: size of array array is negative without this patch: error: time_t undeclared (first use in this function)
| | * | MDEV-4601 : Allow MariaDB to be build without non-blocking client.Vladislav Vaintroub2013-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | Non-blocking client currently can be build on Windows, GCC on i386 and x64, or any OS wth ucontext.h header. Prior to this patch, build failed if neither of these conditions is true. Fix to avoid compiler errors in these case - non-blocking API would not be useful on , but otherwise everything will work as before.
* | | | 10.0-base mergeSergei Golubchik2013-06-061-1/+1
|\ \ \ \ | |/ / / | | | | | | | | (without InnoDB - all InnoDB changes were ignored)
| * | | 5.5 mergeSergei Golubchik2013-06-061-1/+1
| |\ \ \ | | |/ /
| | * | - Solaris fixes:Michael Widenius2013-05-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixed that wait_timeout_func and wait_timeout tests works on solaris - We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO). - Fixed that compile-solaris-amd64-debug works (before that we got a wrong ELF class: ELFCLASS64 on linkage) - Fixed some compiler warnings - Fixed some failing tests BUILD/compile-solaris-amd64-debug: Fixed that compile-solaris-amd64-debug works (before that we got a wrong ELF class: ELFCLASS64 on linkage) configure.cmake: We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO) mysql-test/suite/parts/t/partition_basic_innodb.test: Mark test as big test (as otherwise we get timeout on our opensolaris machine in buildbot) mysql-test/suite/rpl/t/rpl_cant_read_event_incident.test: Remove warning
| | * | mysql-5.5.31 mergeSergei Golubchik2013-05-071-1/+1
| | |\ \ | | | |/
| | | * Updated/added copyright headersMurthy Narkedimilli2013-02-261-1/+1
| | | |
| * | | Fixed errors and compiler warnings found by buildbotMichael Widenius2013-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solaris fixes: - Fixed that wait_timeout_func and wait_timeout tests works on solaris - We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO). - Fixed that compile-solaris-amd64-debug works (before that we got a wrong ELF class: ELFCLASS64 on linkage) - Added missing sync_with_master Other bug fixes: - Free memory for rpl_global_gtid_binlog_state before exit() to avoid 'accessing uninitalized mutex' error. BUILD/FINISH.sh: Fixed issues on Solaris with ksh BUILD/compile-solaris-amd64-debug: Added missing -m64 flag configure.cmake: We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO) mysql-test/suite/rpl/t/rpl_gtid_mdev4473.test: - Added missing sync_with_master (fix by knielsen) sql-common/client.c: Added () to get rid of compiler warning sql/item_strfunc.cc: Fixed compiler warning sql/log.cc: Free memory for static variable rpl_global_gtid_binlog_state before exit() - If we are compiling with safemalloc, we would try to call sf_free() for some members after sf_terminate() was called, which would result of trying to access the uninitalized mutex 'sf_mutex' sql/multi_range_read.cc: Fixed compiler warnings of converting double to ulong. sql/opt_range.cc: Fixed compiler warnings of converting double to ulong or uint - Better to have all variables that can be number of rows as 'ha_rows' sql/rpl_gtid.cc: Added rpl_binlog_state::free() to be able to free memory for static objects before exit() sql/rpl_gtid.h: Added rpl_binlog_state::free() to be able to free memory for static objects before exit() sql/set_var.cc: Fixed compiler warning sql/sql_join_cache.cc: Fixed compiler warnings of converting double to uint sql/sql_show.cc: Added cast to get rid of compiler warning sql/sql_statistics.cc: Remove code that didn't do anything. (store_record() with record[0] is a no-op) storage/xtradb/os/os0file.c: Added __attribute__ ((unused)) support-files/compiler_warnings.supp: Ignore warnings from atomic_add_64_nv (was not able to fix this with a cast as the macro is a bit different between systems) vio/viosocket.c: Added more DBUG_PRINT
* | | | 10.0-base mergeSergei Golubchik2013-04-151-3/+9
|\ \ \ \ | |/ / /
| * | | 5.5 mergeSergei Golubchik2013-03-271-3/+9
| |\ \ \ | | |/ /
| | * | MDEV-4190 : Fix system checks for OpenBSDVladislav Vaintroub2013-02-211-3/+4
| | | |
| | * | MDEV-4174 - Use kqueue for threadpool implementation on more BSD variants ↵Vladislav Vaintroub2013-02-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | than just FreeBSD or OSX - i.e NetBSD, OpenBSD, DragonFly, etc.
| * | | remove HAVE_EXPLICIT_TEMPLATE_INSTANTIATIONSergei Golubchik2012-12-171-9/+1
| | | |
* | | | MDEV-3839 : on Solaris 10, KILLing slave thread has no effect.Vladislav Vaintroub2012-11-061-41/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for the error is missing definition for SIGNAL_WITH_IO_CLOSE on this platform which now needs to always be defined, as in 5.6 On Solaris10 only, this preprocessor constant was not defined, thus code that shutdowns a socket in THD::awake was not executed, and polling thread was not interrupted. Fix is to always define SIGNAL_WITH_IO_CLOSE, just like MySQL5.6 does.
* | | | 10.0-base -> 10.0-montySergei Golubchik2012-10-191-2/+9
|\ \ \ \ | |/ / /
| * | | Automatic merge with 5.5Michael Widenius2012-09-011-2/+9
| |\ \ \ | | |/ /
| | * | Fixed compiler warningsMichael Widenius2012-08-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sql/item_subselect.cc: Added purecov info sql/sql_select.cc: Added cast storage/innobase/handler/ha_innodb.cc: Added cast storage/xtradb/btr/btr0btr.c: Added buf_block_get_frame_fast() to avoid compiler warning storage/xtradb/handler/ha_innodb.cc: Added cast storage/xtradb/include/buf0buf.h: Innodb has buf_block_get_frame(block) defined as (block)->frame. Didn't want to do a big change to break xtradb as it may use block_get_frame() differently, so I mad this quick hack to patch one compiler warning.
| | * | MDEV-419 ensure that all HAVE_XXX constants can be set by cmakeSergei Golubchik2012-07-311-0/+6
| | | | | | | | | | | | | | | | | | | | add missing checks to configure.cmake remove dead code and unused HAVE_xxx constants from the sources
| | * | MDEV-418 Feedback plugin statisics problemSergei Golubchik2012-07-311-0/+1
| | | | | | | | | | | | | | | | Add the check for sys/utsname.h to configure.cmake
* | | | Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6Michael Widenius2012-08-011-8/+1
|/ / /
* | | automatic merge with 5.5Michael Widenius2012-06-271-1/+1
|\ \ \ | |/ /
| * | mysql-5.5 mergeSergei Golubchik2012-06-141-1/+1
| |\ \ | | |/
| | * Fixed a cmake compile problem because of the 2.8.8 fix.Georgi Kodinov2012-04-231-2/+3
| | |
| | * Bug #59148 - made tests experimentalGeorgi Kodinov2012-04-231-1/+3
| | | | | | | | | | | | Fixed a cmake 2.8.8 compilation problem.
* | | Switched off Maintainer mode by default as it gave wrong compiler warnings ↵Michael Widenius2012-06-131-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | (as it added -Wall after some switches was already turned off) cmake/maintainer.cmake: Add -DFORCE_INIT_OF_VARS to not get warnings generated by -Wall configure.cmake: Don't add -Wall if we already have it. This is to not enable options that are already turned off. support-files/compiler_warnings.supp: Removed suppression that is not needed anymore
* | FreeBSD : Extend CMAKE_REQUIRED_LIBRARIES with ${LIBEXECINFO} , for ↵Vladislav Vaintroub2012-05-041-1/+1
| | | | | | | | backtrace_symbols & Co