r1178 - in trunk/BOOK: chapter01 chapter05 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Mon Jun 25 16:48:33 PDT 2007


Author: robert
Date: 2007-06-25 17:48:32 -0600 (Mon, 25 Jun 2007)
New Revision: 1178

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/glibc.xml
   trunk/BOOK/chapter06/glibc.xml
Log:
Include additional header in getcwd.c, and some tests, to build with linuxthreads

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-06-23 09:34:10 UTC (rev 1177)
+++ trunk/BOOK/chapter01/changelog.xml	2007-06-25 23:48:32 UTC (rev 1178)
@@ -49,6 +49,16 @@
 -->
 
     <listitem>
+      <para>June 25th, 2007</para>
+      <itemizedlist>
+        <listitem>
+          <para>[robert]: Include additional header in getcwd.c, and some
+          tests, to build with linuxthreads.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>June 17th, 2007</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter05/glibc.xml
===================================================================
--- trunk/BOOK/chapter05/glibc.xml	2007-06-23 09:34:10 UTC (rev 1177)
+++ trunk/BOOK/chapter05/glibc.xml	2007-06-25 23:48:32 UTC (rev 1178)
@@ -47,6 +47,13 @@
 
 <screen vendor="2.4"><userinput>tar xvf ../glibc-linuxthreads-&glibc-linuxthreads-version;.tar.bz2</userinput></screen>
 
+    <para vendor="2.4">When building <function>getcwd</function> with
+    linuxthreads there is a header file missing which will cause the build to
+    fail. Include the header with the following command:</para>
+
+<screen vendor="2.4"><userinput>sed 's@#include <unistd.h>@&\n#include <sys/param.h>@' \
+    -i.orig sysdeps/unix/sysv/linux/getcwd.c</userinput></screen>
+
     <para>The following patch is a glibc-&glibc-version; branch update from
     Glibc's cvs server. It includes various bug fixes that were discovered
     after the glibc-&glibc-version; release:</para>

Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml	2007-06-23 09:34:10 UTC (rev 1177)
+++ trunk/BOOK/chapter06/glibc.xml	2007-06-25 23:48:32 UTC (rev 1178)
@@ -38,6 +38,17 @@
 
 <screen vendor="2.4"><userinput>tar xvf ../glibc-linuxthreads-&glibc-linuxthreads-version;.tar.bz2</userinput></screen>
 
+    <para vendor="2.4">Include the header file for <function>getcwd</function>:</para>
+
+<screen vendor="2.4"><userinput>sed 's@#include <unistd.h>@&\n#include <sys/param.h>@' \
+    -i.orig sysdeps/unix/sysv/linux/getcwd.c</userinput></screen>
+
+    <para vendor="2.4">The some of the tests also need an additional header
+    file included for them to build with linuxthreads:</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>If you want to install LibIDN then unpack it:</para>
 
 <screen><userinput>tar vxf ../glibc-libidn-&glibc-libidn-version;.tar.bz2




More information about the hlfs-book mailing list