[Click] vmalloc in click

Eddie Kohler kohler at cs.ucla.edu
Thu Dec 2 03:22:09 EST 2004


Hi Nick,

Sounds like you didn't #include <linux/vmalloc.h>; or if you did, that 
you didn't enclose it in click's

#include <click/cxxprotect.h>
CLICK_CXX_PROTECT
....
CLICK_CXX_UNPROTECT
#include <click/cxxunprotect.h>

Because it looks like the vmalloc() symbol is getting C++ linkage (which 
is incorrect).

Eddie


Nick Mehor wrote:
> Hello Eddie,
> 
>   i am trying to use vmalloc from within one of my
> elements to allocate a large block of contigous
> memory.  Unfortunately, it is failing for me with an
> unresolved symbol error.
> 
> /usr/local/lib/click.o: unresolved symbol
> _Z9__vmallocmi8pgprot_t
> click-install: `/sbin/insmod /usr/local/lib/click.o'
> failed
> 
>>From reading the mailing list it seems like others
> have
> successfully used vmalloc from within click.  Any
> ideas
> what might be wrong?
> 
> gcc version is 3.2 and kernel is linux 2-4.18.
> 
> Thanks in advance
> -Nick
> 
> 
> 
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Meet the all-new My Yahoo! - Try it today! 
> http://my.yahoo.com 
>  
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list