askforhelp.xml 4.7 KB

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