List:General Discussion« Previous MessageNext Message »
From:Jonathan Disher Date:January 28 2003 11:33pm
Subject:Re: Configure prob with FreeBSD/Linuxthreads
View as plain text  
On Tue, 28 Jan 2003, Jesse Sheidlower wrote:

>
> I've been trying to install MySQL 4.0.9 on FreeBSD 4.7, and
> have been getting stuck in the configure phase. I'd be
> grateful for any suggestions.
>
> I'm running FreeBSD 4.7 on a single-processor 1.4GHz PIII,
> using gcc 2.95.4, and trying to compile with
> Linuxthreads. I've been using the instructions Jeremy Zawodny
> posted in his blog at
> http://jeremy.zawodny.com/blog/archives/000458.html .
>
> I modified Jeremy's command to eliminate some of the obvious
> things I didn't need, and started with:

Try this, this is what I used (I didn't need things like innodb, but
needed static linkings):

king as jdisher# more foo
CFLAGS="-O3 -pipe -mcpu=pentiumpro -D__USE_UNIX98 -D_REENTRANT
-D_THREAD_SAFE -DHAVE_BROKEN_REALPATH -I/usr/local/include/pthread/li
nuxthreads" CXXFLAGS="-O3 -pipe -mcpu=pentiumpro -D__USE_UNIX98
-D_REENTRANT -D_THREAD_SAFE -DHAVE_BROKEN_REALPATH -I/usr/local/incl
ude/pthread/linuxthreads -felide-constructors -fno-rtti -fno-exceptions"
./configure --with-mit-threads=no --enable-assembler --with
out-innodb --with-named-thread-libs="-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
-I/usr/local/include/pthread/linuxthreads -L/usr/local/lib
-llthread -llgcc_r" --enable-thread-safe-client --with-extra-charsets=none
--without-debug --with-client-ldflags=-all-static --with-
mysqld-ldflags=-all-static

Put it all on one line, in a plaintext file, and sh <filename>.  Sorry for
the formatting nightmare.

FYI, that successfully built 3.23.54 -AND- 4.0.9 with linuxthreads on
FreeBSD 5-RELEASE.  I'm still testing, however, as I'm not overly
impressed with the performance increase (MySQL 3.23.54 on a single Athlon
MP2200+ performs a job of ours faster than a dual Athlon MP2200+ (same
hardware, SMP vs NonSMP kernel)).  I dunno.

-j

Thread
Configure prob with FreeBSD/LinuxthreadsJesse Sheidlower28 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsJeremy Zawodny28 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsJesse Sheidlower28 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher29 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJeremy Zawodny29 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson28 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher29 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson29 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsGianluca Sordiglioni29 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher30 Jan
        • Re: Configure prob with FreeBSD/LinuxthreadsGianluca Sordiglioni30 Jan
          • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher30 Jan
            • Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
              • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson31 Jan
                • Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson31 Jan
Re: Configure prob with FreeBSD/LinuxthreadsEric Frazier2 Feb