Custom Compiler and Libc Licensing

Posted on 2003-02-26
Medium Priority
Last Modified: 2012-05-04
I am currently working on a compiler/linker for Linux and I have a question related to the licensing of Linux's libc. If I release a compiler that uses libc, and someone compiles a product with it, is their product also subject to the libc licensing (since part of the compiled code may include compiled code from libc as well)?

Basically, I want people to be able to use my compiler to produce their products without worrying about the restrictions of the GNU Library General Public License. Is this possible?
Question by:masterful
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 8031254
You need to be more specific about how the compiler "uses" libc.  Does the compiler invoke libc routines in the process of generating object code?  Does it take code from libc and put it in its output (which means it is a linker as well as a compiler)?  Does it include libc .h files in the source stream it compiles?

Author Comment

ID: 8033241
Yes, the object files that the linker generates invoke malloc() and friends. I know a dynamicically linked malloc() in their final product would be fine, but if they chose to statically link their application, then would they be forced into the terms of the license?

Accepted Solution

bryanh earned 200 total points
ID: 8034723
They'd be safe.  That's the purpose of the LGPL vs the GPL.

If you combine LGPL code with other code (such as by static linking), and the other code interfaces to the LGPL code only through interfaces intentionally exposed by the LGPL code, you can distribute the combination without having to distribute source code for the other code.

By contrast, if that LGPL code were GPL instead, you would in that case have to distribute the whole combination under the GPL, which includes distributing source for the other code.  At least that's what the inventors of GPL believe.

And note that if the other code linked dynamically to the library, then neither GPL nor LGPL on the library would trigger any restrictions on distributing the other code.  Except that some people believe if the other code implements the interface by #including header files from a GPL library, then the other code must be distributed under GPL.

Author Comment

ID: 8034801
Thank you! I just needed that clarified before I advanced my project any farther. Software licensing can be a major pain to deal with sometimes.

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question