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