[9d3d8a8] | 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 |
|
---|
| 7 | <!ENTITY libffi-download-http " ">
|
---|
| 8 | <!ENTITY libffi-download-ftp "ftp://sourceware.org/pub/libffi/libffi-&libffi-version;.tar.gz">
|
---|
[5b38e37] | 9 | <!ENTITY libffi-md5sum "da984c6756170d50f47925bb333cda71">
|
---|
| 10 | <!ENTITY libffi-size "828 KB">
|
---|
| 11 | <!ENTITY libffi-buildsize "6.1 MB">
|
---|
[9d3d8a8] | 12 | <!ENTITY libffi-time "0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libffi" xreflabel="libffi-&libffi-version;">
|
---|
| 16 | <?dbhtml filename="libffi.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libffi-&libffi-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libffi">
|
---|
| 26 | <primary sortas="a-libffi">libffi</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libffi</title>
|
---|
| 31 |
|
---|
[5b38e37] | 32 | <para>
|
---|
| 33 | The <application>libffi</application> library provides a portable,
|
---|
| 34 | high level programming interface to various calling conventions. This
|
---|
| 35 | allows a programmer to call any function specified by a call interface
|
---|
| 36 | description at run time.
|
---|
| 37 | </para>
|
---|
[9d3d8a8] | 38 |
|
---|
[36fbdb9] | 39 | &lfs73_checked;
|
---|
[27e62762] | 40 |
|
---|
[9d3d8a8] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[5b38e37] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&libffi-download-http;"/>
|
---|
| 46 | </para>
|
---|
[9d3d8a8] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[5b38e37] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&libffi-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[9d3d8a8] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[5b38e37] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &libffi-md5sum;
|
---|
| 56 | </para>
|
---|
[9d3d8a8] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[5b38e37] | 59 | <para>
|
---|
| 60 | Download size: &libffi-size;
|
---|
| 61 | </para>
|
---|
[9d3d8a8] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[5b38e37] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &libffi-buildsize;
|
---|
| 66 | </para>
|
---|
[9d3d8a8] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[5b38e37] | 69 | <para>
|
---|
| 70 | Estimated build time: &libffi-time;
|
---|
| 71 | </para>
|
---|
[9d3d8a8] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[b31b493] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Required patch:
|
---|
| 80 | <ulink url="&patch-root;/libffi-&libffi-version;-includedir-1.patch"/>
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
[5b38e37] | 85 | <bridgehead renderas="sect3">libffi Dependencies</bridgehead>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
| 89 | <xref linkend="dejagnu"/> (required to run the testsuite)
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <para condition="html" role="usernotes">
|
---|
| 93 | User Notes: <ulink url="&blfs-wiki;/libffi"/>
|
---|
| 94 | </para>
|
---|
[9d3d8a8] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of libffi</title>
|
---|
| 99 |
|
---|
[5b38e37] | 100 | <para>
|
---|
| 101 | Install <application>libffi</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[9d3d8a8] | 104 |
|
---|
[b31b493] | 105 | <screen><userinput>patch -Np1 -i ../libffi-&libffi-version;-includedir-1.patch &&
|
---|
[5b38e37] | 106 | ./configure --prefix=/usr --disable-static &&
|
---|
[9d3d8a8] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[5b38e37] | 109 | <para>
|
---|
| 110 | To test the results, issue: <command>make check</command>.
|
---|
| 111 | </para>
|
---|
[9d3d8a8] | 112 |
|
---|
[5b38e37] | 113 | <para>
|
---|
| 114 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 115 | </para>
|
---|
[9d3d8a8] | 116 |
|
---|
| 117 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
[5b38e37] | 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
| 124 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 125 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
[9d3d8a8] | 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
| 134 | <segtitle>Installed Library</segtitle>
|
---|
[c3c56b2] | 135 | <segtitle>Installed Directories</segtitle>
|
---|
[9d3d8a8] | 136 |
|
---|
| 137 | <seglistitem>
|
---|
[5b38e37] | 138 | <seg>
|
---|
| 139 | None
|
---|
| 140 | </seg>
|
---|
| 141 | <seg>
|
---|
| 142 | libffi.so
|
---|
| 143 | </seg>
|
---|
| 144 | <seg>
|
---|
| 145 | None
|
---|
| 146 | </seg>
|
---|
[9d3d8a8] | 147 | </seglistitem>
|
---|
| 148 | </segmentedlist>
|
---|
| 149 |
|
---|
| 150 | <variablelist>
|
---|
| 151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 152 | <?dbfo list-presentation="list"?>
|
---|
| 153 | <?dbhtml list-presentation="table"?>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="libffi-lib">
|
---|
[5b38e37] | 156 | <term><filename class="libraryfile">libffi.so</filename></term>
|
---|
[9d3d8a8] | 157 | <listitem>
|
---|
[5b38e37] | 158 | <para>
|
---|
| 159 | contains the <application>libffi</application> API
|
---|
| 160 | functions.
|
---|
| 161 | </para>
|
---|
[9d3d8a8] | 162 | <indexterm zone="libffi libffi-lib">
|
---|
[5b38e37] | 163 | <primary sortas="c-libffi">libffi.so</primary>
|
---|
[9d3d8a8] | 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | </variablelist>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | </sect1>
|
---|