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