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