From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Godefroy Newsgroups: gmane.os.tru64.managers Subject: Building mysql 5.1.34 on tru64 5.1b Date: Mon, 27 Apr 2009 11:38:03 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240833904 12166 80.91.229.12 (27 Apr 2009 12:05:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 12:05:04 +0000 (UTC) To: Tru64 Unix managers Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Apr 27 14:04:54 2009 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1LyNIK-0003Px-D3 for gotm-tru64-unix-managers@gmane.org; Mon, 27 Apr 2009 11:38:36 +0200 Original-Received: (qmail 14715 invoked by uid 49509); 27 Apr 2009 09:38:25 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14706 invoked from network); 27 Apr 2009 09:38:25 -0000 Original-Received: from emroute4.ornl.gov (160.91.86.27) by sws1.ornl.gov with SMTP; 27 Apr 2009 09:38:25 -0000 Original-Received: from emroute4.ornl.gov ([127.0.0.1]) by emroute4.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KIR004546S0VP@emroute4.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 27 Apr 2009 05:38:24 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.4 #31561) id <0KIR006016S0A5@emroute4.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 27 Apr 2009 05:38:24 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.4 #31561) id <0KIR006026RQ9R@emroute4.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 27 Apr 2009 05:38:24 -0400 (EDT) Original-Received: from orbhost.net (orbhost.com [207.218.123.239]) by emroute4.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KIR005216RPY6@emroute4.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 27 Apr 2009 05:38:14 -0400 (EDT) Original-Received: from [192.168.1.20] (98.76.69-86.rev.gaoland.net [86.69.76.98]) by orbhost.net (8.13.7/8.13.7) with ESMTP id n3R9cAT1300530 for ; Mon, 27 Apr 2009 05:38:12 -0400 (EDT) X-Envelope-from: ldg@ulysium.net User-Agent: Microsoft-Entourage/12.17.0.090302 Thread-Topic: Building mysql 5.1.34 on tru64 5.1b Thread-Index: AcnHG9xA0HwjN0gb1kSJXH4imH9pUQ== X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spam4.ornl.gov X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00,BOTNET_SOHO, RCVD_IN_BRBL_RELAY autolearn=no version=3.2.5 X-Spam-Relay-Country: US FR Xref: news.gmane.org gmane.os.tru64.managers:9383 Archived-At: 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