askforhelp.xml 3.6 KB

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