Dmitry Lenev
dcaa144852
Fix for bug #51105 "MDL deadlock in rqg_mdl_stability test
...
on Windows".
On platforms where read-write lock implementation does not
prefer readers by default (Windows, Solaris) server might
have deadlocked while detecting MDL deadlock.
MDL deadlock detector relies on the fact that read-write
locks which are used in its implementation prefer readers
(see new comment for MDL_lock::m_rwlock for details).
So far MDL code assumed that default implementation of
read/write locks for the system has this property.
Indeed, this turned out ot be wrong, for example, for
Windows or Solaris. Thus MDL deadlock detector might have
deadlocked on these systems.
This fix simply adds portable implementation of read/write
lock which prefer readers and changes MDL code to use this
new type of synchronization primitive.
No test case is added as existing rqg_mdl_stability test can
serve as one.
2010-02-28 07:35:09 +03:00
Vladislav Vaintroub
09dfcfa14b
check for poll.h
2010-02-14 20:30:41 +01:00
Vladislav Vaintroub
513027f4fd
Fix syntax errors in configure.cmake
2010-01-29 03:49:13 +01:00
vvaintroub
f719e51f8b
Add windows system check cache that prevents tests from running, most are irrelevant anyway
...
Add cached variable WITH_XXX_STORAGE_ENGINE for dynamic plugins that can be static or
dynamic.
2010-01-29 03:07:00 +01:00
Vladislav Vaintroub
8d74e5c50e
Added AIX, OS400 and Cygwin.
...
This finishes of moving code from configure.cmake IF()'s to platform specific files
2010-01-27 02:52:04 +01:00
Vladislav Vaintroub
a144dc31ac
fix default architecture flag (v8) on sparc32 gcc that prevent mysql from compilng, add HPUX.cmake
2010-01-27 01:50:19 +01:00
Vladislav Vaintroub
1f07f5c18e
Fixed typos and failed mysqld--help test.
2010-01-26 22:05:41 +01:00
Vladislav Vaintroub
0bdfa9d5eb
Move FreeBSD specific hacks to cmake/os/FreeBSD.cmake
2010-01-26 18:13:37 +01:00
Vladislav Vaintroub
e5154ba9c0
Move OSX specific checks to cmake/os/Darwin.cmake
2010-01-26 18:09:14 +01:00
Vladislav Vaintroub
25d8787a32
WL#5161: Following Mats' suggestion, moved Solaris specific workaround to cmake/os/SunOS.cmake
2010-01-26 15:43:53 +00:00
Vladislav Vaintroub
3a7be724dc
WL#5161, implement Mats' suggeston to move platform specifics into own files
...
under cmake/os. This patch does it for Linux
2010-01-26 15:56:50 +01:00
Vladislav Vaintroub
19a2c052a5
WL#5161: Implement Mats' suggestion of moving OS specific CMake code to OS specific files, instead of
...
polluting code with IF(CMAKE_SYSTEM_NAME MATCHES...), first on Windows.
2010-01-26 13:47:34 +01:00
Vladislav Vaintroub
6e0d562320
Fix failing yassl tests on OSX
...
WORDS_BIGENDIAN was wrongly defined to 1
2010-01-21 01:42:17 +01:00
Vladislav Vaintroub
726e9f5060
Fix AIX error during compile in my_handler (pointer to data is used, while pointer to function is expected).
...
This also has generated warnings on all other platforms
2010-01-19 18:22:51 +01:00
Vladislav Vaintroub
df4b65b533
Fix various compiler/OS compatibility errors
2010-01-19 16:31:21 +01:00
Vladislav Vaintroub
ce59ee8098
Fix some problems found by kent.
...
-lm is sometimes not linked, which causes errors about undefined rint()
- FreeBSD embedded library does not link with the flags returned by mysql_config
(added -lcrypt to LIBS, whereby causing overlinking in case of normal non-embedded client)
2010-01-18 21:19:24 +01:00
Vladislav Vaintroub
4bf1d5b5dd
Post-merge fixes , define HAVE_RWLOCK_T on Solaris define
...
DISABLE_MYSQL_THREAD_H for strings
Also, enable unittests for perfschema
2010-01-14 18:42:28 +00:00
Vladislav Vaintroub
ccf2600f66
Do not link with mtmalloc on Solaris.
...
add WITH_MYSQLD_LIBS for extra linker flags for mysqld
2010-01-13 21:56:51 +01:00
Vladislav Vaintroub
5cddb6c15f
use _GNU_SOURCE on Linux to have all useful definitions (pthread_rwlock_t) for example
2010-01-13 16:52:14 +01:00
Vladislav Vaintroub
3fe740e13d
Workaround a linker problem on OSX 10.4
2010-01-12 00:31:50 +01:00
Vladislav Vaintroub
7edec12185
Fix the last merge
2010-01-05 02:26:20 +01:00
Vladislav Vaintroub
5dbbb867e1
restore flaky loadxml test, fix solaris plugin load using -lpthread instead of -lthread
2009-12-23 04:44:25 +01:00
Vladislav Vaintroub
cd94452eda
merge
2009-12-19 14:11:48 +01:00
Vladislav Vaintroub
9c9cc49060
merge
2009-12-19 03:21:49 +01:00
Vladislav Vaintroub
3a72f357ee
Check for clock_gettime in librt
2009-12-10 04:09:32 +01:00
Vladislav Vaintroub
09c3bb13d4
Remove -Wl,--as-needed option, broken on Fedora
2009-12-09 16:34:52 +01:00
Vladislav Vaintroub
b5761e6348
couple of tweaks for solaris on sparc, link with librt, as it defines sched_yield
2009-12-08 03:12:23 +01:00
Vladislav Vaintroub
a9329d5d3f
fix some Solaris Sparc errors from recent cleanup
2009-12-07 23:31:10 +01:00
Vladislav Vaintroub
9b31158e3c
simplify some tests, silence warning in script install
2009-12-07 22:01:03 +01:00
Vladislav Vaintroub
dc798a489f
Add libm to the lib of required libraries when doing system checks
2009-12-07 12:25:46 +01:00
Vladislav Vaintroub
db1b3d2d7d
do not use -z defs on Solaris, it complains about libc.so implicit dependency
2009-12-07 01:50:54 +00:00
Vladislav Vaintroub
a1ebd4245e
On Linux, support -Wl,--no-undefined (only client shared library)
...
and --Wl,--as-needed (all shared modules). The later will remove
unused dependencies (also from gcc and C++ runtime)
2009-12-07 02:16:05 +01:00
Vladislav Vaintroub
456395813a
fdatasync is not documented on Snow Leopard and is not in unistd.h
...
CMake finds it as it is expored by system libraries, though attempts to
use it will result bring a warning. Fix by using CHECK_SYMBOL_EXISTS
instead of CHECK_FUNCTION_EXISTS
2009-12-05 16:15:17 +01:00
Vladislav Vaintroub
f458a4c963
merge
2009-11-30 01:49:26 +00:00
Vladislav Vaintroub
a710e76783
Fix universal binaries build on OSX, in case both 32 and 64 bit architectures are used
2009-11-26 00:47:38 +01:00
Vladislav Vaintroub
53cc3b7bf8
merge
2009-11-25 15:20:14 +01:00
Vladislav Vaintroub
fbd542013f
Fixes for cmake2.8
2009-11-16 14:45:06 +01:00
Vladislav Vaintroub
13cd7170cc
WL#5161 : Cross-platform build with CMake
2009-11-09 12:32:48 +01:00