[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[13a9dc2] | 7 |
|
---|
| 8 | <sect1 id="ch-intro-askforhelp">
|
---|
| 9 | <?dbhtml filename="askforhelp.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Help</title>
|
---|
| 12 |
|
---|
| 13 | <para>If an issue or a question is encountered while working through
|
---|
[cff800e] | 14 | this book, please check the FAQ page at <ulink url="&faq-root;#generalfaq"/>.
|
---|
[13a9dc2] | 15 | Questions are often already answered there. If your question is not
|
---|
[a0ed201] | 16 | answered on that page, try to find the source of the problem. The
|
---|
[13a9dc2] | 17 | following hint will give you some guidance for troubleshooting:
|
---|
| 18 | <ulink url="&hints-root;errors.txt"/>.</para>
|
---|
| 19 |
|
---|
| 20 | <para>If you cannot find your problem listed in the FAQ, search the mailing
|
---|
| 21 | lists at <ulink url="&lfs-root;search.html"/>.</para>
|
---|
| 22 |
|
---|
| 23 | <para>We also have a wonderful LFS community that is willing to offer
|
---|
| 24 | assistance through the mailing lists and IRC (see the <xref
|
---|
| 25 | linkend="ch-intro-resources"/> section of this book). However,
|
---|
[a0ed201] | 26 | we get several support questions every day, and many of them could have been easily
|
---|
| 27 | answered by going to the FAQ or by searching the mailing lists first.
|
---|
| 28 | So, for us to offer the best assistance possible, you should first do some
|
---|
| 29 | research on your own. That allows us to focus on the more unusual
|
---|
[13a9dc2] | 30 | support needs. If your searches do not produce a solution, please include
|
---|
[a0ed201] | 31 | all the relevant information (mentioned below) in your request for help.</para>
|
---|
[13a9dc2] | 32 |
|
---|
| 33 | <sect2>
|
---|
| 34 | <title>Things to Mention</title>
|
---|
| 35 |
|
---|
| 36 | <para>Apart from a brief explanation of the problem being experienced,
|
---|
[a0ed201] | 37 | any request for help should include these essential things:</para>
|
---|
[13a9dc2] | 38 |
|
---|
| 39 | <itemizedlist>
|
---|
| 40 | <listitem>
|
---|
[64ce287] | 41 | <para>The version of the book being used (in this case &version;)</para>
|
---|
[13a9dc2] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>The host distribution and version being used to create LFS</para>
|
---|
| 45 | </listitem>
|
---|
[022886c] | 46 | <listitem>
|
---|
[4f2d19e5] | 47 | <para>The output from the <xref linkend='version-check'/> script</para>
|
---|
[022886c] | 48 | </listitem>
|
---|
[13a9dc2] | 49 | <listitem>
|
---|
| 50 | <para>The package or section the problem was encountered in</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[edbf3d9] | 53 | <para>The exact error message, or a clear description of the problem</para>
|
---|
[13a9dc2] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Note whether you have deviated from the book at all </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <note>
|
---|
| 61 | <para>Deviating from this book does <emphasis>not</emphasis> mean that
|
---|
| 62 | we will not help you. After all, LFS is about personal preference.
|
---|
[a0ed201] | 63 | Being up-front about any changes to the established procedure helps us
|
---|
[13a9dc2] | 64 | evaluate and determine possible causes of your problem.</para>
|
---|
| 65 | </note>
|
---|
| 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
| 70 | <title>Configure Script Problems</title>
|
---|
| 71 |
|
---|
| 72 | <para>If something goes wrong while running the <command>configure</command>
|
---|
| 73 | script, review the <filename>config.log</filename> file. This file may
|
---|
| 74 | contain errors encountered during <command>configure</command> which were
|
---|
| 75 | not printed to the screen. Include the <emphasis>relevant</emphasis> lines
|
---|
| 76 | if you need to ask for help.</para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2>
|
---|
| 81 | <title>Compilation Problems</title>
|
---|
| 82 |
|
---|
| 83 | <para>Both the screen output and the contents of various files are useful
|
---|
| 84 | in determining the cause of compilation problems. The screen output from
|
---|
| 85 | the <command>configure</command> script and the <command>make</command>
|
---|
| 86 | run can be helpful. It is not necessary to include the entire output, but
|
---|
[a0ed201] | 87 | do include all of the relevant information. Here is an example of the
|
---|
| 88 | type of information to include from the <command>make</command> screen
|
---|
| 89 | output.</para>
|
---|
[81fd230] | 90 |
|
---|
| 91 | <screen><computeroutput>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
|
---|
[13a9dc2] | 92 | -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\"
|
---|
[81fd230] | 93 | -DLIBDIR=\"/mnt/lfs/usr/lib\"
|
---|
| 94 | -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I.
|
---|
| 95 | -g -O2 -c getopt1.c
|
---|
[13a9dc2] | 96 | gcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o
|
---|
| 97 | expand.o file.o function.o getopt.o implicit.o job.o main.o
|
---|
| 98 | misc.o read.o remake.o rule.o signame.o variable.o vpath.o
|
---|
[81fd230] | 99 | default.o remote-stub.o version.o opt1.o
|
---|
| 100 | -lutil job.o: In function `load_too_high':
|
---|
[13a9dc2] | 101 | /lfs/tmp/make-3.79.1/job.c:1565: undefined reference
|
---|
[81fd230] | 102 | to `getloadavg'
|
---|
| 103 | collect2: ld returned 1 exit status
|
---|
| 104 | make[2]: *** [make] Error 1
|
---|
| 105 | make[2]: Leaving directory `/lfs/tmp/make-3.79.1'
|
---|
| 106 | make[1]: *** [all-recursive] Error 1
|
---|
| 107 | make[1]: Leaving directory `/lfs/tmp/make-3.79.1'
|
---|
| 108 | make: *** [all-recursive-am] Error 2</computeroutput></screen>
|
---|
| 109 |
|
---|
[13a9dc2] | 110 | <para>In this case, many people would just include the bottom
|
---|
| 111 | section:</para>
|
---|
[81fd230] | 112 |
|
---|
| 113 | <screen><computeroutput>make [2]: *** [make] Error 1</computeroutput></screen>
|
---|
| 114 |
|
---|
[a0ed201] | 115 | <para>This is not enough information to diagnose the problem,
|
---|
[13a9dc2] | 116 | because it only notes that something went wrong, not
|
---|
| 117 | <emphasis>what</emphasis> went wrong. The entire section, as in the
|
---|
| 118 | example above, is what should be saved because it includes the command
|
---|
[a0ed201] | 119 | that was executed and all the associated error messages.</para>
|
---|
[81fd230] | 120 |
|
---|
[13a9dc2] | 121 | <para>An excellent article about asking for help on the Internet is
|
---|
| 122 | available online at <ulink
|
---|
[a0ed201] | 123 | url="http://catb.org/~esr/faqs/smart-questions.html"/>. Read this document,
|
---|
| 124 | and follow the hints. Doing so will increase the likelihood of getting
|
---|
[13a9dc2] | 125 | the help you need.</para>
|
---|
[81fd230] | 126 |
|
---|
[13a9dc2] | 127 | </sect2>
|
---|
[81fd230] | 128 |
|
---|
[13a9dc2] | 129 | </sect1>
|
---|