askforhelp.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-intro-askforhelp">
  8. <?dbhtml filename="askforhelp.html"?>
  9. <title>Help</title>
  10. <para>If an issue or a question is encountered while working through
  11. this book, please check the FAQ page at <ulink url="&faq-root;#generalfaq"/>.
  12. Questions are often already answered there. If your question is not
  13. answered on this page, try to find the source of the problem. The
  14. following hint will give you some guidance for troubleshooting:
  15. <ulink url="&hints-root;errors.txt"/>.</para>
  16. <para>If you cannot find your problem listed in the FAQ, search the mailing
  17. lists at <ulink url="&lfs-root;search.html"/>.</para>
  18. <para>We also have a wonderful LFS community that is willing to offer
  19. assistance through the mailing lists and IRC (see the <xref
  20. linkend="ch-intro-resources"/> section of this book). However,
  21. we get several support questions every day and many of them can be easily
  22. answered by going to the FAQ and by searching the mailing lists first.
  23. So, for us to offer the best assistance possible, you need to do some
  24. research on your own first. That allows us to focus on the more unusual
  25. support needs. If your searches do not produce a solution, please include
  26. all relevant information (mentioned below) in your request for help.</para>
  27. <sect2>
  28. <title>Things to Mention</title>
  29. <para>Apart from a brief explanation of the problem being experienced,
  30. the essential things to include in any request for help are:</para>
  31. <itemizedlist>
  32. <listitem>
  33. <para>The version of the book being used (in this case
  34. <phrase revision="sysv">&version;</phrase>
  35. <phrase revision="systemd">&versiond;</phrase>)</para>
  36. </listitem>
  37. <listitem>
  38. <para>The host distribution and version being used to create LFS</para>
  39. </listitem>
  40. <listitem>
  41. <para>The output from the <xref linkend='version-check'/> script</para>
  42. </listitem>
  43. <listitem>
  44. <para>The package or section the problem was encountered in</para>
  45. </listitem>
  46. <listitem>
  47. <para>The exact error message or symptom being received</para>
  48. </listitem>
  49. <listitem>
  50. <para>Note whether you have deviated from the book at all </para>
  51. </listitem>
  52. </itemizedlist>
  53. <note>
  54. <para>Deviating from this book does <emphasis>not</emphasis> mean that
  55. we will not help you. After all, LFS is about personal preference.
  56. Being upfront about any changes to the established procedure helps us
  57. evaluate and determine possible causes of your problem.</para>
  58. </note>
  59. </sect2>
  60. <sect2>
  61. <title>Configure Script Problems</title>
  62. <para>If something goes wrong while running the <command>configure</command>
  63. script, review the <filename>config.log</filename> file. This file may
  64. contain errors encountered during <command>configure</command> which were
  65. not printed to the screen. Include the <emphasis>relevant</emphasis> lines
  66. if you need to ask for help.</para>
  67. </sect2>
  68. <sect2>
  69. <title>Compilation Problems</title>
  70. <para>Both the screen output and the contents of various files are useful
  71. in determining the cause of compilation problems. The screen output from
  72. the <command>configure</command> script and the <command>make</command>
  73. run can be helpful. It is not necessary to include the entire output, but
  74. do include enough of the relevant information. Below is an example of the
  75. type of information to include from the screen output from
  76. <command>make</command>:</para>
  77. <screen><computeroutput>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
  78. -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\"
  79. -DLIBDIR=\"/mnt/lfs/usr/lib\"
  80. -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I.
  81. -g -O2 -c getopt1.c
  82. gcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o
  83. expand.o file.o function.o getopt.o implicit.o job.o main.o
  84. misc.o read.o remake.o rule.o signame.o variable.o vpath.o
  85. default.o remote-stub.o version.o opt1.o
  86. -lutil job.o: In function `load_too_high':
  87. /lfs/tmp/make-3.79.1/job.c:1565: undefined reference
  88. to `getloadavg'
  89. collect2: ld returned 1 exit status
  90. make[2]: *** [make] Error 1
  91. make[2]: Leaving directory `/lfs/tmp/make-3.79.1'
  92. make[1]: *** [all-recursive] Error 1
  93. make[1]: Leaving directory `/lfs/tmp/make-3.79.1'
  94. make: *** [all-recursive-am] Error 2</computeroutput></screen>
  95. <para>In this case, many people would just include the bottom
  96. section:</para>
  97. <screen><computeroutput>make [2]: *** [make] Error 1</computeroutput></screen>
  98. <para>This is not enough information to properly diagnose the problem
  99. because it only notes that something went wrong, not
  100. <emphasis>what</emphasis> went wrong. The entire section, as in the
  101. example above, is what should be saved because it includes the command
  102. that was executed and the associated error message(s).</para>
  103. <para>An excellent article about asking for help on the Internet is
  104. available online at <ulink
  105. url="http://catb.org/~esr/faqs/smart-questions.html"/>. Read and
  106. follow the hints in this document to increase the likelihood of getting
  107. the help you need.</para>
  108. </sect2>
  109. </sect1>