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 nspr-download-http
|
---|
8 | "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
---|
9 | <!ENTITY nspr-download-ftp
|
---|
10 | "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
---|
11 | <!ENTITY nspr-md5sum "d36d7b65a38f5b43ebd50ad3ad227120">
|
---|
12 | <!ENTITY nspr-size "1.2 MB">
|
---|
13 | <!ENTITY nspr-buildsize "12 MB">
|
---|
14 | <!ENTITY nspr-time "less than 0.1 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="nspr" xreflabel="NSPR-&nspr-version;">
|
---|
18 | <?dbhtml filename="nspr.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>NSPR-&nspr-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="nspr">
|
---|
28 | <primary sortas="a-NSPR">Netscape Portable Runtime</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to NSPR</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | <application>Netscape Portable Runtime</application> (NSPR) provides a
|
---|
36 | platform-neutral API for system level and libc like functions.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs71_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&nspr-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&nspr-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &nspr-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &nspr-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &nspr-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &nspr-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <para condition="html" role="usernotes">
|
---|
76 | User Notes: <ulink url="&blfs-wiki;/nspr"/>
|
---|
77 | </para>
|
---|
78 | </sect2>
|
---|
79 |
|
---|
80 | <sect2 role="installation">
|
---|
81 | <title>Installation of NSPR</title>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | Install <application>NSPR</application> by running the following commands:
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <screen><userinput>cd mozilla/nsprpub &&
|
---|
88 | sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
|
---|
89 | sed -i 's#$(LIBRARY) ##' config/rules.mk &&
|
---|
90 | ./configure --prefix=/usr --with-mozilla --with-pthreads \
|
---|
91 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
92 | make</userinput></screen>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | This package does not come with a test suite.
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="commands">
|
---|
106 | <title>Command Explanations</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
|
---|
110 | to the libraries (required if you want to build any other Mozilla products
|
---|
111 | and link them to these libraries).
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | <parameter>--with-pthreads</parameter>: This parameter forces use of the
|
---|
116 | system pthreads library.
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
121 | --enable-64bit)</parameter>: The --enable-64bit option is
|
---|
122 | <emphasis>required</emphasis> on an x86_64 system to prevent
|
---|
123 | <command>configure</command> failing with a claim that this is a system
|
---|
124 | without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
|
---|
125 | no effect on a 32 bit system.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | <command>sed -ri 's#^(RELEASE_BINS =).*#\1#'
|
---|
130 | pr/src/misc/Makefile.in</command>: This disables installing two unneeded
|
---|
131 | scripts.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This disables
|
---|
136 | installing the static libraries.
|
---|
137 | </para>
|
---|
138 | </sect2>
|
---|
139 |
|
---|
140 | <sect2 role="content">
|
---|
141 | <title>Contents</title>
|
---|
142 |
|
---|
143 | <segmentedlist>
|
---|
144 | <segtitle>Installed Programs</segtitle>
|
---|
145 | <segtitle>Installed Libraries</segtitle>
|
---|
146 | <segtitle>Installed Directories</segtitle>
|
---|
147 |
|
---|
148 | <seglistitem>
|
---|
149 | <seg>nspr-config</seg>
|
---|
150 | <seg>libnspr4.so, libplc4.so, and libplds4.so</seg>
|
---|
151 | <seg>/usr/include/nspr</seg>
|
---|
152 | </seglistitem>
|
---|
153 | </segmentedlist>
|
---|
154 |
|
---|
155 | <variablelist>
|
---|
156 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
157 | <?dbfo list-presentation="list"?>
|
---|
158 | <?dbhtml list-presentation="table"?>
|
---|
159 |
|
---|
160 | <varlistentry id="nspr-config">
|
---|
161 | <term><command>nspr-config</command></term>
|
---|
162 | <listitem>
|
---|
163 | <para>
|
---|
164 | provides compiler and linker options to other packages that use
|
---|
165 | <application>NSPR</application>.
|
---|
166 | </para>
|
---|
167 | <indexterm zone="nspr nspr-config">
|
---|
168 | <primary sortas="b-nspr-config">nspr-config</primary>
|
---|
169 | </indexterm>
|
---|
170 | </listitem>
|
---|
171 | </varlistentry>
|
---|
172 |
|
---|
173 | <varlistentry id="libnspr4">
|
---|
174 | <term><filename class='libraryfile'>libnspr4.so</filename></term>
|
---|
175 | <listitem>
|
---|
176 | <para>
|
---|
177 | contains functions that provide platform independence for non-GUI
|
---|
178 | operating system facilities such as threads, thread synchronization,
|
---|
179 | normal file and network I/O, interval timing and calendar time,
|
---|
180 | basic memory management and shared library linking.
|
---|
181 | </para>
|
---|
182 | <indexterm zone="nspr libnspr4">
|
---|
183 | <primary sortas="c-libnspr4">libnspr4.so</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | <varlistentry id="libplc4">
|
---|
189 | <term><filename class='libraryfile'>libplc4.so</filename></term>
|
---|
190 | <listitem>
|
---|
191 | <para>
|
---|
192 | contains functions that implement many of the features offered by
|
---|
193 | libnspr4
|
---|
194 | </para>
|
---|
195 | <indexterm zone="nspr libplc4">
|
---|
196 | <primary sortas="c-libplc4">libplc4.so</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 |
|
---|
201 | <varlistentry id="libplds4">
|
---|
202 | <term><filename class='libraryfile'>libplds4.so</filename></term>
|
---|
203 | <listitem>
|
---|
204 | <para>
|
---|
205 | contains functions that provide data structures.
|
---|
206 | </para>
|
---|
207 | <indexterm zone="nspr libplds4">
|
---|
208 | <primary sortas="c-libplds4">libplds4.so</primary>
|
---|
209 | </indexterm>
|
---|
210 | </listitem>
|
---|
211 | </varlistentry>
|
---|
212 | </variablelist>
|
---|
213 | </sect2>
|
---|
214 | </sect1>
|
---|