Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41875 - MySQL configure failes with linux 2.6 + NPTL
Summary: MySQL configure failes with linux 2.6 + NPTL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-17 02:47 UTC by Peter Gnodde
Modified: 2004-12-23 01:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gnodde 2004-02-17 02:47:29 UTC
MySQL 4.0.16 and 4.0.17 fail to complete the ./configure when using a 2.6 kernel with a glibc with NPTL enabled. The problem is that the configure script does some sort of literal check for LinuxThreads, which it doesn't find.

The solution is to force MySQL to skip the test and just link to the pthread library, see the patch below (should apply to 4.0.16 as well):

--- mysql-4.0.17.ebuild-orig    2004-02-17 11:43:25.287212596 +0100
+++ mysql-4.0.17.ebuild 2004-02-17 11:46:21.482117401 +0100
@@ -112,6 +112,10 @@
                        || myconf="${myconf} --without-berkeley-db"
        fi

+       # When using NPTL instead of LinuxThreads, MySQL configure complains
+       # about not finding LinuxThreads
+       use nptl && myconf="${myconf} --with-pthreads"
+
        #readline pair reads backwards on purpose, DONT change it around, Ok?
        # this is because it refers to the building of a bundled readline
        # versus the system copy
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-03-17 23:00:30 UTC
since 4.0.18 is stable, is this still an issue ?
Comment 2 Peter Gnodde 2004-03-18 02:02:16 UTC
It does not seem to be a problem anymore, but I've taken a look at the patch that is used to work around the detection and IMHO it's quite a dirty hack and my patch to the ebuild is nicer (although still a hack, only less dirty :).
Comment 3 Michele Noberasco (RETIRED) gentoo-dev 2004-05-31 17:05:15 UTC
Bump.

Time to close this one?
I do have MySQL 4.0.18 up and running nicely with nptl enabled in glibc.
Comment 4 Andy Dustman 2004-09-15 10:49:42 UTC
This was fixed some time ago in the ebuilds, but also note that the current patch to configure.in is also required to make 4.1.4 (not in portage) compile, based on a manual build I did.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-23 01:45:34 UTC
close this as nobody has complained