glibc.po 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><sect1info><address>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:14
  20. #, no-wrap
  21. msgid "&glibc-url;"
  22. msgstr ""
  23. #. type: Content of: <sect1><sect1info>
  24. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:12
  25. msgid ""
  26. "<productname>glibc</productname> "
  27. "<productnumber>&glibc-version;</productnumber> <placeholder type=\"address\" "
  28. "id=\"0\"/>"
  29. msgstr ""
  30. #. type: Content of: <sect1><title>
  31. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:17
  32. msgid "Glibc-&glibc-version;"
  33. msgstr ""
  34. #. type: Content of: <sect1><indexterm><primary>
  35. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:20
  36. msgid "Glibc"
  37. msgstr ""
  38. #. type: Content of: <sect1><indexterm><secondary>
  39. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:21
  40. msgid "tools"
  41. msgstr ""
  42. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  43. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:32
  44. msgid "&buildtime;"
  45. msgstr ""
  46. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  47. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:33
  48. msgid "&diskspace;"
  49. msgstr ""
  50. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  51. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:36
  52. msgid "&glibc-tmp-sbu;"
  53. msgstr ""
  54. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  55. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:37
  56. msgid "&glibc-tmp-du;"
  57. msgstr ""
  58. #. type: Content of: <sect1><sect2><title>
  59. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:44
  60. msgid "Installation of Glibc"
  61. msgstr ""
  62. #. type: Content of: <sect1><sect2><para>
  63. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:46
  64. msgid ""
  65. "First, create a symbolic link for LSB compliance. Additionally, for x86_64, "
  66. "create a compatibility symbolic link required for proper operation of the "
  67. "dynamic library loader:"
  68. msgstr ""
  69. #. type: Content of: <sect1><sect2><screen>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:50
  71. #, no-wrap
  72. msgid ""
  73. "<userinput remap=\"pre\">case $(uname -m) in\n"
  74. " i?86) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3\n"
  75. " ;;\n"
  76. " x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64\n"
  77. " ln -sfv ../lib/ld-linux-x86-64.so.2 "
  78. "$LFS/lib64/ld-lsb-x86-64.so.3\n"
  79. " ;;\n"
  80. "esac</userinput>"
  81. msgstr ""
  82. #. type: Content of: <sect1><sect2><para>
  83. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:58
  84. msgid ""
  85. "Some of the Glibc programs use the non-FHS compliant <filename "
  86. "class=\"directory\">/var/db</filename> directory to store their runtime "
  87. "data. Apply the following patch to make such programs store their runtime "
  88. "data in the FHS-compliant locations:"
  89. msgstr ""
  90. #. type: Content of: <sect1><sect2><screen>
  91. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:63
  92. #, no-wrap
  93. msgid ""
  94. "<userinput remap=\"pre\">patch -Np1 -i "
  95. "../glibc-&glibc-version;-fhs-1.patch</userinput>"
  96. msgstr ""
  97. #. type: Content of: <sect1><sect2><para>
  98. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:65
  99. msgid ""
  100. "The Glibc documentation recommends building Glibc in a dedicated build "
  101. "directory:"
  102. msgstr ""
  103. #. type: Content of: <sect1><sect2><screen>
  104. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:68
  105. #, no-wrap
  106. msgid ""
  107. "<userinput remap=\"pre\">mkdir -v build\n"
  108. "cd build</userinput>"
  109. msgstr ""
  110. #. type: Content of: <sect1><sect2><para>
  111. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:71
  112. msgid "Next, prepare Glibc for compilation:"
  113. msgstr ""
  114. #. type: Content of: <sect1><sect2><screen>
  115. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:73
  116. #, no-wrap
  117. msgid ""
  118. "<userinput remap=\"configure\">../configure \\\n"
  119. " --prefix=/usr \\\n"
  120. " --host=$LFS_TGT \\\n"
  121. " --build=$(../scripts/config.guess) \\\n"
  122. " --enable-kernel=&min-kernel; \\\n"
  123. " --with-headers=$LFS/usr/include \\\n"
  124. " libc_cv_slibdir=/lib</userinput>"
  125. msgstr ""
  126. #. type: Content of: <sect1><sect2><variablelist><title>
  127. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:85
  128. msgid "The meaning of the configure options:"
  129. msgstr ""
  130. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  131. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:88
  132. msgid "<parameter>--host=$LFS_TGT, --build=$(../scripts/config.guess)</parameter>"
  133. msgstr ""
  134. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  135. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:90
  136. msgid ""
  137. "The combined effect of these switches is that Glibc's build system "
  138. "configures itself to be cross-compiled, using the cross-linker and "
  139. "cross-compiler in <filename class=\"directory\">/tools</filename>."
  140. msgstr ""
  141. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  142. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:97
  143. msgid "<parameter>--enable-kernel=&min-kernel;</parameter>"
  144. msgstr ""
  145. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  146. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:99
  147. msgid ""
  148. "This tells Glibc to compile the library with support for &min-kernel; and "
  149. "later Linux kernels. Workarounds for older kernels are not enabled."
  150. msgstr ""
  151. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  152. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:106
  153. msgid "<parameter>--with-headers=$LFS/usr/include</parameter>"
  154. msgstr ""
  155. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  156. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:108
  157. msgid ""
  158. "This tells Glibc to compile itself against the headers recently installed to "
  159. "the $LFS/usr/include directory, so that it knows exactly what features the "
  160. "kernel has and can optimize itself accordingly."
  161. msgstr ""
  162. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  163. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:116
  164. msgid "<parameter>libc_cv_slibdir=/lib</parameter>"
  165. msgstr ""
  166. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  167. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:118
  168. msgid ""
  169. "This ensures that the library is installed in /lib instead of the default "
  170. "/lib64 on 64 bit machines."
  171. msgstr ""
  172. #. type: Content of: <sect1><sect2><para>
  173. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:125
  174. msgid "During this stage the following warning might appear:"
  175. msgstr ""
  176. #. type: Content of: <sect1><sect2><blockquote><screen>
  177. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:128
  178. #, no-wrap
  179. msgid ""
  180. "<computeroutput>configure: WARNING:\n"
  181. "*** These auxiliary programs are missing or\n"
  182. "*** incompatible versions: msgfmt\n"
  183. "*** some features will be disabled.\n"
  184. "*** Check the INSTALL file for required versions.</computeroutput>"
  185. msgstr ""
  186. #. type: Content of: <sect1><sect2><para>
  187. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:135
  188. msgid ""
  189. "The missing or incompatible <command>msgfmt</command> program is generally "
  190. "harmless. This <command>msgfmt</command> program is part of the Gettext "
  191. "package which the host distribution should provide."
  192. msgstr ""
  193. #. type: Content of: <sect1><sect2><note><para>
  194. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:139
  195. msgid ""
  196. "There have been reports that this package may fail when building as a "
  197. "\"parallel make\". If this occurs, rerun the make command with a \"-j1\" "
  198. "option."
  199. msgstr ""
  200. #. type: Content of: <sect1><sect2><para>
  201. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:143
  202. msgid "Compile the package:"
  203. msgstr ""
  204. #. type: Content of: <sect1><sect2><screen>
  205. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:145
  206. #, no-wrap
  207. msgid "<userinput remap=\"make\">make</userinput>"
  208. msgstr ""
  209. #. type: Content of: <sect1><sect2><para>
  210. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:147
  211. msgid "Install the package:"
  212. msgstr ""
  213. #. type: Content of: <sect1><sect2><warning><para>
  214. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:149
  215. msgid ""
  216. "If <envar>LFS</envar> is not properly set, and despite the recommendations, "
  217. "you are building as root, the next command will install the newly built "
  218. "glibc to your host system, which most likely will render it unusable. So "
  219. "double check that the environment is correctly set for user <systemitem "
  220. "class=\"username\">lfs</systemitem>."
  221. msgstr ""
  222. #. type: Content of: <sect1><sect2><screen>
  223. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:155
  224. #, no-wrap
  225. msgid "<userinput remap=\"install\">make DESTDIR=$LFS install</userinput>"
  226. msgstr ""
  227. #. type: Content of: <sect1><sect2><variablelist><title>
  228. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:158
  229. msgid "The meaning of the <command>make install</command> option:"
  230. msgstr ""
  231. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  232. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:161
  233. msgid "<parameter>DESTDIR=$LFS</parameter>"
  234. msgstr ""
  235. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  236. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:163
  237. msgid ""
  238. "The <envar>DESTDIR</envar> make variable is used by almost all packages to "
  239. "define the location where the package should be installed. If it is not set, "
  240. "it defaults to the root (<filename class=\"directory\">/</filename>) "
  241. "directory. Here we specify that the package be installed in <filename "
  242. "class=\"directory\">$LFS </filename>, which will become the root after <xref "
  243. "linkend= \"ch-tools-chroot\"/>."
  244. msgstr ""
  245. #. type: Content of: <sect1><sect2><caution><para>
  246. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:176
  247. msgid ""
  248. "At this point, it is imperative to stop and ensure that the basic functions "
  249. "(compiling and linking) of the new toolchain are working as expected. To "
  250. "perform a sanity check, run the following commands:"
  251. msgstr ""
  252. #. type: Content of: <sect1><sect2><caution><screen>
  253. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:180
  254. #, no-wrap
  255. msgid ""
  256. "<userinput>echo 'int main(){}' &gt; dummy.c\n"
  257. "$LFS_TGT-gcc dummy.c\n"
  258. "readelf -l a.out | grep '/ld-linux'</userinput>"
  259. msgstr ""
  260. #. type: Content of: <sect1><sect2><caution><para>
  261. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:184
  262. msgid ""
  263. "If everything is working correctly, there should be no errors, and the "
  264. "output of the last command will be of the form:"
  265. msgstr ""
  266. #. type: Content of: <sect1><sect2><caution><screen>
  267. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:187
  268. #, no-wrap
  269. msgid ""
  270. "<computeroutput>[Requesting program interpreter: "
  271. "/lib64/ld-linux-x86-64.so.2]</computeroutput>"
  272. msgstr ""
  273. #. type: Content of: <sect1><sect2><caution><para>
  274. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:189
  275. msgid ""
  276. "Note that for 32-bit machines, the interpreter name will be "
  277. "<filename>/lib/ld-linux.so.2</filename>."
  278. msgstr ""
  279. #. type: Content of: <sect1><sect2><caution><para>
  280. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:192
  281. msgid ""
  282. "If the output is not shown as above or there was no output at all, then "
  283. "something is wrong. Investigate and retrace the steps to find out where the "
  284. "problem is and correct it. This issue must be resolved before continuing on."
  285. msgstr ""
  286. #. type: Content of: <sect1><sect2><caution><para>
  287. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:197
  288. msgid "Once all is well, clean up the test files:"
  289. msgstr ""
  290. #. type: Content of: <sect1><sect2><caution><screen>
  291. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:199
  292. #, no-wrap
  293. msgid "<userinput>rm -v dummy.c a.out</userinput>"
  294. msgstr ""
  295. #. type: Content of: <sect1><sect2><note><para>
  296. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:203
  297. msgid ""
  298. "Building packages in the next chapter will serve as an additional check that "
  299. "the toolchain has been built properly. If some package, especially "
  300. "binutils-pass2 or gcc-pass2, fails to build, it is an indication that "
  301. "something has gone wrong with the previous Binutils, GCC, or Glibc "
  302. "installations."
  303. msgstr ""
  304. #. type: Content of: <sect1><sect2><para>
  305. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:209
  306. msgid ""
  307. "Now that our cross-toolchain is complete, finalize the installation of the "
  308. "limits.h header. For doing so, run a utility provided by the GCC developers:"
  309. msgstr ""
  310. #. type: Content of: <sect1><sect2><screen>
  311. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:213
  312. #, no-wrap
  313. msgid "<userinput>$LFS/tools/libexec/gcc/$LFS_TGT/&gcc-version;/install-tools/mkheaders</userinput>"
  314. msgstr ""
  315. #. type: Content of: <sect1><sect2><para>
  316. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/glibc.xml:220
  317. msgid ""
  318. "Details on this package are located in <xref linkend=\"contents-glibc\" "
  319. "role=\".\"/>"
  320. msgstr ""