summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2007-05-29 17:16:23 +0400
committerunknown <kaa@polly.local>2007-05-29 17:16:23 +0400
commit6e1130fba2f349f58423431d64b6d030a87e0f47 (patch)
tree0271740aff6cdcefe7a561934b660b5bb70a624e /sql
parentd1c608c574f104457e282ab41c6ff37191f47f6b (diff)
parent36b183ee31ed2e3fc166c747fb5f8db2c4d45ab4 (diff)
downloadmariadb-git-6e1130fba2f349f58423431d64b6d030a87e0f47.tar.gz
Merge polly.local:/home/kaa/src/maint/bug24611/my50-bug24611
into polly.local:/home/kaa/src/maint/mysql-5.0-maint sql/mysqld.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 62086080ee1..884a448dbdf 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -2146,6 +2146,16 @@ later when used with nscd), disable LDAP in your nsswitch.conf, or use a\n\
mysqld that is not statically linked.\n");
#endif
+#ifdef HAVE_NPTL
+ if (thd_lib_detected == THD_LIB_LT && !getenv("LD_ASSUME_KERNEL"))
+ fprintf(stderr,"\n\
+You are running a statically-linked LinuxThreads binary on an NPTL system.\n\
+This can result in crashes on some distributions due to LT/NPTL conflicts.\n\
+You should either build a dynamically-linked binary, or force LinuxThreads\n\
+to be used with the LD_ASSUME_KERNEL environment variable. Please consult\n\
+the documentation for your distribution on how to do that.\n");
+#endif
+
if (locked_in_memory)
{
fprintf(stderr, "\n\