askforhelp.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="prepare-askforhelp">
  7. <title>How to ask for help</title>
  8. <?dbhtml filename="askforhelp.html"?>
  9. <para>See testing</para>
  10. <!--
  11. <para>If you run into a problem while working through this book, you should
  12. first check the FAQ at <ulink url="&faq-root;"/> - often your question
  13. is already answered there. If it is not, you should try to find the source of
  14. the problem. The following hint might give you some ideas for your
  15. troubleshooting: <ulink url="&hints-root;errors.txt"/>.</para>
  16. <para>If all that fails, you will find that most people on IRC and the mailing
  17. lists (see <xref linkend="ch-scatter-administrativa"/>) are willing to help
  18. you. But to assist them in diagnosing and solving your problem, please include
  19. all relevant information in your request for help.</para>
  20. <sect2>
  21. <title>Things to mention</title>
  22. <para>Apart from a brief explanation of the problem you're having, the
  23. essential things to include in your request are:</para>
  24. <itemizedlist>
  25. <listitem><para>the version of the book you are using (being &version;),</para></listitem>
  26. <listitem><para>the host distribution and version you are using to create
  27. LFS,</para></listitem>
  28. <listitem><para>the package or section giving you problems,</para></listitem>
  29. <listitem><para>the exact error message or symptom you are receiving,</para></listitem>
  30. <listitem><para>whether you have deviated from the book at all.</para></listitem>
  31. </itemizedlist>
  32. <note><para>Saying that you've deviated from the book doesn't mean
  33. that we won't help you. After all, LFS is about choice. It'll just
  34. help us to see other possible causes of your problem.</para></note>
  35. </sect2>
  36. <sect2>
  37. <title>Configure problems</title>
  38. <para>When something goes wrong during the stage where the configure script
  39. is run, look through the <filename>config.log</filename> file. This file
  40. may contain errors encountered during configure which weren't printed to
  41. the screen. Include those relevant lines if you decide to ask for
  42. help.</para>
  43. </sect2>
  44. <sect2>
  45. <title>Compile problems</title>
  46. <para>To help us find the cause of the problem, both screen output and
  47. the contents of various files are useful. The screen output from both
  48. the ./configure script and the make run can be useful. Don't blindly
  49. include the whole thing but, on the other hand, don't include too little.
  50. As an example, here is some screen output from make:</para>
  51. <screen><computeroutput>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
  52. -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\"
  53. -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I.
  54. -g -O2 -c getopt1.c
  55. gcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o expand.o file.o
  56. function.o getopt.o implicit.o job.o main.o misc.o read.o remake.o rule.o
  57. signame.o variable.o vpath.o default.o remote-stub.o version.o opt1.o
  58. -lutil job.o: In function `load_too_high':
  59. /lfs/tmp/make-3.79.1/job.c:1565: undefined reference to `getloadavg'
  60. collect2: ld returned 1 exit status
  61. make[2]: *** [make] Error 1
  62. make[2]: Leaving directory `/lfs/tmp/make-3.79.1'
  63. make[1]: *** [all-recursive] Error 1
  64. make[1]: Leaving directory `/lfs/tmp/make-3.79.1'
  65. make: *** [all-recursive-am] Error 2</computeroutput></screen>
  66. <para>In this case, many people just include the bottom section where it
  67. says:</para>
  68. <screen><computeroutput>make [2]: *** [make] Error 1</computeroutput></screen>
  69. <para>and onwards. This isn't enough for us to diagnose the problem because it
  70. only tells us that <emphasis>something</emphasis> went wrong, not
  71. <emphasis>what</emphasis> went wrong. The whole section, as in the example
  72. above, is what should be included to be helpful, because it includes the
  73. command that was executed and the command's error message(s).</para>
  74. <para>An excellent article on asking for help on the Internet in general
  75. has been written by Eric S. Raymond. It is available online at
  76. <ulink url="http://catb.org/~esr/faqs/smart-questions.html"/>.
  77. Read and follow the hints in that document and you are much more likely
  78. to get a response to start with and also to get the help you actually
  79. need.</para>
  80. </sect2>
  81. <sect2>
  82. <title>Test suite problems</title>
  83. <para>Many packages provide a test suite which, depending on the importance
  84. of the package, we may encourage you to run. Sometimes packages will
  85. generate false or expected failures. If you encounter these, you can check
  86. the LFS Wiki page at <ulink url="&wiki-root;"/> to see whether we have
  87. already noted and investigated them. If we already know
  88. about them, then usually there is no need to be concerned.</para>
  89. </sect2>
  90. -->
  91. </sect1>