[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">
|
---|
[f248508] | 9 | <!ENTITY libffi-md5sum "83b89587607e3eb65c70d361f13bab43">
|
---|
[ac38e9dc] | 10 | <!ENTITY libffi-size "920 KB">
|
---|
| 11 | <!ENTITY libffi-buildsize "6.1 MB (additional 1.7 MB for the tests)">
|
---|
| 12 | <!ENTITY libffi-time "less than 0.1 SBU (additional 0.4 SBU for the tests)">
|
---|
[9d3d8a8] | 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 |
|
---|
[4c845f18] | 39 | &lfs79_checked;
|
---|
[27e62762] | 40 |
|
---|
[6d27308] | 41 | &gcc6_checked;
|
---|
| 42 |
|
---|
[9d3d8a8] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[5b38e37] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&libffi-download-http;"/>
|
---|
| 48 | </para>
|
---|
[9d3d8a8] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[5b38e37] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&libffi-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[9d3d8a8] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[5b38e37] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &libffi-md5sum;
|
---|
| 58 | </para>
|
---|
[9d3d8a8] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[5b38e37] | 61 | <para>
|
---|
| 62 | Download size: &libffi-size;
|
---|
| 63 | </para>
|
---|
[9d3d8a8] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[5b38e37] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &libffi-buildsize;
|
---|
| 68 | </para>
|
---|
[9d3d8a8] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[5b38e37] | 71 | <para>
|
---|
| 72 | Estimated build time: &libffi-time;
|
---|
| 73 | </para>
|
---|
[9d3d8a8] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[5b38e37] | 77 | <bridgehead renderas="sect3">libffi Dependencies</bridgehead>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 80 | <para role="optional">
|
---|
| 81 | <xref linkend="dejagnu"/> (required to run the testsuite)
|
---|
| 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <para condition="html" role="usernotes">
|
---|
| 85 | User Notes: <ulink url="&blfs-wiki;/libffi"/>
|
---|
| 86 | </para>
|
---|
[9d3d8a8] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of libffi</title>
|
---|
| 91 |
|
---|
[5b38e37] | 92 | <para>
|
---|
| 93 | Install <application>libffi</application> by running the following
|
---|
| 94 | commands:
|
---|
| 95 | </para>
|
---|
[9d3d8a8] | 96 |
|
---|
[ac38e9dc] | 97 | <screen><userinput>sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
|
---|
[65f4210a] | 98 | -i include/Makefile.in &&
|
---|
[ac38e9dc] | 99 |
|
---|
| 100 | sed -e '/^includedir/ s/=.*$/=@includedir@/' \
|
---|
[65f4210a] | 101 | -e 's/^Cflags: -I${includedir}/Cflags:/' \
|
---|
| 102 | -i libffi.pc.in &&
|
---|
[ac38e9dc] | 103 |
|
---|
[5b38e37] | 104 | ./configure --prefix=/usr --disable-static &&
|
---|
[9d3d8a8] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
[5b38e37] | 107 | <para>
|
---|
| 108 | To test the results, issue: <command>make check</command>.
|
---|
| 109 | </para>
|
---|
[9d3d8a8] | 110 |
|
---|
[5b38e37] | 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
[9d3d8a8] | 114 |
|
---|
| 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
[5b38e37] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[65f4210a] | 122 | <para><command>sed ... include/Makefile.in</command> and
|
---|
[4c845f18] | 123 | <command>sed ... libffi.pc.in</command>: This <application>sed</application>
|
---|
| 124 | makes the package install headers into
|
---|
[65f4210a] | 125 | /usr/include instead of /usr/lib/libffi-&libffi-version;/include.</para>
|
---|
| 126 |
|
---|
[5b38e37] | 127 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 128 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
[9d3d8a8] | 132 | <sect2 role="content">
|
---|
| 133 | <title>Contents</title>
|
---|
| 134 |
|
---|
| 135 | <segmentedlist>
|
---|
| 136 | <segtitle>Installed Programs</segtitle>
|
---|
| 137 | <segtitle>Installed Library</segtitle>
|
---|
[c3c56b2] | 138 | <segtitle>Installed Directories</segtitle>
|
---|
[9d3d8a8] | 139 |
|
---|
| 140 | <seglistitem>
|
---|
[5b38e37] | 141 | <seg>
|
---|
| 142 | None
|
---|
| 143 | </seg>
|
---|
| 144 | <seg>
|
---|
| 145 | libffi.so
|
---|
| 146 | </seg>
|
---|
| 147 | <seg>
|
---|
| 148 | None
|
---|
| 149 | </seg>
|
---|
[9d3d8a8] | 150 | </seglistitem>
|
---|
| 151 | </segmentedlist>
|
---|
| 152 |
|
---|
| 153 | <variablelist>
|
---|
| 154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 155 | <?dbfo list-presentation="list"?>
|
---|
| 156 | <?dbhtml list-presentation="table"?>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="libffi-lib">
|
---|
[5b38e37] | 159 | <term><filename class="libraryfile">libffi.so</filename></term>
|
---|
[9d3d8a8] | 160 | <listitem>
|
---|
[5b38e37] | 161 | <para>
|
---|
| 162 | contains the <application>libffi</application> API
|
---|
| 163 | functions.
|
---|
| 164 | </para>
|
---|
[9d3d8a8] | 165 | <indexterm zone="libffi libffi-lib">
|
---|
[5b38e37] | 166 | <primary sortas="c-libffi">libffi.so</primary>
|
---|
[9d3d8a8] | 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | </variablelist>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | </sect1>
|
---|