[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Current port of MySql-3.22.22
On Sun, 19 Dec 1999, James Phillips [dengue] wrote:
> Under 2.6 the current (as of Sun Dec 19 14:31:09 CST 1999) cvs of the
> MySql port fails to compile. Leading up to this is:
>
> /usr/include/pthread.h:352: warning: #warning "included <pthread.h>
> without -pthread compiler option"
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -O2
> -DDBUG_OFF -c str2int.c
> In file included from ../include/global.h:50,
> from str2int.c:25:
> /usr/include/pthread.h:352: warning: #warning "included <pthread.h>
> without -pthread compiler option"
> In file included from ../include/my_sys.h:21,
> from str2int.c:28:
> ../include/my_pthread.h:190: syntax error before `thread_id'
> ../include/my_pthread.h:203: syntax error before `pthread_mutex_t'
> ../include/my_pthread.h:206: syntax error before `pthread_t'
> ../include/my_pthread.h:209: syntax error before `*'
> ../include/my_pthread.h:213: syntax error before `*'
> ../include/my_pthread.h:214: syntax error before `*'
> ../include/my_pthread.h:263: syntax error before `*'
> ../include/my_pthread.h:267: syntax error before `*'
> ../include/my_pthread.h:296: syntax error before `*'
> ../include/my_pthread.h:309: syntax error before `key'
> ../include/my_pthread.h:370: syntax error before `pthread_cond_t'
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql/work/mysql-3.22.22/strings.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql/work/mysql-3.22.22.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql/work/mysql-3.22.22.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql.
If you are really stuck you can install yourself from source. Go
to www.mysql.org, go to the downloads page, select the release version you
want, and click to download the tar-gzipped source. There should also be
a link to get the mit-threads software, grab that too. Now tar zxvf the
source for mit threads and do something like './configure' then 'make' and
finally 'make install', or better yet follow the readme for configure.
Anyway, you will probably luck out and find a link off the mysql page to
get the package with mit threads included. Build and install that first.
Then, when you go to ./configure for mysql you will need to specify you
want to use mit threads by using the --with-mit-threads option. Don't
quote me on that, for the exact syntax look in the configure readme file.
Then make and make install for mysql. And you should be done. Only other
possible problem you should/could encounter is that virtual memory
exhaustion problem where you may need to do 'ulimit -S -d 240000' as root
before you do 'make' for mysql.
Now this may not be the help you were looking for, but these are
the steps I followed before and it worked fine for me. The readme's that
come with the mysql packages are really good in my opinion as well. Hope
that helps.
Rick
>
> [dengue@eris.deadly.org]$ uname -a
> OpenBSD eris.deadly.org 2.6 GENERIC#1 i386
>
> system is a stock 2.6 install with all patches from 2.6.tar.gz (except the
> fortran patch) applied.
>
> thank you,
>
> james phillips
>
>