LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2005, 12:48 PM   #1
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
MIT Library with GPL Program?


I'm writing a program that I intend to use the Expat XML parser in, which I believe is MIT licensed. My program is going to be licensed under GPL-2. As I understand it, the two are compatible, so what do I need to do in my license information? Just give the appropriate credit for Expat and include the GPL?
 
Old 07-08-2005, 01:53 PM   #2
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
Reading through the MIT license, it doesn't seem to say much about derivative works. Since it's a library, I doubt you actually need to credit them. However, if you feel obligated, go ahead and thank them.
 
Old 07-10-2005, 09:38 AM   #3
cracauer
Member
 
Registered: Jul 2004
Location: Boston, MA, USA
Distribution: FreeBSD, Debian/AMD64, Ubuntu/i386
Posts: 59

Rep: Reputation: 15
Re: MIT Library with GPL Program?

Quote:
Originally posted by Matir
I'm writing a program that I intend to use the Expat XML parser in, which I believe is MIT licensed. My program is going to be licensed under GPL-2. As I understand it, the two are compatible, so what do I need to do in my license information? Just give the appropriate credit for Expat and include the GPL?
yes, except you need to engineer the "which I believe is MIT licensed" to "I looked it up and it is MIT licensed"
 
Old 07-10-2005, 10:48 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Original Poster
Rep: Reputation: 128Reputation: 128
Thanks guys.

I have confirmed Expat's status as MIT-licensed code.
 
Old 07-10-2005, 11:15 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
Your license and MIT's license are completely independent: your application simply depends upon their code being previously-installed on the computer in order for it to run successfully.

The only consideration as far as licensing is concerned is if you distribute a copy of their code with yours, as a convenience to your customer. Their license must permit you to distribute their code. But even so... you are simply doing so by permission of the copyright-owner. Your license doesn't apply to them.

If you do, by permission, include a copy of their code, then you must be fully prepared to handle a number of eventualities:
  • You must include the copyright notices required by their library. You must not distribute your application as "public domain." You should include references, URLs etc. advising your customer where the library came from and who they should contact concerning any problems with it.
  • Even if you distribute your application with source-code, this does not automatically give you the right to include source-code of their library. I'm not familiar with this library, but you should never assume.
  • If their library is not present, or is of a too-old version, your program must terminate gracefully and informatively.
  • Your installer must give the user the option to install the MIT-library version you've provided, or not, at their discretion. It must particularly check to make sure that there is not already a (e.g. newer) version of their library already in place.
  • You'll always have to verify that your application continues to work as new MIT-libraries are released.
  • You should write "stub" routines in your application that simply pass control to the appropriate MIT-library routines, trapping any errors that may occur so that you can augment the error-messages produced, informing the user that this problem is specifically related to the MIT-library call. This will help considerably in debugging.
  • Your un-installer must avoid accidentally removing the MIT-library when your own application is removed, even if you installed it yourself.
  • It should go without saying that you should never modify their library in any way. This would produce an unmanageable situation if your customer also had any other applications which relied upon that library.
 
Old 07-10-2005, 09:56 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Original Poster
Rep: Reputation: 128Reputation: 128
Yeah. The documentation I was reading implied that the Expat code was usually linked in to the application statically, but it turns out that is not true, it's just the standard -lexpat deal. So I guess much of this was a moot point, but it was still a good education in licensing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the library used by a program. wangjinyi Fedora 1 11-23-2005 10:31 AM
How to get GPL license to my program? zahoo Linux - Software 2 10-17-2005 03:25 PM
Qt licencing for a GPL win program? BluePyre Programming 3 05-21-2004 05:04 PM
Is there a good music library program Tyir Linux - Software 2 01-24-2004 05:31 PM
include a library in program calble Programming 1 10-09-2003 12:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration