|
@@ -43,6 +43,16 @@
|
|
|
<sect2 role="installation">
|
|
|
<title>Installation of Glibc</title>
|
|
|
|
|
|
+ <!-- This sed can be removed for any glibc newer than 2.10.1 (along with the
|
|
|
+ matching sed in chapter 6). 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">cp nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig}
|
|
|
+sed -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \
|
|
|
+ <nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig \
|
|
|
+ >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>
|
|
|
|