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