A heads-up and a call for advice for anyone compiling from source on
Linux amd64:

The latest Debian amd64 "unstable" upgrade of libc6-dev to version
2.3.2.ds1-17 broke compiling MySQL 4.0.21 from source using gcc-3.4.
(Also breaks similarly with the default gcc for this platform,
gcc-3.3.4.)

Specifically, the comment at the top of /usr/include/pthread.h no
longer begins with the word "LinuxThreads", so configure no longer
thinks LinuxThreads is there at all and the configure process stops.

Guessing that it's just a comment change and not a capability change,
I forced "configure" to believe "LinuxThreads" was there, and
configured and compiled normally, but then "make test" quickly ran
into a problem:

 TEST                           RESULT
------------------------------------------
alias                          [ pass ]
./mysql-test-run: line 1119: 25903 Segmentation fault      (core dumped) $@ 
>>$CUR_MYERR 2>&1  (wd: /usr/src/mysql-4.0.21)
alter_table                    [ fail ]

Prior to the libc6-dev upgrade, configuration and compilation with
gcc-3.4 worked smoothly, passed all tests, and has been working well
for us.

The MySQL binaries work for us.  We were compiling with gcc-3.4
because the precompiled binaries section of the manual says it uses
gcc-3.2.1 for amd64, and as I understand it gcc-3.4 handles the
Opteron better than 3.2.

Perhaps LinuxThreads really isn't there?  Perhaps something else
changed about threading?  Maybe there's a more robust test for
LinuxThreads than the comment in pthread.h?

My "configure" line looks like:

===================================================================
# Comment these out to use default compiler.
export CXX=g++-3.4
export CC=gcc-3.4

./configure --prefix=/usr/local/mysql           \
            --exec-prefix=/usr/local/mysql      \
            --with-mysqld-ldflags=-all-static   \
            --disable-shared --enable-thread-safe-client \
            --with-extra-charsets=all
===================================================================

Any advice appreciated.  Thanks,

--
Pete Harlan
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to