source: general/prog/gc.xml@ bfefc696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 bfefc696 was bfefc696, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

gc-7.4.0: typo.

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

  • Property mode set to 100644
File size: 6.6 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 "f40d9a47c90d60791eeecb484f8df5ee">
11 <!ENTITY gc-size "1.1 MB">
12 <!ENTITY gc-buildsize "9.8 MB (additional 2.2 MB for the tests)">
13 <!ENTITY gc-time "0.1 SBU (additional 0.1 SBU for the tests)">
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 &lfs74_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">Required</bridgehead>
84 <para role="required">
85 <xref linkend="libatomic_ops"/>
86 </para>
87<!-- (Gc contains a copy of
88 Libatomic_ops-&gc-version; which it will compile and statically link if
89 configure doesn't find Libatomic_ops installed on your system)
90 </para>
91-->
92
93 <para condition="html" role="usernotes">
94 User Notes: <ulink url="&blfs-wiki;/gc"/>
95 </para>
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of GC</title>
100
101 <para>
102 Install <application>GC</application> by running the following commands:
103 </para>
104
105<!--
106<screen><userinput>sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac &amp;&amp;
107sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' libatomic_ops/configure.ac &amp;&amp;
108-->
109<screen><userinput>sed -i 's#pkgdata#doc#' doc/doc.am &amp;&amp;
110autoreconf -fi &amp;&amp;
111./configure --prefix=/usr \
112 --enable-cplusplus \
113 --disable-static \
114 --docdir=/usr/share/doc/gc-&gc-version; &amp;&amp;
115make</userinput></screen>
116
117 <para>
118 To test the results, issue: <command>make check</command>.
119 </para>
120
121 <para>
122 Now, as the <systemitem class="username">root</systemitem> user:
123 </para>
124
125<screen role="root"><userinput>make install &amp;&amp;
126install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &amp;&amp;
127ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3 </userinput></screen>
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133<!-- <para>
134 <command>sed -i 's#AM_CONFIG_HEADER ...</command>: This
135 <command>sed</command> fixes building with
136 <application>Automake</application> 1.13.
137 </para>
138-->
139
140 <para>
141 <command>sed -i 's#pkgdata#doc#' doc/doc.am</command> and
142 <option>--docdir=/usr/share/doc/gc-&gc-version;</option>:
143 These commands are used so the package will install the
144 documentation in a versioned directory.
145 </para>
146
147 <para>
148 <command>autoreconf -fi</command>: This regenerates the
149 <command>configure</command> script and the
150 <filename>Makefile.in</filename> files.
151 </para>
152
153 <para>
154 <parameter>--enable-cplusplus</parameter>: This parameter enables the
155 building and installing the C++ library along with the standard C library.
156 </para>
157
158 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
159 href="../../xincludes/static-libraries.xml"/>
160
161 </sect2>
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Libraries</segtitle>
169 <segtitle>Installed Directories</segtitle>
170
171 <seglistitem>
172 <seg>
173 None
174 </seg>
175 <seg>
176 libcord.so, libgc.so and
177 libgccpp.so
178 </seg>
179 <seg>
180 /usr/include/gc and
181 /usr/share/doc/gc-&gc-version;
182 </seg>
183 </seglistitem>
184 </segmentedlist>
185
186 <variablelist>
187 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
188 <?dbfo list-presentation="list"?>
189 <?dbhtml list-presentation="table"?>
190
191 <varlistentry id="libgc">
192 <term><filename class="libraryfile">libgc.so</filename></term>
193 <listitem>
194 <para>
195 contains a C interface to the conservative garbage collector,
196 primarily designed to replace the C malloc function.
197 </para>
198 <indexterm zone="gc libgc">
199 <primary sortas="c-libgc">libgc.so</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="libgccpp">
205 <term><filename class="libraryfile">libgccpp.so</filename></term>
206 <listitem>
207 <para>
208 contains a C++ interface to the conservative garbage collector.
209 </para>
210 <indexterm zone="gc libgccpp">
211 <primary sortas="c-libgccpp">libgccpp.so</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 </variablelist>
217
218 </sect2>
219
220</sect1>
Note: See TracBrowser for help on using the repository browser.