aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc.xml
diff options
context:
space:
mode:
authorBryan Kadzban <bryan@linuxfromscratch.org>2009-06-12 05:25:14 +0000
committerBryan Kadzban <bryan@linuxfromscratch.org>2009-06-12 05:25:14 +0000
commit2594b0a146eb4f5f16c71dc2d916b0d6a7297560 (patch)
tree7bf51a368840e68b40af00c94e858b8ef18643e1 /chapter06/glibc.xml
parent8e66c9dc50b02028e13b713df79810384f041872 (diff)
Add a sed to glibc to fix the constants passed to futex(2) in 32-bit builds. Seems to fix testsuite hangs (the tst-mutex9 process never exits, for instance).
This change is in upstream git, so this can be reverted once we upgrade glibc. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8944 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r--chapter06/glibc.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index 7089efbf0..9aee47585 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -108,6 +108,14 @@ unset DL</userinput></screen>
sed -i '/tst-fgetws-ENV/ a\
tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile</userinput></screen>
+ <!-- This sed can be removed for any glibc newer than 2.10.1 (along with the
+ matching sed in chapter 5). See glibc bug 10262. -->
+ <para>Fix an error in the constants that get passed to the futex system
+ call in some cases, causing certain pthread_mutex operations to fail:</para>
+
+<screen><userinput remap="pre">sed -i -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \
+ nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S</userinput></screen>
+
<para>The Glibc documentation recommends building Glibc outside of the source
directory in a dedicated build directory:</para>