From owner-freebsd-stable@FreeBSD.ORG Wed Sep 21 18:31:33 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 971B816A430 for ; Wed, 21 Sep 2005 18:31:33 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 275DF43D49 for ; Wed, 21 Sep 2005 18:31:33 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id j8LIVTVw090538; Wed, 21 Sep 2005 11:31:30 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: stable@freebsd.org Date: Wed, 21 Sep 2005 14:31:18 -0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509211431.19141.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on ns1.jnielsen.net X-Virus-Status: Clean Cc: sysadmin@alexdupre.com Subject: MySQL 4.1, GCC 3.x, FreeBSD 4.x X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 18:31:33 -0000 Should it be possible to compile and run MySQL 4.1 with GCC 3.4 on a FreeBSD 4.11 machine? I have a server which, for the time being at least, cannot be updated to FreeBSD 5. I'm currently running the stock MySQL 4.1.14 compiled from the port with no make flags. I would like to experiment with different build options/flags in the hopes of boosting performance. Specifically, I'd like to build it with linuxthreads and optimized C flags, but I am wary of using -O3 with gcc 2.9. Am I just being paranoid? When I try this from databases/mysql41-server: make WITH_LINUXTHREADS=yes BUILD_OPTIMIZED=yes USE_GCC=3.4 I get this: if gcc34 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I/usr/local/include -DDBUG_OFF -O -pipe -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O3 -fno-omit-frame-pointer -MT conf_to_src.o -MD -MP -MF ".deps/conf_to_src.Tpo" -c -o conf_to_src.o conf_to_src.c; then mv -f ".deps/conf_to_src.Tpo" ".deps/conf_to_src.Po"; else rm -f ".deps/conf_to_src.Tpo"; exit 1; fi /usr/local/bin/libtool15 --preserve-dup-deps --mode=link gcc34 -DDBUG_OFF -O -pipe -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O3 -fno-omit-frame-pointer -L/usr/local/lib -o conf_to_src conf_to_src.o xml.o ctype.o bcmp.o -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -lcrypt -lm -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r libtool15: link: unable to infer tagged configuration libtool15: link: specify a tag with `--tag' *** Error code 1 Stop in /usr/ports/databases/mysql41-server/work/mysql-4.1.14/strings. *** Error code 1 Stop in /usr/ports/databases/mysql41-server/work/mysql-4.1.14. *** Error code 1 Stop in /usr/ports/databases/mysql41-server/work/mysql-4.1.14. *** Error code 1 Stop in /usr/ports/databases/mysql41-server. Is this something simple to fix/work around? I'm not at all familiar with libtool. Any input appreciated. Thanks, JN