>Deja appear to have timed the thread out :-(
>Any chance of a repost or an email pls anyone?
Ask and yea shall receive.
Note, however, that this was on i386.
Newsgroups: comp.unix.bsd.openbsd.misc
Subject: MySQL compilation on OpenBSD 2.6
Date: 5 Feb 2000 00:27:53 GMT
These are the things I did to get MySQL compiled on OpenBSD 2.6.
Unfortunately, I didn't get around to sending in a bug report to whoever
about it... sorry.
1. Running configure
You can use the ports tree to download and extract the MySQL tar
archive. However, you need to run configure manually:
export CFLAGS=-pthread
export CXXFLAGS=-pthread
cd /usr/ports/databases/mysql/work/mysql-3.22.30/
./configure
As far as I know, you don't need to specify the MIT threads option
on the configure command line.
2. Patch my_pthread.c
Patch mysys/my_pthread.c with this:
--- my_pthread.c-orig Tue Jan 25 12:05:22 2000
void *my_pthread_getspecific_imp(pthread_key_t key)
{
void *value;
- if (pthread_getspecific(key,(void *) &value))
- return 0;
+ value = pthread_getspecific(key);
return value;
}
{
int error;
if (!attr)
- error=pthread_mutex_init(mp,pthread_mutexattr_default);
+ error=pthread_mutex_init(mp,NULL);
else
error=pthread_mutex_init(mp,*attr);
{
int error;
if (!attr)
- error=pthread_cond_init(mp,pthread_condattr_default);
+ error=pthread_cond_init(mp,NULL);
else
error=pthread_cond_init(mp,*attr);
return error;
I wasn't sure if these were problems with OpenBSD or MySQL, so I didn't
get around to finding out who to talk about this too. Guess I was just
being lazy.
Let me know if you have further problems,
James Graves
--
____________________________________________________________________________
Free Speech Under Attack in the UK: http://www.liberty.org.uk/cacib/