source: general/genlib/libffi.xml@ 0134954

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0134954 was 0134954, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Initial 7.10 tags; only 765 to go

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17651 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[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">
[459835a]9 <!ENTITY libffi-md5sum "83b89587607e3eb65c70d361f13bab43">
[4efac57]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
[0134954]39 &lfs7a_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
[5b38e37]75 <bridgehead renderas="sect3">libffi Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional">
79 <xref linkend="dejagnu"/> (required to run the testsuite)
80 </para>
81
82 <para condition="html" role="usernotes">
83 User Notes: <ulink url="&blfs-wiki;/libffi"/>
84 </para>
[9d3d8a8]85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of libffi</title>
89
[5b38e37]90 <para>
91 Install <application>libffi</application> by running the following
92 commands:
93 </para>
[9d3d8a8]94
[4efac57]95<screen><userinput>sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
[65f4210a]96 -i include/Makefile.in &amp;&amp;
[4efac57]97
98sed -e '/^includedir/ s/=.*$/=@includedir@/' \
[65f4210a]99 -e 's/^Cflags: -I${includedir}/Cflags:/' \
100 -i libffi.pc.in &amp;&amp;
[4efac57]101
[5b38e37]102./configure --prefix=/usr --disable-static &amp;&amp;
[9d3d8a8]103make</userinput></screen>
104
[5b38e37]105 <para>
106 To test the results, issue: <command>make check</command>.
107 </para>
[9d3d8a8]108
[5b38e37]109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
[9d3d8a8]112
113<screen role="root"><userinput>make install</userinput></screen>
114
115 </sect2>
116
[5b38e37]117 <sect2 role="commands">
118 <title>Command Explanations</title>
119
[65f4210a]120 <para><command>sed ... include/Makefile.in</command> and
[b340892]121 <command>sed ... libffi.pc.in</command>: Makes the package install headers
122 into the standardized <filename class="directory">/usr/include</filename>
123 instead of
124 <filename class="directory">/usr/lib/libffi-&libffi-version;/include.</filename>.</para>
[65f4210a]125
[5b38e37]126 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
127 href="../../xincludes/static-libraries.xml"/>
128
129 </sect2>
130
[9d3d8a8]131 <sect2 role="content">
132 <title>Contents</title>
133
134 <segmentedlist>
135 <segtitle>Installed Programs</segtitle>
136 <segtitle>Installed Library</segtitle>
[c3c56b2]137 <segtitle>Installed Directories</segtitle>
[9d3d8a8]138
139 <seglistitem>
[5b38e37]140 <seg>
141 None
142 </seg>
143 <seg>
144 libffi.so
145 </seg>
146 <seg>
147 None
148 </seg>
[9d3d8a8]149 </seglistitem>
150 </segmentedlist>
151
152 <variablelist>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
156
157 <varlistentry id="libffi-lib">
[5b38e37]158 <term><filename class="libraryfile">libffi.so</filename></term>
[9d3d8a8]159 <listitem>
[5b38e37]160 <para>
161 contains the <application>libffi</application> API
162 functions.
163 </para>
[9d3d8a8]164 <indexterm zone="libffi libffi-lib">
[5b38e37]165 <primary sortas="c-libffi">libffi.so</primary>
[9d3d8a8]166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 </variablelist>
171
172 </sect2>
173
174</sect1>
Note: See TracBrowser for help on using the repository browser.