[673b0d8] | 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 | ]>
|
---|
[c6b5ddb] | 6 | <sect1 id="prepare-askforhelp">
|
---|
[6e35438] | 7 | <title>Help</title>
|
---|
[673b0d8] | 8 | <?dbhtml filename="askforhelp.html"?>
|
---|
[c6b5ddb] | 9 |
|
---|
[6e35438] | 10 | <para>If you encounter an issue or have a question while working
|
---|
| 11 | through this book, check our FAQs page at <ulink url="&faq-root;"/>.
|
---|
| 12 | Often times questions are already answered there. If your question is
|
---|
| 13 | not answered on this page, try to find the source of the problem. The
|
---|
| 14 | following hint will give you some guidance for troubleshooting: <ulink
|
---|
| 15 | url="&hints-root;errors.txt"/>.</para>
|
---|
| 16 |
|
---|
| 17 | <para>We also have a wonderful LFS community that is willing to offer
|
---|
| 18 | assistance through IRC and the mailing lists (see the <xref
|
---|
| 19 | linkend="ch-scatter-administrativa"/> section of this book). In order
|
---|
| 20 | to assist them with diagnosing and solving the problem, please include
|
---|
[02974d8] | 21 | all relevant information in your request for help.</para>
|
---|
[c6b5ddb] | 22 |
|
---|
| 23 | <sect2>
|
---|
| 24 | <title>Things to mention</title>
|
---|
| 25 |
|
---|
[6e35438] | 26 | <para>Apart from a brief explanation of the problem being experience,
|
---|
| 27 | the essential things to include in your request for help are:</para>
|
---|
[c6b5ddb] | 28 |
|
---|
| 29 | <itemizedlist>
|
---|
[6e35438] | 30 | <listitem><para>The version of the book you are using (in this case
|
---|
| 31 | &version;)</para></listitem>
|
---|
| 32 | <listitem><para>The host distribution and version you are using to
|
---|
| 33 | create LFS</para></listitem>
|
---|
| 34 | <listitem><para>The package or section giving you problems</para></listitem>
|
---|
| 35 | <listitem><para>The exact error message or symptom you are receiving</para></listitem>
|
---|
| 36 | <listitem><para>Note whether you have deviated from the book at all </para></listitem>
|
---|
[c6b5ddb] | 37 | </itemizedlist>
|
---|
| 38 |
|
---|
[6e35438] | 39 | <note><para>Deviating from this book does <emphasis>not</emphasis>
|
---|
| 40 | mean that we won't help you. After all, LFS is about your personal
|
---|
| 41 | preference. Being upfront any changes to the established procedure
|
---|
| 42 | help us evaluate and determine possible causes of your
|
---|
| 43 | problem.</para></note>
|
---|
[c6b5ddb] | 44 | </sect2>
|
---|
| 45 |
|
---|
| 46 | <sect2>
|
---|
| 47 | <title>Configure problems</title>
|
---|
| 48 |
|
---|
[6e35438] | 49 | <para>If something goes wrong during the stage where the configure
|
---|
| 50 | script is run, review the <filename>config.log</filename> file. This
|
---|
| 51 | file may contain errors encountered during configure which were not
|
---|
| 52 | printed to the screen. Include those relevant lines if you need to ask
|
---|
| 53 | for help.</para>
|
---|
[c6b5ddb] | 54 | </sect2>
|
---|
| 55 |
|
---|
| 56 | <sect2>
|
---|
| 57 | <title>Compile problems</title>
|
---|
| 58 |
|
---|
[6e35438] | 59 | <para>The both screen output and the contents of various files are
|
---|
| 60 | useful in determining the cause of compile issues. The screen output
|
---|
| 61 | from both the ./configure script and the make run can be helpful. It
|
---|
| 62 | is not necessary to include the entire output, but do include enough
|
---|
| 63 | of the relevant information. Below is an example of the type of
|
---|
| 64 | information to include from the screen output from make:</para>
|
---|
[c6b5ddb] | 65 |
|
---|
[55851d6] | 66 | <screen><computeroutput>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
|
---|
[c6b5ddb] | 67 | -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\"
|
---|
| 68 | -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I.
|
---|
| 69 | -g -O2 -c getopt1.c
|
---|
| 70 | gcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o expand.o file.o
|
---|
| 71 | function.o getopt.o implicit.o job.o main.o misc.o read.o remake.o rule.o
|
---|
| 72 | signame.o variable.o vpath.o default.o remote-stub.o version.o opt1.o
|
---|
| 73 | -lutil job.o: In function `load_too_high':
|
---|
| 74 | /lfs/tmp/make-3.79.1/job.c:1565: undefined reference to `getloadavg'
|
---|
| 75 | collect2: ld returned 1 exit status
|
---|
| 76 | make[2]: *** [make] Error 1
|
---|
| 77 | make[2]: Leaving directory `/lfs/tmp/make-3.79.1'
|
---|
| 78 | make[1]: *** [all-recursive] Error 1
|
---|
| 79 | make[1]: Leaving directory `/lfs/tmp/make-3.79.1'
|
---|
[55851d6] | 80 | make: *** [all-recursive-am] Error 2</computeroutput></screen>
|
---|
[c6b5ddb] | 81 |
|
---|
[6e35438] | 82 | <para>In this case, many people would just include the bottom
|
---|
| 83 | section:</para>
|
---|
[c6b5ddb] | 84 |
|
---|
[55851d6] | 85 | <screen><computeroutput>make [2]: *** [make] Error 1</computeroutput></screen>
|
---|
[c6b5ddb] | 86 |
|
---|
[6e35438] | 87 | <para>This is not enough information to properly diagnose the problem
|
---|
| 88 | because it only notes that something went wrong, not
|
---|
| 89 | <emphasis>what</emphasis> went wrong. The entire section, as in the
|
---|
| 90 | example above, is what should be saved because it includes the command
|
---|
| 91 | that was executed and the associated error message(s).</para>
|
---|
| 92 |
|
---|
| 93 | <para>An excellent article about asking for help on the Internet is
|
---|
| 94 | available online at <ulink
|
---|
| 95 | url="http://catb.org/~esr/faqs/smart-questions.html"/>. Read and
|
---|
| 96 | follow the hints in this document to increase your changes of getting
|
---|
| 97 | the help you need.</para>
|
---|
[c6b5ddb] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2>
|
---|
| 101 | <title>Test suite problems</title>
|
---|
| 102 |
|
---|
[6e35438] | 103 | <para>Many packages provide a test suite which, depending on the
|
---|
| 104 | importance of the package, should be run. Sometimes packages will
|
---|
| 105 | generate false or expected failures. If these errors are encountered,
|
---|
| 106 | check the LFS Wiki page at <ulink url="&wiki-root;"/> to see if we have
|
---|
| 107 | noted and investigated these issues. If these issues are noted and
|
---|
| 108 | addressed, there is no need to be concerned.</para>
|
---|
[c6b5ddb] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | </sect1>
|
---|
[6e35438] | 112 |
|
---|