Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2005 14:31:18 -0400
From:      John Nielsen <lists@jnielsen.net>
To:        stable@freebsd.org
Cc:        sysadmin@alexdupre.com
Subject:   MySQL 4.1, GCC 3.x, FreeBSD 4.x
Message-ID:  <200509211431.19141.lists@jnielsen.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509211431.19141.lists>