Description:
note:
gcc-3.4.2
libc-2.3.3.so + libpthread-2.3.3.so
linux-2.6.9
make bombs with:
...
Making all in mysys
make[2]: Entering directory `/sw/mysql/mysql-4.1.7/mysys'
if gcc -DDEFAULT_BASEDIR=\"/usr/local/lib/mysql\" -DDATADIR="\"/usr/local/lib/mysql/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/lib/mysql\"" -DSHAREDIR="\"/usr/local/lib/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I. -O3 -s -mcpu=pentium4 -I/usr/local/lib/ssl/include -I/usr/local/include/readline -O3 -DDBUG_OFF -O3 -s -mcpu=pentium4 -I/usr/local/lib/ssl/include -I/usr/local/include/readline -MT mf_keycaches.o -MD -MP -MF ".deps/mf_keycaches.Tpo" \
-c -o mf_keycaches.o `test -f 'mf_keycaches.c' || echo './'`mf_keycaches.c; \
then mv -f ".deps/mf_keycaches.Tpo" ".deps/mf_keycaches.Po"; \
else rm -f ".deps/mf_keycaches.Tpo"; exit 1; \
fi
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
mf_keycaches.c:60: error: parse error before "pthread_rwlock_t"
mf_keycaches.c:60: warning: no semicolon at end of struct or union
note that:
$> ls include/{*config.h,*thread*}
-rw------- 1 root staff 26966 Dec 9 21:48 include/my_config.h
-rw-r--r-- 1 503 100 1245 Oct 23 09:28 include/my_no_pthread.h
-rw-r--r-- 1 503 100 24502 Oct 23 09:28 include/my_pthread.h
and:
$> ls /usr/include/pthread.h
-rw-r--r-- 1 root staff 34714 Nov 28 02:47 /usr/include/pthread.h
How to repeat:
$> make distclean
$> ./configure \
--prefix=/usr/local/lib/mysql \
--with-charset=latin1 \
--with-extra-charsets=complex \
--enable-assembler \
--enable-local-infile \
--enable-thread-safe-client \
--with-pthread \
--with-named-thread-libs=-lpthread \
--with-comment \
--with-embedded-server \
--with-embedded-privilege-control \
--with-vio \
--with-openssl=/usr/local/lib/ssl \
--without-bench \
--with-isam
$> make
Description: note: gcc-3.4.2 libc-2.3.3.so + libpthread-2.3.3.so linux-2.6.9 make bombs with: ... Making all in mysys make[2]: Entering directory `/sw/mysql/mysql-4.1.7/mysys' if gcc -DDEFAULT_BASEDIR=\"/usr/local/lib/mysql\" -DDATADIR="\"/usr/local/lib/mysql/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/lib/mysql\"" -DSHAREDIR="\"/usr/local/lib/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I. -O3 -s -mcpu=pentium4 -I/usr/local/lib/ssl/include -I/usr/local/include/readline -O3 -DDBUG_OFF -O3 -s -mcpu=pentium4 -I/usr/local/lib/ssl/include -I/usr/local/include/readline -MT mf_keycaches.o -MD -MP -MF ".deps/mf_keycaches.Tpo" \ -c -o mf_keycaches.o `test -f 'mf_keycaches.c' || echo './'`mf_keycaches.c; \ then mv -f ".deps/mf_keycaches.Tpo" ".deps/mf_keycaches.Po"; \ else rm -f ".deps/mf_keycaches.Tpo"; exit 1; \ fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. mf_keycaches.c:60: error: parse error before "pthread_rwlock_t" mf_keycaches.c:60: warning: no semicolon at end of struct or union note that: $> ls include/{*config.h,*thread*} -rw------- 1 root staff 26966 Dec 9 21:48 include/my_config.h -rw-r--r-- 1 503 100 1245 Oct 23 09:28 include/my_no_pthread.h -rw-r--r-- 1 503 100 24502 Oct 23 09:28 include/my_pthread.h and: $> ls /usr/include/pthread.h -rw-r--r-- 1 root staff 34714 Nov 28 02:47 /usr/include/pthread.h How to repeat: $> make distclean $> ./configure \ --prefix=/usr/local/lib/mysql \ --with-charset=latin1 \ --with-extra-charsets=complex \ --enable-assembler \ --enable-local-infile \ --enable-thread-safe-client \ --with-pthread \ --with-named-thread-libs=-lpthread \ --with-comment \ --with-embedded-server \ --with-embedded-privilege-control \ --with-vio \ --with-openssl=/usr/local/lib/ssl \ --without-bench \ --with-isam $> make