[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
|
---|
| 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 "aa0c960b23a9d66a3c30c3e6ba80a99a">
|
---|
[e3060aa] | 12 | <!ENTITY nspr-size "1.2 MB">
|
---|
[7753fc6] | 13 | <!ENTITY nspr-buildsize "15 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">
|
---|
| 28 | <primary sortas="a-NSPR">Netscape Portable Runtime</primary>
|
---|
| 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 |
|
---|
[4c77a949] | 39 | &lfs71_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 |
|
---|
[7753fc6] | 87 | <screen><userinput>cd mozilla/nsprpub &&
|
---|
[e305fa83] | 88 | sed -i 's#^\(RELEASE_BINS =\).*#\1#' pr/src/misc/Makefile.in &&
|
---|
[7753fc6] | 89 | sed -i 's#$(LIBRARY) ##' config/rules.mk &&
|
---|
[e305fa83] | 90 | ./configure --prefix=/usr --with-mozilla --with-pthreads \
|
---|
[60bb78f] | 91 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
[9c57b3a] | 92 | make</userinput></screen>
|
---|
| 93 |
|
---|
[7753fc6] | 94 | <para>
|
---|
| 95 | This package does not come with a test suite.
|
---|
| 96 | </para>
|
---|
[9c57b3a] | 97 |
|
---|
[7753fc6] | 98 | <para>
|
---|
| 99 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 100 | </para>
|
---|
[9c57b3a] | 101 |
|
---|
| 102 | <screen role="root"><userinput>make install &&
|
---|
[a340035] | 103 |
|
---|
[7753fc6] | 104 | cat > /usr/lib/pkgconfig/nspr.pc << "HERE_DOC"
|
---|
| 105 | prefix=/usr
|
---|
| 106 | exec_prefix=${prefix}
|
---|
| 107 | libdir=${exec_prefix}/lib
|
---|
| 108 | includedir=${prefix}/include/nspr
|
---|
| 109 |
|
---|
| 110 | Name: NSPR
|
---|
| 111 | Description: The Netscape Portable Runtime
|
---|
| 112 | Version: &nspr-version;.0
|
---|
| 113 | Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread
|
---|
| 114 | Cflags: -I${includedir}
|
---|
| 115 | HERE_DOC</userinput></screen>
|
---|
[9c57b3a] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
[7753fc6] | 121 | <para>
|
---|
| 122 | <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
|
---|
| 123 | to the libraries (required if you want to build any other Mozilla products
|
---|
| 124 | and link them to these libraries).
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | <parameter>--with-pthreads</parameter>: This parameter forces use of the
|
---|
| 129 | system pthreads library.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
[60bb78f] | 133 | <parameter>$([ $(uname -m) ... --enable-64bit</parameter>: This parameter is
|
---|
[7753fc6] | 134 | required <emphasis>on an x86_64 system</emphasis> to prevent
|
---|
| 135 | <command>configure</command> failing with a claim that this is a system
|
---|
| 136 | without pthread support. It has no effect on a 32 bit system.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | <command>sed -i 's#^\(RELEASE_BINS ...</command>: This disables installing
|
---|
| 141 | two unneeded scripts.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This disables
|
---|
| 146 | installing the static libraries.
|
---|
| 147 | </para>
|
---|
[a340035] | 148 |
|
---|
| 149 | <para><command>cat > /usr/lib/pkgconfig/nspr.pc ...</command>Create a
|
---|
| 150 | pkg-config file to help other programs finding the nspr libraries.</para>
|
---|
| 151 |
|
---|
[9c57b3a] | 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="content">
|
---|
| 155 | <title>Contents</title>
|
---|
| 156 |
|
---|
| 157 | <segmentedlist>
|
---|
| 158 | <segtitle>Installed Programs</segtitle>
|
---|
| 159 | <segtitle>Installed Libraries</segtitle>
|
---|
| 160 | <segtitle>Installed Directories</segtitle>
|
---|
| 161 |
|
---|
| 162 | <seglistitem>
|
---|
| 163 | <seg>nspr-config</seg>
|
---|
[7753fc6] | 164 | <seg>libnspr4.so, libplc4.so, and libplds4.so</seg>
|
---|
[9c57b3a] | 165 | <seg>/usr/include/nspr</seg>
|
---|
| 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 | <?dbhtml list-presentation="table"?>
|
---|
| 173 |
|
---|
[9c34dc7] | 174 | <varlistentry id="nspr-config">
|
---|
[9c57b3a] | 175 | <term><command>nspr-config</command></term>
|
---|
| 176 | <listitem>
|
---|
[7753fc6] | 177 | <para>
|
---|
| 178 | provides compiler and linker options to other packages that use
|
---|
| 179 | <application>NSPR</application>.
|
---|
| 180 | </para>
|
---|
[9c57b3a] | 181 | <indexterm zone="nspr nspr-config">
|
---|
| 182 | <primary sortas="b-nspr-config">nspr-config</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
[e305fa83] | 187 | <varlistentry id="libnspr4">
|
---|
[7753fc6] | 188 | <term><filename class='libraryfile'>libnspr4.so</filename></term>
|
---|
[e305fa83] | 189 | <listitem>
|
---|
[7753fc6] | 190 | <para>
|
---|
| 191 | contains functions that provide platform independence for non-GUI
|
---|
| 192 | operating system facilities such as threads, thread synchronization,
|
---|
| 193 | normal file and network I/O, interval timing and calendar time,
|
---|
| 194 | basic memory management and shared library linking.
|
---|
| 195 | </para>
|
---|
[e305fa83] | 196 | <indexterm zone="nspr libnspr4">
|
---|
[7753fc6] | 197 | <primary sortas="c-libnspr4">libnspr4.so</primary>
|
---|
[e305fa83] | 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="libplc4">
|
---|
[7753fc6] | 203 | <term><filename class='libraryfile'>libplc4.so</filename></term>
|
---|
[e305fa83] | 204 | <listitem>
|
---|
[7753fc6] | 205 | <para>
|
---|
| 206 | contains functions that implement many of the features offered by
|
---|
| 207 | libnspr4
|
---|
| 208 | </para>
|
---|
[e305fa83] | 209 | <indexterm zone="nspr libplc4">
|
---|
[7753fc6] | 210 | <primary sortas="c-libplc4">libplc4.so</primary>
|
---|
[e305fa83] | 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="libplds4">
|
---|
[7753fc6] | 216 | <term><filename class='libraryfile'>libplds4.so</filename></term>
|
---|
[e305fa83] | 217 | <listitem>
|
---|
[7753fc6] | 218 | <para>
|
---|
| 219 | contains functions that provide data structures.
|
---|
| 220 | </para>
|
---|
[e305fa83] | 221 | <indexterm zone="nspr libplds4">
|
---|
[7753fc6] | 222 | <primary sortas="c-libplds4">libplds4.so</primary>
|
---|
[e305fa83] | 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
[9c57b3a] | 226 | </variablelist>
|
---|
| 227 | </sect2>
|
---|
| 228 | </sect1>
|
---|