lkml.org 
[lkml]   [2005]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to add source files in kernel


On Fri, 4 Feb 2005, Kronos wrote:

>
>
>
> Rahul Jain <rbj2@oak.njit.edu> ha scritto:
> > The kernel recompilation went without any problems. I wrote loadable
> > module programs that can access the functions defined in .c. When I try to
> > install these modules, they came back with the following error
> >
> > /sbin/insmod x.o
> > x.o: unresolved symbol enqueue_sfi
> > x.o: unresolved symbol init_skbuff_list
> > x.o: unresolved symbol get_head_sfi
> > x.o: unresolved symbol search_sfi
> > x.o: unresolved symbol enqueue_skbuff_list
> > x.o: unresolved symbol init_head_sfi
> > x.o:
> > Hint: You are trying to load a module without a GPL compatible license
> > and it has unresolved symbols. Contact the module supplier for
> > assistance, only they can help you.
> >
> > make: *** [install] Error 1
>
> You forgot the EXPORT for those symbols, add:
>
> EXPORT_SYMBOL(symbol_name);
>
> to .c file. Or you may have exported the symbols as GPL only
> (EXPORT_SYMBOL_GPL) and the module which is not licensed under GPL
> cannot see them.
>
> Luca
> --
> Home: http://kronoz.cjb.net
> La somma dell'intelligenza sulla terra e` una costante.
> La popolazione e` in aumento.
>
I added EXPORT_SYMBOL(fn_name) for all the functions that I wanted to
access from my module. I also added MODULE_LICENSE("GPL") to the .c file.
And in the Makefile I added my_file.o to 'export_objs'. However I am still getting
the same error.

Any suggestions ? Are there any resources online which I can read.

Thanks,
Rahul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.046 / U:1.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site