r668 - in trunk/BOOK: . chapter01 chapter05 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Mon Jul 17 19:46:02 PDT 2006


Author: robert
Date: 2006-07-17 20:46:01 -0600 (Mon, 17 Jul 2006)
New Revision: 668

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/adjusting.xml
   trunk/BOOK/chapter06/readjusting.xml
   trunk/BOOK/general.ent
Log:
Use int main(){return 0;} for tests in adjusting and readjusting so no compiler warnings are generated.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2006-07-13 01:52:39 UTC (rev 667)
+++ trunk/BOOK/chapter01/changelog.xml	2006-07-18 02:46:01 UTC (rev 668)
@@ -110,6 +110,9 @@
 </listitem>
 -->
 
+<listitem><para>July 17th, 2006 [Robert]: Use 'int main(){return 0;}' for
+tests in adjusting and readjusting so no compiler warnings are generated.</para></listitem>
+
 <listitem><para>July 5th, 2006 [Robert]: Go back down to binutils-2.16.1 due to issues
 with glibc-2.3.6.</para></listitem>
 

Modified: trunk/BOOK/chapter05/adjusting.xml
===================================================================
--- trunk/BOOK/chapter05/adjusting.xml	2006-07-13 01:52:39 UTC (rev 667)
+++ trunk/BOOK/chapter05/adjusting.xml	2006-07-18 02:46:01 UTC (rev 668)
@@ -14,7 +14,7 @@
 
 <para>Test that we are linking to <filename class="directory">/tools</filename>.</para>
 
-<screen><userinput>echo 'main(){}' | ${target}-gcc -x c -
+<screen><userinput>echo 'int main(){return 0;}' | ${target}-gcc -x c -
 readelf -l a.out | grep ': /tools'</userinput></screen>
 
 <para>Should return: </para>

Modified: trunk/BOOK/chapter06/readjusting.xml
===================================================================
--- trunk/BOOK/chapter06/readjusting.xml	2006-07-13 01:52:39 UTC (rev 667)
+++ trunk/BOOK/chapter06/readjusting.xml	2006-07-18 02:46:01 UTC (rev 668)
@@ -45,7 +45,7 @@
 are working as expected. To do this, perform a sanity
 check:</para>
 
-<screen><userinput>echo 'main(){}' > dummy.c
+<screen><userinput>echo 'int main(){return 0;}' > dummy.c
 cc dummy.c
 readelf -l a.out | grep ': /lib'</userinput></screen>
 

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2006-07-13 01:52:39 UTC (rev 667)
+++ trunk/BOOK/general.ent	2006-07-18 02:46:01 UTC (rev 668)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20060705">
-<!ENTITY releasedate "July 5th, 2006">
+<!ENTITY version "SVN-20060717">
+<!ENTITY releasedate "July 17th, 2006">
 <!ENTITY milestone "0.3">
 
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">




More information about the hlfs-book mailing list