Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Note:modules without a GPL compatible licence cannot use GPLONLY_symbols


  • Subject: Re: lug-bg: Note:modules without a GPL compatible licence cannot use GPLONLY_symbols
  • From: g.vlaev@xxxxxxxxxx (Georgi Vlaev)
  • Date: Tue, 13 Nov 2001 15:38:04 +0200



Áîÿíå,
òîâà êîåòî ñúì ãî ïèñàë - íå ñè ãî èçìèñëÿì. Àç ñúùî ÷åòà lkml.
Çà äà íå ñè ìèñëèø, ÷å òè ïðèêàçâàì ãëóïîñòè ìîäóëèòå íàêðàÿ :

A
filename:    a.o
description: "tralala A"
author:      "tralala A"
license:     "GPL"

B
filename:    b.o
description: "tralala B"
author:      "tralala B"
license:     "tralala B - ne GPL license"

B èçïîëçâà sing_me îò À.
Àêî ñå ïðîáâàø äà èíñòàëèðàø  ïðåäè À, ùå ïîëó÷èø âúïðîñíîòî ñúîáùåíèå:

b.o: unresolved symbol sing_me
b.o: Note: modules without a GPL compatible license cannot use GPLONLY_ 
symbols

Ïðîáëåìà òóê íå â GPL-a, à  â unresolved symbol-a, íî ñúáùåíèåòî òå êàðà äà 
ñè ìèñëèø äðóãî.
Íå òâúðäÿ, ÷å òîâà å 100% òàêà, çàùîòî íèêîãà íå ñúì ïîëçâàë 
EXPORT_SYMBOL_GPL, à è êîìïèëàòîðà äàâà warning òî÷íî íà òîçè ðåä.
Âñå ïàê â ñëó÷àÿ ñ NVidia-òà ïðîäúëæàâàì äà ìèñëÿ, ÷å òîçè äðàéâåð íå å çà 
òîçè kernel ( +patch). 

P.S. Àêî ïîëçâàø  modutils < 2.4.10 íÿìà äà ïîëó÷èø íèêàêâè ñúîáùåíèÿ çà 
ëèöåíçè è ùå ñè çàðåäèø ìîäóëèòå.

-------------------------------------------------------------------------------------------A(GPL)
#include <linux/config.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/kernel.h>

tatic int __init init_a(void)
{
    printk(KERN_INFO __FILE__" : go go go...A\n");
    return 0;
}
static void __exit cleanup_a(void)
{
    printk(KERN_INFO __FILE__": bye A\n");
}

void sing_me(){
    printk(KERN_INFO __FILE__": tralala from GPL A\n");
}

EXPORT_SYMBOL_GPL(sing_me);

/* --------------------------------------------------------------------- */

MODULE_AUTHOR("tralala A");
MODULE_DESCRIPTION("tralala A");
MODULE_LICENSE("GPL");

/* --------------------------------------------------------------------- */

module_init(init_a);
module_exit(cleanup_a);
-----------------------------------------------------------------

--------------------------------------------------------------B (íå GPL)
#include <linux/config.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/kernel.h>

static int __init init_b(void)
{
    printk(KERN_INFO __FILE__ "go go go ...B\n");
    sing_me();
    return 0;
}
static void __exit cleanup_b(void)
{
    printk(KERN_INFO __FILE__"bye B\n");
}

/* --------------------------------------------------------------------- */

MODULE_AUTHOR("tralala B");
MODULE_DESCRIPTION("tralala B");
MODULE_LICENSE("tralala B - ne GPL license");

/* --------------------------------------------------------------------- */

module_init(init_b);
module_exit(cleanup_b);
______________________________________________________________

Íà Âòîðíèê 13 Íîåìâðè 2001 13:35, âèå íàïèñàõòå:
> > Íå çíàì äàëè ñàìî òîâà ìó å ïðîáëåìà.  Non-GPL ìîäóë, êîéòî ñå
> >  îïèòâà äà
> > èçïîëâà "EXPORT_SYMBOL_GPL() " symbol äàâà warning ñàìî è ñå ç
> > àðåæäà è ðàáîòè.
>
> ne e taka.
> export_symbol_gpl() oznachawa: "tozi kernel simwol ne moje da se polzwa
> ot nikoj modul chijto MODULE_LICENSE() ne e GPL-sywmestim"
>
> > Warning: loading /lib/modules/2.4.10/misc/amod.o will taint
> > the kernel:
> > non-GPL license - Proprietary
>
> tozi warning oznachawa che modula amod.o nqma MODULE_LICENSE() ili ima
> MODULE_LICENSE() ne e GPL-sywmestim, a ne che se e opital da se linkne s
> simwol kojto e za GPLONLY use.
>
> razgledajte toq post w lkml predi da diskutirate tiq wyprosi molq:
> http://kt.zork.net/kernel-traffic/kt20011029_139.html#1
>
> BR,
> Boyan
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.