[b779049] | 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 |
|
---|
[bed6dae2] | 7 | <!ENTITY libatomic_ops-download-http
|
---|
[9226ef4] | 8 | "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-&libatomic_ops-version;.tar.gz">
|
---|
[b779049] | 9 | <!ENTITY libatomic_ops-download-ftp " ">
|
---|
[4e143323] | 10 | <!ENTITY libatomic_ops-md5sum "e6997db4875909e11b514cd5c3caa3cf">
|
---|
[9662c41] | 11 | <!ENTITY libatomic_ops-size "228 KB">
|
---|
[4e143323] | 12 | <!ENTITY libatomic_ops-buildsize "5.0 MB">
|
---|
[9662c41] | 13 | <!ENTITY libatomic_ops-time "0.1 SBU">
|
---|
[b779049] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
|
---|
| 17 | <?dbhtml filename="libatomic_ops.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>libatomic_ops-&libatomic_ops-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libatomic_ops">
|
---|
| 27 | <primary sortas="a-libatomic_ops">libatomic_ops</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libatomic_ops</title>
|
---|
| 32 |
|
---|
[bed6dae2] | 33 | <para>
|
---|
| 34 | <application>libatomic_ops</application> provides implementations for
|
---|
| 35 | atomic memory update operations on a number of architectures. This allows
|
---|
| 36 | direct use of these in reasonably portable code. Unlike earlier similar
|
---|
| 37 | packages, this one explicitly considers memory barrier semantics, and
|
---|
| 38 | allows the construction of code that involves minimum overhead across a
|
---|
| 39 | variety of architectures.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
[f6068507] | 42 | &lfs74_checked;
|
---|
[b779049] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[9226ef4] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&libatomic_ops-download-http;"/>
|
---|
| 49 | </para>
|
---|
[b779049] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[9226ef4] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[b779049] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[9226ef4] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &libatomic_ops-md5sum;
|
---|
| 59 | </para>
|
---|
[b779049] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[9226ef4] | 62 | <para>
|
---|
| 63 | Download size: &libatomic_ops-size;
|
---|
| 64 | </para>
|
---|
[b779049] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[9226ef4] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &libatomic_ops-buildsize;
|
---|
| 69 | </para>
|
---|
[b779049] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[9226ef4] | 72 | <para>
|
---|
| 73 | Estimated build time: &libatomic_ops-time;
|
---|
| 74 | </para>
|
---|
[b779049] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
[bed6dae2] | 78 | <para condition="html" role="usernotes">
|
---|
| 79 | User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
|
---|
| 80 | </para>
|
---|
[b779049] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of libatomic_ops</title>
|
---|
| 85 |
|
---|
[bed6dae2] | 86 | <para>
|
---|
| 87 | Install <application>libatomic_ops</application> by running the following
|
---|
| 88 | commands:
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
[9226ef4] | 91 | <screen><userinput>sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac &&
|
---|
| 92 | sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &&
|
---|
[bed6dae2] | 93 | sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &&
|
---|
| 94 | sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
|
---|
[b3bb56b] | 95 | sed -i 's#pkgdata#doc#' doc/Makefile.am &&
|
---|
[9226ef4] | 96 | autoreconf -fi &&
|
---|
[4e143323] | 97 | ./configure --prefix=/usr \
|
---|
| 98 | --docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; \
|
---|
| 99 | --disable-static &&
|
---|
[b779049] | 100 | make</userinput></screen>
|
---|
| 101 |
|
---|
[4e143323] | 102 | <para>
|
---|
[0d7900a] | 103 | To check the results, issue
|
---|
[4e143323] | 104 | <command>LD_LIBRARY_PATH=../src/.libs make check</command>.
|
---|
| 105 | </para>
|
---|
[b779049] | 106 |
|
---|
[bed6dae2] | 107 | <para>
|
---|
| 108 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
[b779049] | 110 |
|
---|
[852e5ac] | 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0d7900a] | 112 |
|
---|
[852e5ac] | 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
[9226ef4] | 118 | <para>
|
---|
| 119 | <command>sed -i 's#AM_CONFIG_HEADER ...</command>: This
|
---|
| 120 | <command>sed</command> fixes building with
|
---|
| 121 | <application>Automake</application> 1.13.
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
[bed6dae2] | 124 | <para>
|
---|
[ec64d28] | 125 | <command>sed -i 's#AC_PROG_RANLIB ...</command>: These
|
---|
[0d7900a] | 126 | <command>sed</command>s massage the autotool files so that a shared
|
---|
[ec64d28] | 127 | library is built, the tests pass, and the docs are installed in an
|
---|
| 128 | appropriate directory.
|
---|
[bed6dae2] | 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
[9226ef4] | 132 | <command>autoreconf -fi</command>: This regenerates the
|
---|
[ec64d28] | 133 | <command>configure</command> script and the <filename>Makefile.in</filename>
|
---|
| 134 | files and installs a missing file.
|
---|
[bed6dae2] | 135 | </para>
|
---|
[b779049] | 136 |
|
---|
[bed6dae2] | 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 139 |
|
---|
[b779049] | 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
[c3c56b2] | 146 | <segtitle>Installed Programs</segtitle>
|
---|
[b779049] | 147 | <segtitle>Installed Libraries</segtitle>
|
---|
| 148 | <segtitle>Installed Directory</segtitle>
|
---|
| 149 |
|
---|
| 150 | <seglistitem>
|
---|
[c3c56b2] | 151 | <seg>
|
---|
| 152 | None
|
---|
| 153 | </seg>
|
---|
[bed6dae2] | 154 | <seg>
|
---|
[4e143323] | 155 | libatomic_ops.so and libatomic_ops_gpl.so
|
---|
| 156 | </seg>
|
---|
| 157 | <seg>
|
---|
| 158 | /usr/include/libatomic_ops
|
---|
[bed6dae2] | 159 | </seg>
|
---|
[b779049] | 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
| 162 |
|
---|
| 163 | <variablelist>
|
---|
| 164 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 165 | <?dbfo list-presentation="list"?>
|
---|
| 166 | <?dbhtml list-presentation="table"?>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libatomic_ops-lib">
|
---|
[9226ef4] | 169 | <term><filename class="libraryfile">libatomic_ops.so</filename></term>
|
---|
[b779049] | 170 | <listitem>
|
---|
[9226ef4] | 171 | <para>
|
---|
| 172 | contains functions for atomic memory operations.
|
---|
| 173 | </para>
|
---|
[b779049] | 174 | <indexterm zone="libatomic_ops libatomic_ops-lib">
|
---|
[bed6dae2] | 175 | <primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
|
---|
[b779049] | 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
[4e143323] | 179 |
|
---|
[b779049] | 180 | </variablelist>
|
---|
[4e143323] | 181 |
|
---|
[b779049] | 182 | </sect2>
|
---|
[4e143323] | 183 |
|
---|
[b779049] | 184 | </sect1>
|
---|