Installing mysql 5 with linuxthreads from ports
Valerio daelli
valerio.daelli at gmail.com
Tue Dec 20 02:57:53 PST 2005
Hi
I have problem installing mysql 50 on FreeBSD 5.4.
I am trying to install it with linuxthreads and I keep getting these
errors:
$ cd /usr/ports/databases/mysql50-server
$ make -DWITH_LINUXTHREADS -DDATA_DIR=/data/mysql
CONFIGURE_ARGS="--without-debug --without-readline \
--without-libedit --without-bench
--without-extra-tools \
--with-libwrap --with-mysqlfs --with-vio
--with-low-memory \
--enable-thread-safe-client --enable-assembler
--without-berkeley-db \
--with-named-thread-libs=-pthread
--prefix=/usr/local" install
.....
if c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\""
-DDATADIR="\"/data/mysql\"" -DSHAREDIR="\"/usr/local/share/mysql\""
-DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include
-I../include -I../regex -I. -DDBUG_OFF -O -pipe -D__USE_UNIX98
-D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O
-pipe -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
-I/usr/local/include/pthread/linuxthreads -felide-constructors -fno-rtti
-fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti
-DMYSQLD_NET_RETRY_COUNT=1000000 -MT mysqld.o -MD -MP -MF ".deps/mysqld.Tpo"
-c -o mysqld.o mysqld.cc; then mv -f ".deps/mysqld.Tpo" ".deps/mysqld.Po";
else rm -f ".deps/mysqld.Tpo"; exit 1; fi
mysqld.cc: In function `int main(int, char**)':
mysqld.cc:3266: error: `pthread_setprio' undeclared (first use this
function)
mysqld.cc:3266: error: (Each undeclared identifier is reported only once for
each function it appears in.)
*** Error code 1
Stop in /usr/ports/databases/mysql50-server/work/mysql-5.0.16/sql.
*** Error code 1
I found the definition of the function pthread_setprio in
/usr/local/include/mysql/my_pthread.h.
Does anybody how to fix this error?
Thanks
Valerio
More information about the freebsd-questions
mailing list