2
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
7
The GNU Public License 2 in DocBook
8
Markup by Eric Baudais <baudais@okstate.edu>
9
Maintained by the GNOME Documentation Project
10
http://developer.gnome.org/projects/gdp
12
Last Modified: Feb. 5, 2001
17
<title>GNU Lesser General Public License</title>
20
<holder>Free Software Foundation, Inc.</holder>
23
<surname>Free Software Foundation</surname>
25
<publisher role="maintainer">
26
<publishername>GNOME Documentation Project</publishername>
30
<revnumber>2.1</revnumber>
34
<legalnotice id="gpl-legalnotice">
36
<address>Free Software Foundation, Inc.
37
<street>51 Franklin Street, Fifth Floor</street>,
39
<state>MA</state> <postcode>02110-1301</postcode>
40
<country>USA</country>
44
Everyone is permitted to copy and distribute verbatim copies
45
of this license document, but changing it is not allowed.
49
Version 2.1, February 1999
51
<abstract role="description"><para>
52
The licenses for most software are designed to take away your
53
freedom to share and change it. By contrast, the GNU General Public
54
Licenses are intended to guarantee your freedom to share and change
55
free software - to make sure the software is free for all its users.
60
<sect1 id="preamble" label="none">
61
<title>Preamble</title>
64
The licenses for most software are designed to take away your
65
freedom to share and change it. By contrast, the GNU General Public
66
Licenses are intended to guarantee your freedom to share and change
67
free software--to make sure the software is free for all its users.
71
When we speak of free software, we are referring to freedom, not price.
72
Our General Public Licenses are designed to make sure that you have the
73
freedom to distribute copies of free software (and charge for this
74
service if you wish), that you receive source code or can get it if you
75
want it, that you can change the software or use pieces of it in new free
76
programs; and that you know you can do these things.
80
This license, the Lesser General Public License, applies to some
81
specially designated software packages--typically libraries--of the
82
Free Software Foundation and other authors who decide to use it. You
83
can use it too, but we suggest you first think carefully about whether
84
this license or the ordinary General Public License is the better
85
strategy to use in any particular case, based on the explanations below.
89
When we speak of free software, we are referring to freedom of use,
90
not price. Our General Public Licenses are designed to make sure that
91
you have the freedom to distribute copies of free software (and charge
92
for this service if you wish); that you receive source code or can get
93
it if you want it; that you can change the software and use pieces of
94
it in new free programs; and that you are informed that you can do
99
To protect your rights, we need to make restrictions that forbid
100
distributors to deny you these rights or to ask you to surrender these
101
rights. These restrictions translate to certain responsibilities for
102
you if you distribute copies of the library or if you modify it.
106
For example, if you distribute copies of the library, whether gratis
107
or for a fee, you must give the recipients all the rights that we gave
108
you. You must make sure that they, too, receive or can get the source
109
code. If you link other code with the library, you must provide
110
complete object files to the recipients, so that they can relink them
111
with the library after making changes to the library and recompiling
112
it. And you must show them these terms so they know their rights.
116
We protect your rights with a two-step method: (1) we copyright the
117
library, and (2) we offer you this license, which gives you legal
118
permission to copy, distribute and/or modify the library.
122
To protect each distributor, we want to make it very clear that
123
there is no warranty for the free library. Also, if the library is
124
modified by someone else and passed on, the recipients should know
125
that what they have is not the original version, so that the original
126
author's reputation will not be affected by problems that might be
127
introduced by others.
131
Finally, software patents pose a constant threat to the existence of
132
any free program. We wish to make sure that a company cannot
133
effectively restrict the users of a free program by obtaining a
134
restrictive license from a patent holder. Therefore, we insist that
135
any patent license obtained for a version of the library must be
136
consistent with the full freedom of use specified in this license.
140
Most GNU software, including some libraries, is covered by the
141
ordinary GNU General Public License. This license, the GNU Lesser
142
General Public License, applies to certain designated libraries, and
143
is quite different from the ordinary General Public License. We use
144
this license for certain libraries in order to permit linking those
145
libraries into non-free programs.
149
When a program is linked with a library, whether statically or using
150
a shared library, the combination of the two is legally speaking a
151
combined work, a derivative of the original library. The ordinary
152
General Public License therefore permits such linking only if the
153
entire combination fits its criteria of freedom. The Lesser General
154
Public License permits more lax criteria for linking other code with
159
We call this license the <quote>Lesser</quote> General Public License
160
because it does Less to protect the user's freedom than the ordinary
161
General Public License. It also provides other free software developers
162
Less of an advantage over competing non-free programs. These
163
disadvantages are the reason we use the ordinary General Public License
164
for many libraries. However, the Lesser license provides advantages in
165
certain special circumstances.
169
For example, on rare occasions, there may be a special need to
170
encourage the widest possible use of a certain library, so that it becomes
171
a de-facto standard. To achieve this, non-free programs must be
172
allowed to use the library. A more frequent case is that a free
173
library does the same job as widely used non-free libraries. In this
174
case, there is little to gain by limiting the free library to free
175
software only, so we use the Lesser General Public License.
179
In other cases, permission to use a particular library in non-free
180
programs enables a greater number of people to use a large body of
181
free software. For example, permission to use the GNU C Library in
182
non-free programs enables many more people to use the whole GNU
183
operating system, as well as its variant, the GNU/Linux operating
188
Although the Lesser General Public License is Less protective of the
189
users' freedom, it does ensure that the user of a program that is
190
linked with the Library has the freedom and the wherewithal to run
191
that program using a modified version of the Library.
195
The precise terms and conditions for copying, distribution and
196
modification follow. Pay close attention to the difference between a
197
<quote>work based on the library</quote> and a <quote>work that uses the
198
library</quote>. The former contains code derived from the library,
199
whereas the latter must be combined with the library in order to run.
204
<sect1 id="terms" label="none">
205
<title>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</title>
207
<sect2 id="sect0" label="0">
208
<title>Section 0</title>
210
This License Agreement applies to any software library or other
211
program which contains a notice placed by the copyright holder or
212
other authorized party saying it may be distributed under the terms of
213
this Lesser General Public License (also called <quote>this License</quote>).
214
Each licensee is addressed as <quote>you</quote>.
218
A <quote>library</quote> means a collection of software functions and/or data
219
prepared so as to be conveniently linked with application programs
220
(which use some of those functions and data) to form executables.
224
The <quote>Library</quote>, below, refers to any such software library or work
225
which has been distributed under these terms. A <quote>work based on the
226
Library</quote> means either the Library or any derivative work under
227
copyright law: that is to say, a work containing the Library or a
228
portion of it, either verbatim or with modifications and/or translated
229
straightforwardly into another language. (Hereinafter, translation is
230
included without limitation in the term <quote>modification</quote>.)
234
<quote>Source code</quote> for a work means the preferred form of the work for
235
making modifications to it. For a library, complete source code means
236
all the source code for all modules it contains, plus any associated
237
interface definition files, plus the scripts used to control compilation
238
and installation of the library.
242
Activities other than copying, distribution and modification are not
243
covered by this License; they are outside its scope. The act of
244
running a program using the Library is not restricted, and output from
245
such a program is covered only if its contents constitute a work based
246
on the Library (independent of the use of the Library in a tool for
247
writing it). Whether that is true depends on what the Library does
248
and what the program that uses the Library does.
253
<sect2 id="sect1" label="1">
254
<title>Section 1</title>
256
You may copy and distribute verbatim copies of the Library's
257
complete source code as you receive it, in any medium, provided that
258
you conspicuously and appropriately publish on each copy an
259
appropriate copyright notice and disclaimer of warranty; keep intact
260
all the notices that refer to this License and to the absence of any
261
warranty; and distribute a copy of this License along with the
266
You may charge a fee for the physical act of transferring a copy,
267
and you may at your option offer warranty protection in exchange for a
272
<sect2 id="sect2" label="2">
273
<title>Section 2</title>
275
You may modify your copy or copies of the Library or any portion
276
of it, thus forming a work based on the Library, and copy and
277
distribute such modifications or work under the terms of
278
<link linkend="sect1">Section 1</link> above, provided that
279
you also meet all of these conditions:
281
<orderedlist numeration="loweralpha">
284
The modified work must itself be a software library.
289
You must cause the files modified to carry prominent notices
290
stating that you changed the files and the date of any change.
295
You must cause the whole of the work to be licensed at no
296
charge to all third parties under the terms of this License.
301
If a facility in the modified Library refers to a function or a
302
table of data to be supplied by an application program that uses
303
the facility, other than as an argument passed when the facility
304
is invoked, then you must make a good faith effort to ensure that,
305
in the event an application does not supply such function or
306
table, the facility still operates, and performs whatever part of
307
its purpose remains meaningful.
311
(For example, a function in a library to compute square roots has
312
a purpose that is entirely well-defined independent of the
313
application. Therefore, Subsection 2d requires that any
314
application-supplied function or table used by this function must
315
be optional: if the application does not supply it, the square
316
root function must still compute square roots.)
320
These requirements apply to the modified work as a whole. If
321
identifiable sections of that work are not derived from the Library,
322
and can be reasonably considered independent and separate works in
323
themselves, then this License, and its terms, do not apply to those
324
sections when you distribute them as separate works. But when you
325
distribute the same sections as part of a whole which is a work based
326
on the Library, the distribution of the whole must be on the terms of
327
this License, whose permissions for other licensees extend to the
328
entire whole, and thus to each and every part regardless of who wrote
333
Thus, it is not the intent of this section to claim rights or contest
334
your rights to work written entirely by you; rather, the intent is to
335
exercise the right to control the distribution of derivative or
336
collective works based on the Library.
340
In addition, mere aggregation of another work not based on the Library
341
with the Library (or with a work based on the Library) on a volume of
342
a storage or distribution medium does not bring the other work under
343
the scope of this License.
351
<sect2 id="sect3" label="3">
352
<title>Section 3</title>
355
You may opt to apply the terms of the ordinary GNU General Public
356
License instead of this License to a given copy of the Library. To do
357
this, you must alter all the notices that refer to this License, so
358
that they refer to the ordinary GNU General Public License, version 2,
359
instead of to this License. (If a newer version than version 2 of the
360
ordinary GNU General Public License has appeared, then you can specify
361
that version instead if you wish.) Do not make any other change in
366
Once this change is made in a given copy, it is irreversible for
367
that copy, so the ordinary GNU General Public License applies to all
368
subsequent copies and derivative works made from that copy.
372
This option is useful when you wish to copy part of the code of
373
the Library into a program that is not a library.
377
<sect2 id="sect4" label="4">
378
<title>Section 4</title>
381
You may copy and distribute the Library (or a portion or
382
derivative of it, under <link linkend="sect2">Section 2</link>
383
) in object code or executable form under the terms of Sections
384
<link linkend="sect1">1</link> and
385
<link linkend="sect2">2</link> above provided that you accompany
386
it with the complete corresponding machine-readable source code, which
387
must be distributed under the terms of Sections <link linkend="sect1">1</link>
388
and <link linkend="sect2">2</link> above on a
389
medium customarily used for software interchange.
393
If distribution of object code is made by offering access to copy
394
from a designated place, then offering equivalent access to copy the
395
source code from the same place satisfies the requirement to
396
distribute the source code, even though third parties are not
397
compelled to copy the source along with the object code.
402
<sect2 id="sect5" label="5">
403
<title>Section 5</title>
406
A program that contains no derivative of any portion of the
407
Library, but is designed to work with the Library by being compiled or
408
linked with it, is called a <quote>work that uses the Library</quote>.
409
Such a work, in isolation, is not a derivative work of the Library, and
410
therefore falls outside the scope of this License.
414
However, linking a <quote>work that uses the Library</quote> with the Library
415
creates an executable that is a derivative of the Library (because it
416
contains portions of the Library), rather than a <quote>work that uses the
417
library</quote>. The executable is therefore covered by this License.
418
<link linkend="sect6">Section 6</link> states terms for distribution
423
When a <quote>work that uses the Library</quote> uses material from a
424
header file that is part of the Library, the object code for the work
425
may be a derivative work of the Library even though the source code is not.
426
Whether this is true is especially significant if the work can be
427
linked without the Library, or if the work is itself a library. The
428
threshold for this to be true is not precisely defined by law.
432
If such an object file uses only numerical parameters, data
433
structure layouts and accessors, and small macros and small inline
434
functions (ten lines or less in length), then the use of the object
435
file is unrestricted, regardless of whether it is legally a derivative
436
work. (Executables containing this object code plus portions of the
437
Library will still fall under <link linkend="sect6">Section 6</link>.)
441
Otherwise, if the work is a derivative of the Library, you may
442
distribute the object code for the work under the terms of
443
<link linkend="sect6">Section 6</link>.
444
Any executables containing that work also fall under
445
<link linkend="sect6">Section 6</link>,
446
whether or not they are linked directly with the Library itself.
450
<sect2 id="sect6" label="6">
451
<title>Section 6</title>
454
As an exception to the Sections above, you may also combine or
455
link a <quote>work that uses the Library</quote> with the Library to
456
produce a work containing portions of the Library, and distribute that
457
work under terms of your choice, provided that the terms permit
458
modification of the work for the customer's own use and reverse
459
engineering for debugging such modifications.
463
You must give prominent notice with each copy of the work that the
464
Library is used in it and that the Library and its use are covered by
465
this License. You must supply a copy of this License. If the work
466
during execution displays copyright notices, you must include the
467
copyright notice for the Library among them, as well as a reference
468
directing the user to the copy of this License. Also, you must do one
471
<orderedlist numeration="loweralpha">
474
Accompany the work with the complete corresponding
475
machine-readable source code for the Library including whatever
476
changes were used in the work (which must be distributed under
477
Sections <link linkend="sect1">1</link> and
478
<link linkend="sect2">2</link> above); and, if the work is an
479
executable linked with the Library, with the complete machine-readable
480
<quote>work that uses the Library</quote>, as object code and/or source
481
code, so that the user can modify the Library and then relink to
482
produce a modified executable containing the modified Library. (It is
483
understood that the user who changes the contents of definitions files
484
in the Library will not necessarily be able to recompile the application
485
to use the modified definitions.)
490
Use a suitable shared library mechanism for linking with the
491
Library. A suitable mechanism is one that (1) uses at run time a
492
copy of the library already present on the user's computer system,
493
rather than copying library functions into the executable, and (2)
494
will operate properly with a modified version of the library, if
495
the user installs one, as long as the modified version is
496
interface-compatible with the version that the work was made with.
501
Accompany the work with a written offer, valid for at
502
least three years, to give the same user the materials
503
specified in <link linkend="sect6a">Subsection 6a</link>
504
, above, for a charge no more than the cost of performing
510
If distribution of the work is made by offering access to copy
511
from a designated place, offer equivalent access to copy the above
512
specified materials from the same place.
517
Verify that the user has already received a copy of these
518
materials or that you have already sent this user a copy.
525
For an executable, the required form of the <quote>work that uses the
526
Library</quote> must include any data and utility programs needed for
527
reproducing the executable from it. However, as a special exception,
528
the materials to be distributed need not include anything that is
529
normally distributed (in either source or binary form) with the major
530
components (compiler, kernel, and so on) of the operating system on
531
which the executable runs, unless that component itself accompanies
536
It may happen that this requirement contradicts the license
537
restrictions of other proprietary libraries that do not normally
538
accompany the operating system. Such a contradiction means you cannot
539
use both them and the Library together in an executable that you
545
<sect2 id="sect7" label="7">
546
<title>Section 7</title>
549
You may place library facilities that are a work based on the
550
Library side-by-side in a single library together with other library
551
facilities not covered by this License, and distribute such a combined
552
library, provided that the separate distribution of the work based on
553
the Library and of the other library facilities is otherwise
554
permitted, and provided that you do these two things:
557
<orderedlist numeration="loweralpha">
560
Accompany the combined library with a copy of the same work
561
based on the Library, uncombined with any other library
562
facilities. This must be distributed under the terms of the
568
Give prominent notice with the combined library of the fact
569
that part of it is a work based on the Library, and explaining
570
where to find the accompanying uncombined form of the same work.
576
<sect2 id="sect8" label="8">
577
<title>Section 8</title>
580
You may not copy, modify, sublicense, link with, or distribute
581
the Library except as expressly provided under this License. Any
582
attempt otherwise to copy, modify, sublicense, link with, or
583
distribute the Library is void, and will automatically terminate your
584
rights under this License. However, parties who have received copies,
585
or rights, from you under this License will not have their licenses
586
terminated so long as such parties remain in full compliance.
590
<sect2 id="sect9" label="9">
591
<title>Section 9</title>
594
You are not required to accept this License, since you have not
595
signed it. However, nothing else grants you permission to modify or
596
distribute the Library or its derivative works. These actions are
597
prohibited by law if you do not accept this License. Therefore, by
598
modifying or distributing the Library (or any work based on the
599
Library), you indicate your acceptance of this License to do so, and
600
all its terms and conditions for copying, distributing or modifying
601
the Library or works based on it.
605
<sect2 id="sect10" label="10">
606
<title>Section 10</title>
609
Each time you redistribute the Library (or any work based on the
610
Library), the recipient automatically receives a license from the
611
original licensor to copy, distribute, link with or modify the Library
612
subject to these terms and conditions. You may not impose any further
613
restrictions on the recipients' exercise of the rights granted herein.
614
You are not responsible for enforcing compliance by third parties with
619
<sect2 id="sect11" label="11">
620
<title>Section 11</title>
623
If, as a consequence of a court judgment or allegation of patent
624
infringement or for any other reason (not limited to patent issues),
625
conditions are imposed on you (whether by court order, agreement or
626
otherwise) that contradict the conditions of this License, they do not
627
excuse you from the conditions of this License. If you cannot
628
distribute so as to satisfy simultaneously your obligations under this
629
License and any other pertinent obligations, then as a consequence you
630
may not distribute the Library at all. For example, if a patent
631
license would not permit royalty-free redistribution of the Library by
632
all those who receive copies directly or indirectly through you, then
633
the only way you could satisfy both it and this License would be to
634
refrain entirely from distribution of the Library.
638
If any portion of this section is held invalid or unenforceable under any
639
particular circumstance, the balance of the section is intended to apply,
640
and the section as a whole is intended to apply in other circumstances.
644
It is not the purpose of this section to induce you to infringe any
645
patents or other property right claims or to contest validity of any
646
such claims; this section has the sole purpose of protecting the
647
integrity of the free software distribution system which is
648
implemented by public license practices. Many people have made
649
generous contributions to the wide range of software distributed
650
through that system in reliance on consistent application of that
651
system; it is up to the author/donor to decide if he or she is willing
652
to distribute software through any other system and a licensee cannot
657
This section is intended to make thoroughly clear what is believed to
658
be a consequence of the rest of this License.
662
<sect2 id="sect12" label="12">
663
<title>Section 12</title>
666
If the distribution and/or use of the Library is restricted in
667
certain countries either by patents or by copyrighted interfaces, the
668
original copyright holder who places the Library under this License may add
669
an explicit geographical distribution limitation excluding those countries,
670
so that distribution is permitted only in or among countries not thus
671
excluded. In such case, this License incorporates the limitation as if
672
written in the body of this License.
676
<sect2 id="sect13" label="13">
677
<title>Section 13</title>
680
The Free Software Foundation may publish revised and/or new
681
versions of the Lesser General Public License from time to time.
682
Such new versions will be similar in spirit to the present version,
683
but may differ in detail to address new problems or concerns.
687
Each version is given a distinguishing version number. If the Library
688
specifies a version number of this License which applies to it and
689
<quote>any later version</quote>, you have the option of following the terms and
690
conditions either of that version or of any later version published by
691
the Free Software Foundation. If the Library does not specify a
692
license version number, you may choose any version ever published by
693
the Free Software Foundation.
697
<sect2 id="sect14" label="14">
698
<title>Section 14</title>
701
If you wish to incorporate parts of the Library into other free
702
programs whose distribution conditions are incompatible with these,
703
write to the author to ask for permission. For software which is
704
copyrighted by the Free Software Foundation, write to the Free
705
Software Foundation; we sometimes make exceptions for this. Our
706
decision will be guided by the two goals of preserving the free status
707
of all derivatives of our free software and of promoting the sharing
708
and reuse of software generally.
712
<sect2 id="sect15" label="15">
713
<title>NO WARRANTY</title>
714
<subtitle>Section 15</subtitle>
717
BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
718
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
719
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
720
OTHER PARTIES PROVIDE THE LIBRARY <quote>AS IS</quote> WITHOUT WARRANTY
721
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED
722
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
723
PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
724
OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU
725
ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
729
<sect2 id="sect16" label="16">
730
<title>Section 16</title>
733
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
734
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
735
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
736
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
737
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
738
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
739
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
740
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
741
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH