source: general/prog/gc.xml@ 1353bb4

systemd-13485
Last change on this file since 1353bb4 was 6d27308, checked in by Douglas R. Reno <renodr@…>, 8 years ago

GCC6 Tags

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