askforhelp.xml 3.8 KB

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