r6067 - trunk/BOOK/x/installing

andy at linuxfromscratch.org andy at linuxfromscratch.org
Sat May 13 10:22:15 PDT 2006


Author: andy
Date: 2006-05-13 11:22:14 -0600 (Sat, 13 May 2006)
New Revision: 6067

Modified:
   trunk/BOOK/x/installing/xfree86.xml
Log:
Added a grep and sed to fix compiling against some recent versions of glibc


Modified: trunk/BOOK/x/installing/xfree86.xml
===================================================================
--- trunk/BOOK/x/installing/xfree86.xml	2006-05-13 10:47:10 UTC (rev 6066)
+++ trunk/BOOK/x/installing/xfree86.xml	2006-05-13 17:22:14 UTC (rev 6067)
@@ -175,6 +175,29 @@
     <title>Installation of XFree86</title>
 
     <sect3>
+      <title>Glibc build fix</title>
+
+<!-- To be removed if/when proposed glibc patch is added to LFS SVN
+     Leave in in for a couple of weeks with 'you may need' and a testcase
+     around it to save the support list silly questions.  Should remove in
+     a couple of weeks -->
+      <para>Xfree86 may have a problem with <filename>sys/kd.h</filename>
+      installed with some recent versions of <application>Glibc</application>.
+      This has recently been fixed in LFS SVN.  Execute the
+      following commands to work around a broken <filename>kd.h</filename>
+      file. The <command>grep</command> command is to ensure the modification
+      is only made if it is needed. Run these commands from within the
+      <filename class="directory">xc</filename> folder:</para>
+
+<screen><userinput>grep "__undef_LINUX" \
+    /usr/include/sys/kd.h 2>&1 > /dev/null || \
+    sed -i.bak '/X.h/i #include <linux/types.h>' \
+    programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
+<!-- End remove -->
+
+    </sect3>
+    <sect3>
+
       <title>Setting Up a Shadow Directory</title>
 
       <para>When building <application>XFree86</application>, you should create




More information about the blfs-book mailing list