Building mysql 5.1.34 on tru64 5.1b
Didier Godefroy <[email protected]> Mon, 27 Apr 2009 11:38:03 +0200
| Newsgroups | gmane.os.tru64.managers |
|---|---|
| Message-ID | <C61B499B.282DC%[email protected]> |
Hello all,
I've been having troubles building mysql 5.1 on tru64 v5.1b.
I've tried different versions of mysql, a bit older, somewhat recent and the
latest, even the alpha 6.0 and it's very difficult to get a successful
build.
I've posted on the mysql list but nobody seems interested in tru64 nowadays.
I was able, after a few tweaks to get a successful build using gcc 4.0.2 but
the resulting binaries cause a lot of unaligned access warnings and I can't
even run the test suite, plus sometimes get core dumps.
I was hoping that compiling with cc/cxx would at least fix the unaligned
access warnings and perhaps prevent any core dumps, but I just can't get it
to build all the way.
The show stoppers right now it all related to pthreads, with undefined
identifiers:
Making all in csv
gmake[2]: Entering directory
`/usr/local/mysql5/src/mysql-5.1.34/storage/csv'
source='transparent_file.cc' object='libcsv_a-transparent_file.o' libtool=no
\
DEPDIR=.deps depmode=tru64 /bin/bash ../../depcomp \
cxx -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include
-I../../regex -I../../sql -I. -pthread -I/usr/local/ssl/include -O4
-pthread -D_POSIX_PII_SOCKET -DUNDEF_HAVE_GETHOSTBYNAME_R
-DSNPRINTF_RETURN_TRUNC -I/usr/include/cxx -I/usr/include/cxx_cname
-I/usr/include -I/usr/include.dtk -c -o libcsv_a-transparent_file.o `test -f
'transparent_file.cc' || echo './'`transparent_file.cc
cxx: Error: ../../sql/log.h, line 140: identifier "pthread_mutex_destroy" is
undefined
~st_log_info() { pthread_mutex_destroy(&lock);}
-------------------^
cxx: Error: ../../sql/log.h, line 401: identifier "pthread_mutex_unlock" is
undefined
inline void unlock_index() { pthread_mutex_unlock(&LOCK_index);}
-------------------------------^
cxx: Info: 2 errors detected in the compilation of "transparent_file.cc".
gmake[2]: *** [libcsv_a-transparent_file.o] Error 1
This makes no sense to me at all, because pthread_mutex_destroy and
pthread_mutex_unlock are defined in pthread.h along with all the others like
pthread_mutex_lock ... and none of the others come up as undefined.
Here is an example of 2 lines of code from sql/log.h, those lines are
consecutives:
inline void lock_index() { pthread_mutex_lock(&LOCK_index);}
inline void unlock_index() { pthread_mutex_unlock(&LOCK_index);}
The first one doesn't cause an error while the second returns that undefined
identifier. Why?
How can I patch this?
Any help would be appreciated, tru64 is being neglected far too much
nowadays...
--
Didier Godefroy
mailto:[email protected]