askforhelp.xml 3.7 KB

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