2009-08-28 23:57:39 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY nspr-download-http "&mozilla-http;/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
2015-08-09 00:28:25 +08:00
|
|
|
<!ENTITY nspr-download-ftp " ">
|
2018-09-06 06:25:22 +08:00
|
|
|
<!ENTITY nspr-md5sum "1c198c7e73f6b0e2bb9153a644ba246b">
|
2013-07-01 06:05:20 +08:00
|
|
|
<!ENTITY nspr-size "1.1 MB">
|
2018-03-17 07:59:47 +08:00
|
|
|
<!ENTITY nspr-buildsize "10 MB">
|
2014-06-09 07:10:39 +08:00
|
|
|
<!ENTITY nspr-time "less than 0.1 SBU">
|
2009-08-28 23:57:39 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="nspr" xreflabel="NSPR-&nspr-version;">
|
|
|
|
<?dbhtml filename="nspr.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>NSPR-&nspr-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="nspr">
|
2012-10-26 19:12:02 +08:00
|
|
|
<primary sortas="a-NSPR">NSPR</primary>
|
2009-08-28 23:57:39 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to NSPR</title>
|
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
2012-03-05 08:11:27 +08:00
|
|
|
<application>Netscape Portable Runtime</application> (NSPR) provides a
|
|
|
|
platform-neutral API for system level and libc like functions.
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
|
2018-08-16 09:24:48 +08:00
|
|
|
&lfs83_checked;
|
2010-10-27 02:24:49 +08:00
|
|
|
|
2009-08-28 23:57:39 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&nspr-download-http;"/>
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&nspr-download-ftp;"/>
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &nspr-md5sum;
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Download size: &nspr-size;
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &nspr-buildsize;
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &nspr-time;
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/nspr"/>
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of NSPR</title>
|
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Install <application>NSPR</application> by running the following commands:
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
|
2013-07-03 01:59:59 +08:00
|
|
|
<screen><userinput>cd nspr &&
|
2012-06-07 19:38:52 +08:00
|
|
|
sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
|
2017-03-27 02:34:12 +08:00
|
|
|
sed -i 's#$(LIBRARY) ##' config/rules.mk &&
|
2013-07-01 06:05:20 +08:00
|
|
|
|
2012-08-13 23:17:23 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-mozilla \
|
|
|
|
--with-pthreads \
|
|
|
|
$([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
2009-08-28 23:57:39 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
|
2012-06-30 02:51:00 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2009-08-28 23:57:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
2013-10-02 17:50:58 +08:00
|
|
|
<command>sed -ri 's#^(RELEASE_BINS =).*#\1#'
|
|
|
|
pr/src/misc/Makefile.in</command>: This sed disables installing two unneeded
|
|
|
|
scripts.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This sed disables
|
|
|
|
installing the static libraries.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
|
2012-08-13 23:17:23 +08:00
|
|
|
to the libraries (required if you want to build any other Mozilla
|
|
|
|
products and link them to these libraries).
|
2012-03-05 05:53:59 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-02 17:50:58 +08:00
|
|
|
<parameter>--with-pthreads</parameter>: This parameter forces use of the
|
2012-08-13 23:17:23 +08:00
|
|
|
system pthread library.
|
2012-03-05 05:53:59 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-02 17:50:58 +08:00
|
|
|
<parameter>$([ $(uname -m) = x86_64 ] && echo
|
|
|
|
--enable-64bit)</parameter>: The --enable-64bit parameter is
|
2012-06-07 19:38:52 +08:00
|
|
|
<emphasis>required</emphasis> on an x86_64 system to prevent
|
2012-03-05 05:53:59 +08:00
|
|
|
<command>configure</command> failing with a claim that this is a system
|
2012-06-07 19:38:52 +08:00
|
|
|
without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
|
|
|
|
no effect on a 32 bit system.
|
2012-03-05 05:53:59 +08:00
|
|
|
</para>
|
|
|
|
|
2009-08-28 23:57:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-08-13 23:17:23 +08:00
|
|
|
<seg>
|
|
|
|
nspr-config
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libnspr4.so, libplc4.so and libplds4.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/nspr
|
|
|
|
</seg>
|
2009-08-28 23:57:39 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2009-08-29 07:17:05 +08:00
|
|
|
<varlistentry id="nspr-config">
|
2009-08-28 23:57:39 +08:00
|
|
|
<term><command>nspr-config</command></term>
|
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
provides compiler and linker options to other packages that use
|
|
|
|
<application>NSPR</application>.
|
|
|
|
</para>
|
2009-08-28 23:57:39 +08:00
|
|
|
<indexterm zone="nspr nspr-config">
|
|
|
|
<primary sortas="b-nspr-config">nspr-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-11-28 22:03:42 +08:00
|
|
|
<varlistentry id="libnspr4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<term><filename class='libraryfile'>libnspr4.so</filename></term>
|
2011-11-28 22:03:42 +08:00
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
contains functions that provide platform independence for non-GUI
|
|
|
|
operating system facilities such as threads, thread synchronization,
|
|
|
|
normal file and network I/O, interval timing and calendar time,
|
|
|
|
basic memory management and shared library linking.
|
|
|
|
</para>
|
2011-11-28 22:03:42 +08:00
|
|
|
<indexterm zone="nspr libnspr4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<primary sortas="c-libnspr4">libnspr4.so</primary>
|
2011-11-28 22:03:42 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libplc4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<term><filename class='libraryfile'>libplc4.so</filename></term>
|
2011-11-28 22:03:42 +08:00
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
contains functions that implement many of the features offered by
|
|
|
|
libnspr4
|
|
|
|
</para>
|
2011-11-28 22:03:42 +08:00
|
|
|
<indexterm zone="nspr libplc4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<primary sortas="c-libplc4">libplc4.so</primary>
|
2011-11-28 22:03:42 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libplds4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<term><filename class='libraryfile'>libplds4.so</filename></term>
|
2011-11-28 22:03:42 +08:00
|
|
|
<listitem>
|
2012-03-05 05:53:59 +08:00
|
|
|
<para>
|
|
|
|
contains functions that provide data structures.
|
|
|
|
</para>
|
2011-11-28 22:03:42 +08:00
|
|
|
<indexterm zone="nspr libplds4">
|
2012-03-05 05:53:59 +08:00
|
|
|
<primary sortas="c-libplds4">libplds4.so</primary>
|
2011-11-28 22:03:42 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-08-13 23:17:23 +08:00
|
|
|
|
2009-08-28 23:57:39 +08:00
|
|
|
</variablelist>
|
2012-08-13 23:17:23 +08:00
|
|
|
|
2009-08-28 23:57:39 +08:00
|
|
|
</sect2>
|
2012-08-13 23:17:23 +08:00
|
|
|
|
2009-08-28 23:57:39 +08:00
|
|
|
</sect1>
|