tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Building mysql 5.1.34 on tru64 5.1b
@ 2009-04-27  9:38 Didier Godefroy
  0 siblings, 0 replies; only message in thread
From: Didier Godefroy @ 2009-04-27  9:38 UTC (permalink / raw)
  To: Tru64 Unix managers

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:dg@ulysium.net




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-27  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27  9:38 Building mysql 5.1.34 on tru64 5.1b Didier Godefroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox