FreeBSD 5.2.1-RELEASE and Mit-threads/Mysql install problems

Rudi Starcevic tech at wildcash.com
Thu Jul 1 19:23:37 PDT 2004


Hi,

I'm trying to compile and install Mysql 4.0.20 onto FreeBSD 
5.2.1-RELEASE and
have been having some problems. After not finding a fix on the web I 
thought I'd ask.

I think my problem is around this:
/usr/local/src/mysql-4.0.20/mit-pthreads/include/sys/__stdlib.h:40:26: 
machine/ansi.h: No such file or directory

After downloading and installing Cvsup via the ports I've pulled down 
the source into my /usr/src directory.
I'm then able to compile  /usr/ports/devel/linuxthreads.

So far so good. This is a fresh install a couple hours old.

Now I try to compile mysql from source, not using the ports tree.

This is my configure line:
./configure
--prefix=/usr/local/mysql
--with-mysqld-user=mysql
--with-unix-socket-path=/tmp/mysql.sock
--with-mysqld-ldflags=-all-static
--enable-assembler
--with-mit-threads

I hope to continue after this installing Mysql into a chroot.
That's why I have '--with-mysqld-ldflags=-all-static'.

The configure work OK but I get this error while 'make' runs:

Making all in mit-pthreads
gcc -O -pipe -mcpu=pentiumpro -O3 -DDBUG_OFF   -Werror 
-I/usr/local/src/mysql-4.0.20/mit-pthreads -I/usr/local/src/m
ysql-4.0.20/mit-pthreads/include 
-I/usr/local/src/mysql-4.0.20/mit-pthreads/include -DPTHREAD_KERNEL  -c 
/usr/local/
src/mysql-4.0.20/mit-pthreads/pthreads/cleanup.c
In file included from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/time.h:46,
                 from /usr/include/sys/time.h:304,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/pthread/machdep.h:10,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/pthread.h:49,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/pthreads/cleanup.c:42:
/usr/local/src/mysql-4.0.20/mit-pthreads/include/sys/__time.h:46:26: 
machine/ansi.h: No such file or directory
In file included from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/sys/__time.h:47,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/time.h:46,
                 from /usr/include/sys/time.h:304,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/pthread/machdep.h:10,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/pthread.h:49,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/pthreads/cleanup.c:42:
/usr/include/machine/limits.h:41:2: #warning "machine/limits.h is 
deprecated.  Include sys/limits.h instead."
In file included from 
/usr/local/src/mysql-4.0.20/mit-pthreads/include/stdlib.h:46,
                 from 
/usr/local/src/mysql-4.0.20/mit-pthreads/pthreads/cleanup.c:44:
/usr/local/src/mysql-4.0.20/mit-pthreads/include/sys/__stdlib.h:40:26: 
machine/ansi.h: No such file or directory
In file included from 
/usr/local/src/mysql-4.0.20/mit-pthreads/pthreads/cleanup.c:44:
/usr/local/src/mysql-4.0.20/mit-pthreads/include/stdlib.h:119: error: 
syntax error before '*' token
/usr/local/src/mysql-4.0.20/mit-pthreads/include/stdlib.h:120: error: 
syntax error before "wchar_t"
/usr/local/src/mysql-4.0.20/mit-pthreads/include/stdlib.h:121: error: 
syntax error before '*' token
/usr/local/src/mysql-4.0.20/mit-pthreads/include/stdlib.h:122: error: 
syntax error before '*' token
*** Error code 1

Stop in /usr/local/src/mysql-4.0.20/mit-pthreads.
*** Error code 1

Stop in /usr/local/src/mysql-4.0.20.
*** Error code 1

Stop in /usr/local/src/mysql-4.0.20.

Please help.

Many thanks
Regards Rudi.



More information about the freebsd-smp mailing list