source: general/prog/gc.xml@ 0b585c59

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0b585c59 was 4355dbcf, checked in by Krejzi <krejzi@…>, 11 years ago

Fix gc 7.2 for Automake 1.13

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

  • Property mode set to 100644
File size: 6.5 KB
Line 
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 gc-download-http
8 "http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-&gc-version;.tar.gz">
9 <!ENTITY gc-download-ftp " ">
10 <!ENTITY gc-md5sum "91340b28c61753a789eb6077675d87d2">
11 <!ENTITY gc-size "1.3 MB">
12 <!ENTITY gc-buildsize "13 MB">
13 <!ENTITY gc-time "0.2 SBU">
14]>
15
16<sect1 id="gc" xreflabel="GC-&gc-version;">
17 <?dbhtml filename="gc.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>GC-&gc-version;</title>
25
26 <indexterm zone="gc">
27 <primary sortas="a-GC">GC</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to GC</title>
32
33 <para>
34 The <application>GC</application> package contains the Boehm-Demers-Weiser
35 conservative garbage collector, which can be used as a garbage collecting
36 replacement for the C malloc function or C++ new operator. It allows you
37 to allocate memory basically as you normally would, without explicitly
38 deallocating memory that is no longer useful. The collector automatically
39 recycles memory when it determines that it can no longer be otherwise
40 accessed. The collector is also used by a number of programming language
41 implementations that either use C as intermediate code, want to facilitate
42 easier interoperation with C libraries, or just prefer the simple
43 collector interface. Alternatively, the garbage collector may be used as a
44 leak detector for C or C++ programs, though that is not its primary goal.
45 </para>
46
47 &lfs72_checked;
48
49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
52 <para>
53 Download (HTTP): <ulink url="&gc-download-http;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download (FTP): <ulink url="&gc-download-ftp;"/>
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download MD5 sum: &gc-md5sum;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Download size: &gc-size;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated disk space required: &gc-buildsize;
74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Estimated build time: &gc-time;
79 </para>
80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="libatomic_ops"/> (Gc contains a copy of
86 Libatomic_ops-&gc-version; which it will compile and statically link if
87 configure doesn't find Libatomic_ops installed on your system)
88 </para>
89
90 <para condition="html" role="usernotes">
91 User Notes: <ulink url="&blfs-wiki;/gc"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of GC</title>
97
98 <para>
99 Install <application>GC</application> by running the following commands:
100 </para>
101
102<screen><userinput>sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac &amp;&amp;
103sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' libatomic_ops/configure.ac &amp;&amp;
104sed -i 's#pkgdata#doc#' doc/doc.am &amp;&amp;
105autoreconf -fi &amp;&amp;
106./configure --prefix=/usr \
107 --enable-cplusplus \
108 --disable-static \
109 --docdir=/usr/share/doc/gc-&gc-version; &amp;&amp;
110make</userinput></screen>
111
112 <para>
113 To test the results, issue: <command>make check</command>.
114 </para>
115
116 <para>
117 Now, as the <systemitem class="username">root</systemitem> user:
118 </para>
119
120<screen role="root"><userinput>make install &amp;&amp;
121install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &amp;&amp;
122ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3 </userinput></screen>
123 </sect2>
124
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
129 <command>sed -i 's#AM_CONFIG_HEADER ...</command>: This
130 <command>sed</command> fixes building with
131 <application>Automake</application> 1.13.
132 </para>
133
134 <para>
135 <command>sed -i 's#pkgdata#doc#' doc/doc.am</command> and
136 <option>--docdir=/usr/share/doc/gc-&gc-version;</option>:
137 These commands are used so the package will install the
138 documentation in a versioned directory.
139 </para>
140
141 <para>
142 <command>autoreconf -fi</command>: This regenerates the
143 <command>configure</command> script and the
144 <filename>Makefile.in</filename> files.
145 </para>
146
147 <para>
148 <parameter>--enable-cplusplus</parameter>: This parameter enables the
149 building and installing the C++ library along with the standard C library.
150 </para>
151
152 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
153 href="../../xincludes/static-libraries.xml"/>
154
155 </sect2>
156
157 <sect2 role="content">
158 <title>Contents</title>
159
160 <segmentedlist>
161 <segtitle>Installed Programs</segtitle>
162 <segtitle>Installed Libraries</segtitle>
163 <segtitle>Installed Directories</segtitle>
164
165 <seglistitem>
166 <seg>
167 None
168 </seg>
169 <seg>
170 libcord.so, libgc.so and
171 libgccpp.so
172 </seg>
173 <seg>
174 /usr/include/gc and
175 /usr/share/doc/gc
176 </seg>
177 </seglistitem>
178 </segmentedlist>
179
180 <variablelist>
181 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
182 <?dbfo list-presentation="list"?>
183 <?dbhtml list-presentation="table"?>
184
185 <varlistentry id="libgc">
186 <term><filename class="libraryfile">libgc.so</filename></term>
187 <listitem>
188 <para>
189 contains a C interface to the conservative garbage collector,
190 primarily designed to replace the C malloc function.
191 </para>
192 <indexterm zone="gc libgc">
193 <primary sortas="c-libgc">libgc.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="libgccpp">
199 <term><filename class="libraryfile">libgccpp.so</filename></term>
200 <listitem>
201 <para>
202 contains a C++ interface to the conservative garbage collector.
203 </para>
204 <indexterm zone="gc libgccpp">
205 <primary sortas="c-libgccpp">libgccpp.so</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
211
212 </sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.