askforhelp.xml 4.2 KB

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