r927 - branches/2.4-branch/BOOK/chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sun Dec 3 14:41:44 PST 2006


Author: robert
Date: 2006-12-03 15:41:41 -0700 (Sun, 03 Dec 2006)
New Revision: 927

Modified:
   branches/2.4-branch/BOOK/chapter06/glibc.xml
Log:
Include stdlib in the memstream tests, again

Modified: branches/2.4-branch/BOOK/chapter06/glibc.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter06/glibc.xml	2006-12-03 21:43:14 UTC (rev 926)
+++ branches/2.4-branch/BOOK/chapter06/glibc.xml	2006-12-03 22:41:41 UTC (rev 927)
@@ -126,6 +126,15 @@
 <screen role="aslr"><userinput>sed 's/^# if defined I386_USE_SYSENTER$/& \&\& defined SHARED/' \
     -i.orig sysdeps/unix/sysv/linux/i386/sysdep.h</userinput></screen>
 
+    <para>The Linux Threads port is no longer supported by Glibc, and neither
+    are the test suites. We need to include <filename>stdlib.h</filename> in a
+    few tests so they will build without errors. The following command will
+    add <filename>stdlib.h</filename> after <filename>stdio.h</filename> is
+    included:</para>
+
+<screen><userinput>sed 's/#include <stdio.h>/&\n#include <stdlib.h>/' \
+    -i.orig libio/{bug-memstream1,bug-wmemstream1,tst-memstream{1,2}}.c</userinput></screen>
+
     <para role="aslr">A few of Glibc's tests explicitly link to the non-pie
     startfiles and will crash if linked with <option>-pie</option>. So we must add
     <option>-nopie</option> for these tests:</para>




More information about the hlfs-book mailing list