r6898 - trunk/BOOK/x/lib

randy at linuxfromscratch.org randy at linuxfromscratch.org
Sun Jul 15 15:18:57 PDT 2007


Author: randy
Date: 2007-07-15 16:18:57 -0600 (Sun, 15 Jul 2007)
New Revision: 6898

Modified:
   trunk/BOOK/x/lib/lesstif.xml
Log:
Added a sed command to the LessTif instructions to fix a broken header file

Modified: trunk/BOOK/x/lib/lesstif.xml
===================================================================
--- trunk/BOOK/x/lib/lesstif.xml	2007-07-15 20:42:14 UTC (rev 6897)
+++ trunk/BOOK/x/lib/lesstif.xml	2007-07-15 22:18:57 UTC (rev 6898)
@@ -83,7 +83,11 @@
     <para>Install <application>LessTif</application> by running the following
     commands:</para>
 
-<screen><userinput>patch -Np1 -i ../lesstif-&lesstif-version;-testsuite_fix-1.patch &&
+<screen><userinput>sed -i -e '/ShellP/d' \
+       -e '/XMLIBEXPORT extern Cardinal/i#include <X11/ShellP.h>\n'  \
+    include/Motif-2.1/Xm/VendorSP.h &&
+
+patch -Np1 -i ../lesstif-&lesstif-version;-testsuite_fix-1.patch &&
 ./configure --prefix=/usr \
             --disable-debug \
             --enable-production \
@@ -110,6 +114,11 @@
   <sect2 role="commands">
     <title>Command Explanations</title>
 
+    <para><command>sed -i -e '...'
+    -e '...' include/Motif-2.1/Xm/VendorSP.h</command>:
+    This command moves one line in the header file to avoid C++ compilation
+    problems.</para>
+
     <para><parameter>--disable-debug</parameter>: Do not generate debugging
     information.</para>
 




More information about the blfs-book mailing list