lkml.org 
[lkml]   [2001]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Insmod gives unsresolved symbol
these functions are defined in /net/mpls.h as extern
variables.
I don't think there is a mpls_init.h
I have included mpls.h and hence it compiles w/o error
but only at the time of linking it gives this error



--- Tyler BIRD <BIRDTY@uvsc.edu> wrote:
> Well you still much include the header file for the
> link
> whatever it might be. #include
> <include/mpls_init.h>
> for example. Only some functions such as printk
> don't need such headers.
>
> Tyler
>
>
> >>> Amit Kulkarni <amitncsu@yahoo.com> 11/06/01
> 01:17AM >>>
> Hi
>
> I am trying to write a device driver which calls
> certain functions/variables from the kernel
> (e.g. ipv4_explicit_null from
> /usr/src/linux/net/mpls/mpls_init.c )
>
> But when I try to insert the module using insmod it
> gives me an error saying unresolved symbol
> ipv4_explicit_null
>
> thinking the kernel did not export the said symbol
> I
> added EXPORT_SYMBOL(ipv4_explicit_null) in the file
> mpls_init.c
> Now I can see the symbol in System.map
> but my problem still persists.
>
> Am I exporting symbols properly or is there anything
> else that needs to be done .
>
> please advise
> thanks in anticipation,
> amit
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> -
> 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/
>


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-
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 13:12    [W:0.045 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site