MySQL Forums
Forum List  »  Source, Builds, Binaries

building 5.1.61 error with glibc 2.3.6
Posted by: Holger Bruenjes
Date: February 10, 2012 02:32PM

Hello

I building the 5.1.61 from source and becomes the following error

I use glibc 2.3.6 with linuxthreads, all version before build fine, in version 5.1.61 the source signal_handler.cc was new


include -I../include -I../../include -I../../regex -I../../sql -O2 -march=i486 -fno-implicit-templates -fno-exceptions -fno-rtti -MT signal_handler.o -MD -MP -MF .deps/signal_handler.Tpo -c -o signal_handler.o ../../sql/signal_handler.cc
../../sql/signal_handler.cc: In function 'void handle_fatal_signal(int)':
../../sql/signal_handler.cc:134: error: 'UNSAFE_DEFAULT_LINUX_THREADS' was not declared in this scope
../../sql/signal_handler.cc:145: error: expected `)' before 'thread_count'
make[3]: *** [signal_handler.o] Error 1
make[3]: Leaving directory `/usr/src/database/mysql/mysql-5.1.61/build/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/database/mysql/mysql-5.1.61/build/sql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/database/mysql/mysql-5.1.61/build/sql'
make: *** [all-recursive] Error 1
holbru@eisseven:/usr/src/database/mysql/mysql-5.1.61/build>



I can solve this issue with the following patch.

define UNSAFE_DEFAULT_LINUX_THREADS 200 copied from 'mysqld.cc'

Holger



diff -Naur mysql-5.1.61-orig/sql/signal_handler.cc mysql-5.1.61/sql/signal_handl
--- mysql-5.1.61-orig/sql/signal_handler.cc<--->2011-12-16 20:05:59.000000000 +0
+++ mysql-5.1.61/sql/signal_handler.cc<>2012-02-12 21:02:47.000000000 +0100
@@ -131,6 +131,7 @@
"Hope that's ok; if not, decrease some variables in the equation.\n\n");
.
#if defined(HAVE_LINUXTHREADS)
+#define UNSAFE_DEFAULT_LINUX_THREADS 200
if (sizeof(char*) == 4 && thread_count > UNSAFE_DEFAULT_LINUX_THREADS)
{
my_safe_printf_stderr(
@@ -141,7 +142,7 @@
"yourself, LinuxThreads is quite likely to steal "
"a part of the global heap for\n"
"the thread stack. Please read "
- "http://dev.mysql.com/doc/mysql/en/linux-installation.html\n\n"
+ "http://dev.mysql.com/doc/mysql/en/linux-installation.html\n\n",
thread_count);
}
#endif /* HAVE_LINUXTHREADS */



Edited 1 time(s). Last edit at 02/12/2012 08:04AM by Holger Bruenjes.

Options: ReplyQuote


Subject
Views
Written By
Posted
building 5.1.61 error with glibc 2.3.6
3708
February 10, 2012 02:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.