Hi!
>>>>> "Paul" == Paul Schreiber <shrub@stripped> writes:
Paul> okay, i have a cobalt raq2 and in the past have been able to sucessfully install
Paul> mysql 3.22.27. i even wrote detailed instructions:
Paul> http://www.paulschreiber.com/download/mysql-php-apache-raq.txt
Paul> system info:
Paul> Linux raq.mydomain.com 2.0.34C52_SK #1 Tue Nov 30 18:14:40 PST 1999 mips unknown
Paul> glibc-debug-2.0.7-29C2
Paul> egcs-1.0.2-9
Paul> libstdc++-2.8.0-9
Paul> egcs-c++-1.0.2-9
Paul> glibc-profile-2.0.7-29C2
Paul> egcs-g77-1.0.2-9
Paul> egcs-objc-1.0.2-9
Paul> libstdc++-devel-2.8.0-9
Paul> glibc-2.0.7-29C2
Paul> glibc-devel-2.0.7-29C2
Paul> I can't get 3.22.32 (or 3.22.30, fwiw) to build.
<cut>
Paul> can someone give me a hand with this?
<cut>
Paul> /home/sites/home/users/admin/mysql-3.22.32/mysys/thr_mutex.c:34: undefined
> reference
Paul> to `pthread_mutexattr_settype'
If this is your first installation for cobalt I would recommend you to
try MySQL 3.23.12 instead of 3.22; MySQL 3.23 is a bit more portable
than 3.22 and also has a bit more and also is more tested on 64 bit
processors!
Anyway, you can also try the following diff:
*** /home/my/monty/master/mysql-3.22.29/mysys/thr_mutex.c Sun Dec 26 02:34:45 1999
--- ./thr_mutex.c Wed Mar 1 05:05:47 2000
***************
*** 4,18 ****
/* This makes a wrapper for mutex handling to make it easier to debug mutex */
#include <global.h>
! #ifdef HAVE_LINUXTHREADS /* Some extra safety */
! #define __USE_UNIX98
#endif
#include <m_string.h>
#if defined(THREAD) && defined(SAFE_MUTEX)
! #undef SAFE_MUTEX /* Avoid safe_mutex redefinitions */
#include <my_pthread.h>
!
/* Remove wrappers */
#undef pthread_mutex_init
#undef pthread_mutex_lock
--- 4,18 ----
/* This makes a wrapper for mutex handling to make it easier to debug mutex */
#include <global.h>
! #if defined(HAVE_LINUXTHREADS) && !defined (__USE_UNIX98)
! #define __USE_UNIX98 /* To get rw locks under Linux */
#endif
#include <m_string.h>
#if defined(THREAD) && defined(SAFE_MUTEX)
! #undef SAFE_MUTEX /* Avoid safe_mutex redefinitions */
#include <my_pthread.h>
! #ifndef DO_NOT_REMOVE_THREAD_WRAPPERS
/* Remove wrappers */
#undef pthread_mutex_init
#undef pthread_mutex_lock
***************
*** 23,28 ****
--- 23,29 ----
#ifdef HAVE_NONPOSIX_PTHREAD_MUTEX_INIT
#define pthread_mutex_init(a,b) my_pthread_mutex_init((a),(b))
#endif
+ #endif
int safe_mutex_init(safe_mutex_t *mp, const pthread_mutexattr_t *attr)
{
***************
*** 31,37 ****
{
pthread_mutexattr_t tmp;
pthread_mutexattr_init(&tmp);
! pthread_mutexattr_settype(&tmp,PTHREAD_MUTEX_ERRORCHECK_NP);
pthread_mutex_init(&mp->global,&tmp);
pthread_mutex_init(&mp->mutex, &tmp);
pthread_mutexattr_destroy(&tmp);
--- 32,38 ----
{
pthread_mutexattr_t tmp;
pthread_mutexattr_init(&tmp);
! pthread_mutexattr_setkind_np(&tmp,PTHREAD_MUTEX_ERRORCHECK_NP);
pthread_mutex_init(&mp->global,&tmp);
pthread_mutex_init(&mp->mutex, &tmp);
pthread_mutexattr_destroy(&tmp);
Regards,
Monty