[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 |
|
---|
| 32 | <para>The <application>Pth</application> package contains a very portable
|
---|
| 33 | POSIX/ANSI-C based library for Unix platforms which provides non-preemptive
|
---|
| 34 | priority-based scheduling for multiple threads of execution (multithreading)
|
---|
| 35 | inside event-driven applications. All threads run in the same address space
|
---|
| 36 | of the server application, but each thread has its own individual
|
---|
| 37 | program-counter, run-time stack, signal mask and errno variable. </para>
|
---|
| 38 |
|
---|
[82e1be5] | 39 | &lfs83_checked;
|
---|
[70dcb19] | 40 |
|
---|
[eab03ca] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (HTTP): <ulink url="&pth-download-http;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&pth-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &pth-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &pth-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &pth-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &pth-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <para condition="html" role="usernotes">User Notes:
|
---|
| 64 | <ulink url="&blfs-wiki;/pth"/></para>
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="installation">
|
---|
| 68 | <title>Installation of Pth</title>
|
---|
| 69 |
|
---|
[98b5744] | 70 | <caution>
|
---|
| 71 | <para>Don't add the <option>--enable-pthread</option> parameter to the
|
---|
| 72 | <command>configure</command> command below else you will overwrite the
|
---|
| 73 | pthread library and interface header installed by the
|
---|
| 74 | <application>Glibc</application> package in LFS.</para>
|
---|
| 75 | </caution>
|
---|
| 76 |
|
---|
[eab03ca] | 77 | <para>Install <application>Pth</application> by running the
|
---|
| 78 | following commands:</para>
|
---|
| 79 |
|
---|
[bfa1248] | 80 | <screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &&
|
---|
[601a838] | 81 | ./configure --prefix=/usr \
|
---|
| 82 | --disable-static \
|
---|
| 83 | --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 |
|
---|
[601a838] | 100 | <para><command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
|
---|
| 101 | fixes a race condition in the <filename>Makefile</filename>. It allows you
|
---|
| 102 | to run <command>make</command> with multiple jobs (e.g., <command>make -j4</command>)
|
---|
| 103 | <!-- how ironic that a package for using multiple threads has this bug in
|
---|
| 104 | its Makefile -->.</para>
|
---|
[eab03ca] | 105 |
|
---|
[f1d7196] | 106 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 107 | href="../../xincludes/static-libraries.xml"/>
|
---|
[bfa1248] | 108 |
|
---|
[f1d7196] | 109 | <para><parameter>--mandir=/usr/share/man</parameter>: This switch puts the
|
---|
| 110 | man pages in <filename class="directory">/usr/share/man</filename> instead
|
---|
| 111 | of <filename class="directory">/usr/man</filename>.</para>
|
---|
[eab03ca] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="content">
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
| 117 | <segmentedlist>
|
---|
| 118 | <segtitle>Installed Program</segtitle>
|
---|
| 119 | <segtitle>Installed Library</segtitle>
|
---|
| 120 | <segtitle>Installed Directory</segtitle>
|
---|
| 121 |
|
---|
| 122 | <seglistitem>
|
---|
| 123 | <seg>pth-config</seg>
|
---|
[bfa1248] | 124 | <seg>libpth.so</seg>
|
---|
[eab03ca] | 125 | <seg>/usr/share/doc/pth-&pth-version;</seg>
|
---|
| 126 | </seglistitem>
|
---|
| 127 | </segmentedlist>
|
---|
| 128 |
|
---|
| 129 | <variablelist>
|
---|
| 130 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 131 | <?dbfo list-presentation="list"?>
|
---|
| 132 | <?dbhtml list-presentation="table"?>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="pth-config">
|
---|
| 135 | <term><command>pth-config</command></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>is a utility used to configure and build applications based on
|
---|
| 138 | the pth(3) library. It can be used to query the C compiler and
|
---|
| 139 | linker flags which are required to correctly compile and link the
|
---|
| 140 | application against the pth(3) library.</para>
|
---|
| 141 | <indexterm zone="pth pth-config">
|
---|
| 142 | <primary sortas="b-pth-config">pth-config</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="libpth">
|
---|
[bfa1248] | 148 | <term><filename class="libraryfile">libpth.so</filename></term>
|
---|
[eab03ca] | 149 | <listitem>
|
---|
| 150 | <para>contains the API functions used by the GNU Portable Threads
|
---|
| 151 | Library.</para>
|
---|
| 152 | <indexterm zone="pth libpth">
|
---|
[bfa1248] | 153 | <primary sortas="c-libpth">libpth.so</primary>
|
---|
[eab03ca] | 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 | </variablelist>
|
---|
| 158 | </sect2>
|
---|
| 159 | </sect1>
|
---|