You have to run configure
with the
--with-named-thread-libs=-lc_r
option.
The pthreads library for FreeBSD doesn't contain the sigwait()
function and there are some bugs in it. To fix this, get the
`FreeBSD-3.0-libc_r-1.0.diff' file from the
FreeBSD area of the
MySQL FTP site and apply it in the
`/usr/src/lib/libc_r/uthread' directory. Then follow the instructions
that can be found with man pthread
about how to recompile the
libc_r
library.
You can test if you have a ``modern'' libpthread.a
with this command:
shell> nm /usr/lib/libc_r.a | grep sigwait
If the above doesn't find sigwait
, you must use the patch above
and recompile libc_r
.