Date: Fri, 02 Jul 2004 12:21:21 +1000 From: Rudi Starcevic <tech@wildcash.com> To: freebsd-smp@freebsd.org Subject: FreeBSD 5.2.1-RELEASE and Mit-threads/Mysql install problems Message-ID: <40E4C6A1.10403@wildcash.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40E4C6A1.10403>