[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mysql 4.1



Hello,

On Sun, Dec 12, 2004 at 04:38:41PM +0100, Goswin von Brederlow wrote:
> Corin Langosch <corinl@gmx.de> writes:
> > i downloaded the sources but cant compile them. it always
> > complains about linuxthreads..? i didnt find a mysql-4.1.7
> > precompiled on alioth, isnt it exisiting?

A patched version will be uploaded, as soon as the build is done.

> The libmysqlclinet10-lgpl had the same problem and I forced it to use
> pthread despite the missing comment. I'm waiting to hear from the
> maintainer if this was ok.

Please check the attached patch fron Andreas Jochens, it works for both
mysql 4.0 and 4.1. 


Greetings
Frederik Schueler

-- 
ENOSIG
diff -urN ../tmp-orig/mysql-dfsg-4.0.21/configure ./configure
--- ../tmp-orig/mysql-dfsg-4.0.21/configure	2004-10-01 14:22:20.900250208 +0200
+++ ./configure	2004-10-01 14:22:17.787723384 +0200
@@ -24953,18 +24953,10 @@
     else
       echo "$as_me:$LINENO: result: \"Not found\"" >&5
 echo "${ECHO_T}\"Not found\"" >&6
-      # If this is a linux machine we should barf
       if test "$IS_LINUX" = "true"
       then
-	{ { echo "$as_me:$LINENO: error: This is a linux system and Linuxthreads was not
-found. On linux Linuxthreads should be used.  Please install Linuxthreads
-(or a new glibc) and try again.  See the Installation chapter in the
-Reference Manual for more information." >&5
-echo "$as_me: error: This is a linux system and Linuxthreads was not
-found. On linux Linuxthreads should be used.  Please install Linuxthreads
-(or a new glibc) and try again.  See the Installation chapter in the
-Reference Manual for more information." >&2;}
-   { (exit 1); exit 1; }; }
+        # use nptl instead of linuxthreads
+        CFLAGS="$CFLAGS -DUSE_MUTEX_INSTEAD_OF_RW_LOCKS -DPTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP"
       else
 	echo "$as_me:$LINENO: checking \"DEC threads\"" >&5
 echo $ECHO_N "checking \"DEC threads\"... $ECHO_C" >&6
diff -urN ../tmp-orig/mysql-dfsg-4.0.21/configure.in ./configure.in
--- ../tmp-orig/mysql-dfsg-4.0.21/configure.in	2004-09-07 00:29:39.000000000 +0200
+++ ./configure.in	2004-10-01 14:22:10.295862320 +0200
@@ -1238,13 +1238,10 @@
       with_named_thread="-lpthread"
     else
       AC_MSG_RESULT("Not found")
-      # If this is a linux machine we should barf
       if test "$IS_LINUX" = "true"
       then
-	AC_MSG_ERROR([This is a linux system and Linuxthreads was not
-found. On linux Linuxthreads should be used.  Please install Linuxthreads
-(or a new glibc) and try again.  See the Installation chapter in the
-Reference Manual for more information.])
+        # use nptl instead of linuxthreads
+        CFLAGS="$CFLAGS -DUSE_MUTEX_INSTEAD_OF_RW_LOCKS -DPTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP"
       else
 	AC_MSG_CHECKING("DEC threads")
         if test -f /usr/shlib/libpthread.so -a -f /usr/lib/libmach.a -a -f /usr/ccs/lib/cmplrs/cc/libexc.a

Attachment: pgphmopdso8g5.pgp
Description: PGP signature


Reply to: