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