Hi,

I'm using a kernel 2.4.25 system (Slackware distro) installed
with gcc 3.2.3.

I've tried both 4.0 and 5.0 source tarballs and when
configured with :

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql \
                --with-openssl

and compiled, I always end up with:

gcc -DDEFAULT_BASEDIR=\"/usr/local/mysql\" -DDATADIR="\"/usr/local/mysql/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I. -O3 -DDBUG_OFF -c `test -f my_semaphore.c || echo './'`my_semaphore.c
In file included from ../include/my_semaphore.h:38,
from my_semaphore.c:23:
/usr/include/semaphore.h:34: field `__sem_lock' has incomplete type
make[2]: *** [my_semaphore.o] Error 1
make[2]: Leaving directory `/root/curinsts/mysql-5.0.0-alpha/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/curinsts/mysql-5.0.0-alpha'
make: *** [all] Error 2


Now, I've searched with google and came up with a link stating
that gcc 3.2.3  doesn't work with the current kernel 2.4.25.
And it gave me an example sem.c file:

8>< -------------------- 8><

#include <semaphore.h>

8>< -------------------- 8><

and I compiled with : gcc -c sem.c

It works and creates a sem.o file.

Is there a more complete test file to check whether it is a kernel
issue or a compiler issue?

Thanks

Edmund


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to