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: MySQL on Tru64 (summary) Date: Sat, 09 May 2009 17:53:12 +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 1241884436 10156 80.91.229.12 (9 May 2009 15:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2009 15:53:56 +0000 (UTC) To: Tru64 Unix managers Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sat May 09 17:53:44 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 1M2oru-00024g-RZ for gotm-tru64-unix-managers@gmane.org; Sat, 09 May 2009 17:53:43 +0200 Original-Received: (qmail 18343 invoked by uid 49509); 9 May 2009 15:53:33 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18333 invoked by uid 49501); 9 May 2009 15:53:33 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 0.594119 secs); 09 May 2009 15:53:33 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 9 May 2009 15:53:32 -0000 Original-Received: from emroute3.ornl.gov ([127.0.0.1]) by emroute3.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KJD0041WW58D1@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Sat, 09 May 2009 11:53:32 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.4 #31561) id <0KJD00401W58X3@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Sat, 09 May 2009 11:53:32 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.4 #31561) id <0KJD00402W4XWX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Sat, 09 May 2009 11:53:32 -0400 (EDT) Original-Received: from orbhost.net (orbhost.com [207.218.123.239]) by emroute3.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KJD003CBW4WSG@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Sat, 09 May 2009 11:53:21 -0400 (EDT) Original-Received: from [192.168.1.20] (25.94.85-79.rev.gaoland.net [79.85.94.25]) by orbhost.net (8.13.7/8.13.7) with ESMTP id n49FrIS2099042 for ; Sat, 09 May 2009 11:53:19 -0400 (EDT) X-Envelope-from: ldg@ulysium.net User-Agent: Microsoft-Entourage/12.17.0.090302 Thread-Topic: MySQL on Tru64 (summary) Thread-Index: AcnQvkGdlWF9QzzniEql6K9EH1tg4Q== X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spam4.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-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:9386 Archived-At: Hello fellow Tru64ers, I'm posting my findings on MySQL v5.1.34 installation on Tru64 V5.1b. After a lot of trial and errors, and a little bit of tweaking of switches and some source code patching, I'm sharing what I found so others will save time doing the same thing. One important thing to note is that using gcc/g++ to compile MySQL causes the binaries to generate a lot of "unaligned access" warnings, for the deamon and the client, even the tools. I haven't been able to get the test suite successfully so far. When compiling with the Tru64 native cc/cxx and the right combination of flags, it's possible to compile after having patched a source file to work around an error on FE_TONEAREST which isn't found although HAVE_FESETROUND was set during configure. (I haven't found out how that can happen and do the right kind of fix) The file I patched is sql/mysqld.cc where that error occurs: #ifdef HAVE_FESETROUND /* Set FPU rounding mode to "round-to-nearest" */ fesetround(FE_TONEAREST); #endif /* HAVE_FESETROUND */ I'm sure there is a better way to fix this problem but I just patched it by adding this before the snippet above: #ifdef UNDEF_HAVE_FESETROUND #undef HAVE_FESETROUND #endif And I added a define in the flags for UNDEF_HAVE_FESETROUND. I used the flags as follows: CFLAGS="-O4 -g3 -w -pthread -ansi_alias -arch host -ansi_args -fast -inline speed -speculate all" CXXFLAGS="-O4 -w -pthread -ansi_alias -ansi_args -fast -inline speed -arch host -nortti -DUNDEF_HAVE_FESETROUND" The "unaligned access" warnings all go away when using cc/cxx to compile, and I haven't had any core dumps since either. The test suite has too many issues and I haven't been able to fully test it. I also used those configure switches among others: --with-pthread --enable-thread-safe-client --enable-local-infile --with-error-inject --with-atomic-ops=smp --with-named-thread-libs="-lpthread -lmach -lexc -lc" --with-named-curses-libs=-lncurses --with-mysqld-ldflags=-static --with-big-tables --with-mysqlmanager=no --with-readline --with-server-suffix=max --without-ndb-debug I turned off nbd and had to use my openssl instead of yassl because yassl won't compile properly. I also found out that using --with-fast-mutexes is also the cause of pthread related errors with undefined identifiers which I could not solve. I'm thinking it has something to do with the name mangling happening in pthread.h and only on some of the identifiers, not all of them, which makes no sense. Those errors were happening on pthread_mutex_unlock which isn't defined while __pthread_mutex_unlock is the one that is defined in pthread.h . For a reason I still don't understand, the pthread_mutex_lock identifier isn't causing that error, the only other identifier causing the same error is pthread_mutex_destroy for the same reason, as __pthread_mutex_destroy is actually also defined. Anyway, I couldn't figure out why those errors were happening on those two symbols and not the others, as they're all defined in pthread.h, so turning off the fast mutexes was the only solution I found. The two options below couldn't not be used as such because using openssl instead of built-in yassl prevents their use: --with-mysqld-ldflags=-all-static \ --with-client-ldflags=-all-static So I only used --with-mysqld-ldflags=-static instead. As far as plugins are concerned, I turned off several of them and only kept what I needed: --with-plugins=federated,innobase \ --without-plugin-daemon_example \ --without-plugin-ftexample \ --without-plugin-archive \ --without-plugin-blackhole \ --without-plugin-example \ This sums it up for now, at least I can connect with the client and it seems to work fine. I would like to run the full test suite, so I would like to find fixes for that. Cheers, -- Didier Godefroy mailto:dg@ulysium.net