Package: libmysqlclient-lgpl
Version: 3.23.56-2
Severity: important
Tags: patch

When building 'libmysqlclient-lgpl' on amd64,
I get the following error:

checking for atomic operations... atomic_add atomic_sub 
checking for int8... no
checking "LinuxThreads"... "Not found"
configure: 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.
make: *** [clean] Error 1

This occurs because amd64 uses nptl as default instead of the legacy 
linuxthreads. 

With the attached patch 'libmysqlclient-lgpl' can be compiled on amd64.

The same patch has been successfully applied to the mysql-dfsg and 
mysql-dfsg-4.1 packages some time ago.

This is an important bug fix for the amd64 sarge release because quite a 
few other packages still depend on libmysqlclient10-dev:

cyrus-sasl2, cyrus-sasl2-mit, exim4, gpsdrive, ircii-pana, linesrv, motion
mp3kult, mydns, mysql-navigator, pam-mysql, pike7.2, pike7.4, pike7.6,
pimppa, postfix, prokyon3, pure-ftpd, www-sql, xlc.

I apologize for not having filed this patch earlier.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libmysqlclient-lgpl-3.23.56/configure ./configure
--- ../tmp-orig/libmysqlclient-lgpl-3.23.56/configure   2003-04-13 
22:01:14.000000000 +0200
+++ ./configure 2005-04-25 14:18:21.855079902 +0200
@@ -12602,18 +12602,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/libmysqlclient-lgpl-3.23.56/configure.ac ./configure.ac
--- ../tmp-orig/libmysqlclient-lgpl-3.23.56/configure.ac        2003-04-13 
22:00:17.000000000 +0200
+++ ./configure.ac      2005-04-25 14:18:21.857079598 +0200
@@ -791,13 +791,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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to