[eab03ca] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[bfa1248] | 7 | <!ENTITY pth-download-http
|
---|
| 8 | "http://ftp.gnu.org/gnu/pth/pth-&pth-version;.tar.gz">
|
---|
| 9 | <!ENTITY pth-download-ftp
|
---|
| 10 | "ftp://ftp.gnu.org/gnu/pth/pth-&pth-version;.tar.gz">
|
---|
[eab03ca] | 11 | <!ENTITY pth-md5sum "9cb4a25331a4c4db866a31cbe507c793">
|
---|
| 12 | <!ENTITY pth-size "652 KB">
|
---|
| 13 | <!ENTITY pth-buildsize "5 MB">
|
---|
| 14 | <!ENTITY pth-time "0.2 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="pth" xreflabel="Pth-&pth-version;">
|
---|
| 18 | <?dbhtml filename="pth.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Pth-&pth-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="pth">
|
---|
| 28 | <primary sortas="a-Pth">Pth</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Pth</title>
|
---|
| 33 |
|
---|
| 34 | <para>The <application>Pth</application> package contains a very portable
|
---|
| 35 | POSIX/ANSI-C based library for Unix platforms which provides non-preemptive
|
---|
| 36 | priority-based scheduling for multiple threads of execution (multithreading)
|
---|
| 37 | inside event-driven applications. All threads run in the same address space
|
---|
| 38 | of the server application, but each thread has its own individual
|
---|
| 39 | program-counter, run-time stack, signal mask and errno variable. </para>
|
---|
| 40 |
|
---|
[d8069d7] | 41 | &lfs70_checked;
|
---|
[70dcb19] | 42 |
|
---|
[eab03ca] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&pth-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&pth-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &pth-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &pth-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &pth-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &pth-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
| 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/pth"/></para>
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2 role="installation">
|
---|
| 70 | <title>Installation of Pth</title>
|
---|
| 71 |
|
---|
[98b5744] | 72 | <caution>
|
---|
| 73 | <para>Don't add the <option>--enable-pthread</option> parameter to the
|
---|
| 74 | <command>configure</command> command below else you will overwrite the
|
---|
| 75 | pthread library and interface header installed by the
|
---|
| 76 | <application>Glibc</application> package in LFS.</para>
|
---|
| 77 | </caution>
|
---|
| 78 |
|
---|
[eab03ca] | 79 | <para>Install <application>Pth</application> by running the
|
---|
| 80 | following commands:</para>
|
---|
| 81 |
|
---|
[bfa1248] | 82 | <screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &&
|
---|
| 83 | ./configure --prefix=/usr --disable-static --mandir=/usr/share/man &&
|
---|
[eab03ca] | 84 | make</userinput></screen>
|
---|
| 85 |
|
---|
[bfa1248] | 86 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[eab03ca] | 87 |
|
---|
| 88 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 89 | user:</para>
|
---|
| 90 |
|
---|
| 91 | <screen role="root"><userinput>make install &&
|
---|
| 92 | install -v -m755 -d /usr/share/doc/pth-&pth-version; &&
|
---|
| 93 | install -v -m644 README PORTING SUPPORT TESTS \
|
---|
| 94 | /usr/share/doc/pth-&pth-version;</userinput></screen>
|
---|
[bfa1248] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="commands">
|
---|
| 98 | <title>Command Explanations</title>
|
---|
| 99 |
|
---|
| 100 | <para><command>sed -i 's#$(LOBJS) ...</command>: This sed fixes a race
|
---|
| 101 | condition in the Makefile. It allows you to run <command>make</command> with
|
---|
| 102 | multiple jobs (eg, <command>make -j4</command>) <!-- how ironic that a
|
---|
| 103 | package for using multiple threads has this bug in its Makefile-->.</para>
|
---|
[eab03ca] | 104 |
|
---|
[bfa1248] | 105 | <para><option>--disable-static</option>: This option stops it compiling a
|
---|
| 106 | static version of the library.</para>
|
---|
| 107 |
|
---|
| 108 | <para><option>--mandir=/usr/share/man</option>: This option puts the man
|
---|
| 109 | pages in /usr/share/man and not /usr/man.</para>
|
---|
[eab03ca] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="content">
|
---|
| 113 | <title>Contents</title>
|
---|
| 114 |
|
---|
| 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed Program</segtitle>
|
---|
| 117 | <segtitle>Installed Library</segtitle>
|
---|
| 118 | <segtitle>Installed Directory</segtitle>
|
---|
| 119 |
|
---|
| 120 | <seglistitem>
|
---|
| 121 | <seg>pth-config</seg>
|
---|
[bfa1248] | 122 | <seg>libpth.so</seg>
|
---|
[eab03ca] | 123 | <seg>/usr/share/doc/pth-&pth-version;</seg>
|
---|
| 124 | </seglistitem>
|
---|
| 125 | </segmentedlist>
|
---|
| 126 |
|
---|
| 127 | <variablelist>
|
---|
| 128 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 129 | <?dbfo list-presentation="list"?>
|
---|
| 130 | <?dbhtml list-presentation="table"?>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="pth-config">
|
---|
| 133 | <term><command>pth-config</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>is a utility used to configure and build applications based on
|
---|
| 136 | the pth(3) library. It can be used to query the C compiler and
|
---|
| 137 | linker flags which are required to correctly compile and link the
|
---|
| 138 | application against the pth(3) library.</para>
|
---|
| 139 | <indexterm zone="pth pth-config">
|
---|
| 140 | <primary sortas="b-pth-config">pth-config</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="libpth">
|
---|
[bfa1248] | 146 | <term><filename class="libraryfile">libpth.so</filename></term>
|
---|
[eab03ca] | 147 | <listitem>
|
---|
| 148 | <para>contains the API functions used by the GNU Portable Threads
|
---|
| 149 | Library.</para>
|
---|
| 150 | <indexterm zone="pth libpth">
|
---|
[bfa1248] | 151 | <primary sortas="c-libpth">libpth.so</primary>
|
---|
[eab03ca] | 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 | </variablelist>
|
---|
| 156 | </sect2>
|
---|
| 157 | </sect1>
|
---|