[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 |
|
---|
[f2d55c92] | 41 | &lfs76_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 |
|
---|
[4252fc2] | 72 | <warning>
|
---|
| 73 | <para>Building this package in <application>Gnome Terminal</application>
|
---|
| 74 | will cause it to hang on configure.</para>
|
---|
| 75 | </warning>
|
---|
| 76 |
|
---|
[98b5744] | 77 | <caution>
|
---|
| 78 | <para>Don't add the <option>--enable-pthread</option> parameter to the
|
---|
| 79 | <command>configure</command> command below else you will overwrite the
|
---|
| 80 | pthread library and interface header installed by the
|
---|
| 81 | <application>Glibc</application> package in LFS.</para>
|
---|
| 82 | </caution>
|
---|
| 83 |
|
---|
[eab03ca] | 84 | <para>Install <application>Pth</application> by running the
|
---|
| 85 | following commands:</para>
|
---|
| 86 |
|
---|
[bfa1248] | 87 | <screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &&
|
---|
[601a838] | 88 | ./configure --prefix=/usr \
|
---|
| 89 | --disable-static \
|
---|
| 90 | --mandir=/usr/share/man &&
|
---|
[eab03ca] | 91 | make</userinput></screen>
|
---|
| 92 |
|
---|
[bfa1248] | 93 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[eab03ca] | 94 |
|
---|
| 95 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 96 | user:</para>
|
---|
| 97 |
|
---|
| 98 | <screen role="root"><userinput>make install &&
|
---|
| 99 | install -v -m755 -d /usr/share/doc/pth-&pth-version; &&
|
---|
| 100 | install -v -m644 README PORTING SUPPORT TESTS \
|
---|
| 101 | /usr/share/doc/pth-&pth-version;</userinput></screen>
|
---|
[bfa1248] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="commands">
|
---|
| 105 | <title>Command Explanations</title>
|
---|
| 106 |
|
---|
[601a838] | 107 | <para><command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
|
---|
| 108 | fixes a race condition in the <filename>Makefile</filename>. It allows you
|
---|
| 109 | to run <command>make</command> with multiple jobs (e.g., <command>make -j4</command>)
|
---|
| 110 | <!-- how ironic that a package for using multiple threads has this bug in
|
---|
| 111 | its Makefile -->.</para>
|
---|
[eab03ca] | 112 |
|
---|
[bfa1248] | 113 | <para><option>--disable-static</option>: This option stops it compiling a
|
---|
| 114 | static version of the library.</para>
|
---|
| 115 |
|
---|
| 116 | <para><option>--mandir=/usr/share/man</option>: This option puts the man
|
---|
[601a838] | 117 | pages in <filename class="directory">/usr/share/man</filename> and not
|
---|
| 118 | <filename class="directory">/usr/man</filename>.</para>
|
---|
[eab03ca] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="content">
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <segmentedlist>
|
---|
| 125 | <segtitle>Installed Program</segtitle>
|
---|
| 126 | <segtitle>Installed Library</segtitle>
|
---|
| 127 | <segtitle>Installed Directory</segtitle>
|
---|
| 128 |
|
---|
| 129 | <seglistitem>
|
---|
| 130 | <seg>pth-config</seg>
|
---|
[bfa1248] | 131 | <seg>libpth.so</seg>
|
---|
[eab03ca] | 132 | <seg>/usr/share/doc/pth-&pth-version;</seg>
|
---|
| 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="pth-config">
|
---|
| 142 | <term><command>pth-config</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>is a utility used to configure and build applications based on
|
---|
| 145 | the pth(3) library. It can be used to query the C compiler and
|
---|
| 146 | linker flags which are required to correctly compile and link the
|
---|
| 147 | application against the pth(3) library.</para>
|
---|
| 148 | <indexterm zone="pth pth-config">
|
---|
| 149 | <primary sortas="b-pth-config">pth-config</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="libpth">
|
---|
[bfa1248] | 155 | <term><filename class="libraryfile">libpth.so</filename></term>
|
---|
[eab03ca] | 156 | <listitem>
|
---|
| 157 | <para>contains the API functions used by the GNU Portable Threads
|
---|
| 158 | Library.</para>
|
---|
| 159 | <indexterm zone="pth libpth">
|
---|
[bfa1248] | 160 | <primary sortas="c-libpth">libpth.so</primary>
|
---|
[eab03ca] | 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 | </variablelist>
|
---|
| 165 | </sect2>
|
---|
| 166 | </sect1>
|
---|