Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-21-2005, 04:39 AM
|
#1
|
|
Member
Registered: Jan 2005
Posts: 53
Rep:
|
Clarification on GNU GPL license
Hello All,
Can I have any information on this:
I have GPL code. Let me take the name of the file is GPL_Licensed.c
I will develop a module which will be called from the file GPL_Licensed.c
Let me put my module name as My_module.c I will compile the file and will link to GPL_licensed executable file.
The GPL_Licensed.c file interacts with My_module.c.
Now can i distribute the GPL_licensed executable without providing the source code of My_module.c file.
Thank you very much.
|
|
|
|
10-21-2005, 04:49 AM
|
#2
|
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
I think you have to use LGPL to do this. LGPL stands for Lesser GPL.
I don't think you can use GPL and get the same thing done legally.
|
|
|
|
10-21-2005, 07:26 AM
|
#3
|
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
You could also build GLP_license.c file into a dynamic librairy. Ditribute that as GPL or LGPL.
Then my_module.c could dynamicly call the code in your librayry. Not be staticly likned with it. Then you can distribute your cade under the license you want. You are not tied in with the GPL conditions.
But when you say my_module.c, do you mean module as in kernel module? because if thats the case you cannot (as far as I know) use dynamic librairy. You can hower make 2 module.
GLP_license.c->GPL_module.o
my>module.c->my_module.o
Load GLP_module first and simply call its function from my_module.o
Basicly, as long as you dont compile and link with GPL code, you are free to do what ever you want. (actually its a little more complex than that, but this is the general idea)
I know there are quite a few good ressource out there comparing the different kind of licenses with many details.
|
|
|
|
10-21-2005, 12:20 PM
|
#4
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
If you licence something under the GPL you have to make the source code available. This can be as part of the software download, in a seperate space of your server or on cd, whatever method you use if someone requests the code, you have to give it to them.
|
|
|
|
10-21-2005, 10:22 PM
|
#5
|
|
Member
Registered: Jan 2005
Posts: 53
Original Poster
Rep:
|
Thanks a lot for all
<<Boldkiller : But when you say my_module.c, do you mean module as in kernel module? >>
No...I am not developing the kernel module.
Actually it is a ghostscript. From the existing ghostscript code, I am planning to call my code. The ghostscript is a GPL code. I will build the RPM and distribute it. Is it legally OK ?
Do you have any suggestion on this for me?
|
|
|
|
10-22-2005, 10:34 AM
|
#6
|
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
Re: Clarification on GNU GPL license
Quote:
Originally posted by sureshkellemane
Now can i distribute the GPL_licensed executable without providing the source code of My_module.c file.
[/B]
|
I just want to clarify something. Do you mean you want to package the source in the package (for size issues) OR do you want your code to not be open source?
Last edited by BoldKiller; 10-22-2005 at 11:35 AM.
|
|
|
|
10-24-2005, 12:37 AM
|
#7
|
|
Member
Registered: Jan 2005
Posts: 53
Original Poster
Rep:
|
No sir,
I want to add the device/driver to ghostscript but my stuffs should not be opensource.
Otherway , the GPL_licensed executable should have my module feature with it but the My module feature source code should not become opensource at this point of time.
Thanks a lot
|
|
|
|
10-24-2005, 06:06 AM
|
#8
|
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
Then, what I suggested above is the only approach.
When you compile your module, it must not staticly link (as in being a part of) with any GPL code. You can owhever "Call" GPL code at run time dynamicly. In other words, you can USE the PRODUCT that resulted from the GPL code. But not the code it self. If you do that, you are free to use what ever license you want.
Here's 2 example to help clarify:
1- GCC is an open source compiler. But when you write code and compile it with it, your code is not GPL. Thats because you are using the product (as you would a word processor).
2- When using an GUI API tool kit (QT, wx, Win32, etc) your code license is not restricted by
the use of the tool kit. (Win32 native application can be open source, QT application can be closed source). Again this is because you are using the product. Your program will use the feature provided by those environment, but it is not a PART of that environement.
I dont know know exactly how Ghost Script works with "drivers", but as long as it is a different file (in windows it would be a seperate dll), your driver codes can be closed source. BTW, there are many cases where that has been done for device drivers in the kernel (PWC webcams, ATI graphic drivers, etc) They are closed source drivers simply using hooks in the kernel. The hook is open source, the rest of the driver is not.
I hope this helps to clarify things for you
|
|
|
|
10-24-2005, 10:06 PM
|
#9
|
|
Member
Registered: Jan 2005
Posts: 53
Original Poster
Rep:
|
Thanks a lot for your valuable suggestions..
|
|
|
|
10-24-2005, 11:00 PM
|
#10
|
|
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian Testing; OpenSuSE 12.1; Fedora 17
Posts: 1,541
Rep: 
|
Why would you want to distribute a module without source. Every package you distribute doesn't need source. You just need to make the source available in one package. You can still distribute precompiled binaries, as long as the source is available somewhere, and you tell people where they can get it.
|
|
|
|
10-25-2005, 06:04 AM
|
#11
|
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
Its not that he does not want to distribute the package with source.
He does not want his modue to be open source.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|