Hello friends , I am getting problem in compiling my module (RAMDISK kernel module).My kernel version is Linux indus 2.4.18-14 . The following errors i am getting plz help me to solve them .
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-14/include/ -DMODULE -Wall -O2 -c -o radimo_del.o radimo_del.c
In file included from radimo_del.c:21: /usr/src/linux-2.4.18-14/include/linux/vmalloc.h: In function `vmalloc': /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:35: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:35: (Each undeclared identifier is reported only once /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:35: for each function it appears in.) /usr/src/linux-2.4.18-14/include/linux/vmalloc.h: In function `vmalloc_dma': /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:44: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/vmalloc.h: In function `vmalloc_32': /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:53: `boot_cpu_data_R0657d037' undeclared (first use in this function) In file included from /usr/src/linux-2.4.18-14/include/linux/highmem.h:5, from /usr/src/linux-2.4.18-14/include/linux/pagemap.h:16, from /usr/src/linux-2.4.18-14/include/linux/locks.h:8, from /usr/src/linux-2.4.18-14/include/linux/blk.h:5, from radimo_del.c:33: /usr/src/linux-2.4.18-14/include/asm/pgalloc.h: In function `get_pgd_fast': /usr/src/linux-2.4.18-14/include/asm/pgalloc.h:78: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/asm/pgalloc.h: In function `free_pgd_fast': /usr/src/linux-2.4.18-14/include/asm/pgalloc.h:89: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/asm/pgalloc.h: In function `pte_alloc_one_fast': /usr/src/linux-2.4.18-14/include/asm/pgalloc.h:127: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/asm/pgalloc.h: In function `pte_free_fast': /usr/src/linux-2.4.18-14/include/asm/pgalloc.h:137: `boot_cpu_data_R0657d037' undeclared (first use in this function) radimo_del.c: At top level: radimo_del.c:72: warning: initialization from incompatible pointer type radimo_del.c:73: warning: initialization from incompatible pointer type radimo_del.c:76: warning: initialization from incompatible pointer type radimo_del.c:78: warning: initialization from incompatible pointer type radimo_del.c:80: warning: initialization from incompatible pointer type radimo_del.c:83: warning: initialization from incompatible pointer type radimo_del.c:84: warning: initialization from incompatible pointer type radimo_del.c:89: conflicting types for `radimo_request1' /usr/src/linux-2.4.18-14/include/linux/blk.h:369: previous declaration of `radimo_request1' radimo_del.c: In function `init_module': radimo_del.c:317: warning: assignment from incompatible pointer type make: *** [radimo_del.o] Error 1
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
this is a Queer Problem, Difficult to get to the root of the problem without more information, Which Distro are you using. ????
My best guess, and it is only really a calculated guess, is that for some reason, vmalloc related functions do not seem to be defined / ( or compiled in ) what statments are you using for memory allocation ?? Maybe you could try using some other ( standard malloc ?? ) and see .
the error includes "_R0657d037" which to me seems to point to the error having something related to the kernel.
Perhaps you have unwittingly made your module dependent on another which is not compiled (or active ?) in your kernel.
BTW : which gcc ?
On Thursday 10 July 2003 03:46, Linux Handsome wrote:
Linux indus 2.4.18-14 . The following errors i am getting plz help me to solve them . /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:35: `boot_cpu_data_R0657d037' undeclared (first use in
C'ya ERLE -- http://www.erlepereira.bravepages.com
On 09/07/03 18:46 -0700, Linux Handsome wrote:
GLUG Meeting on 13th July, 4pm at KReSIT, IIT Campus, Powai.
Hello friends , I am getting problem in compiling my module (RAMDISK kernel module).My kernel version is Linux indus 2.4.18-14 . The following errors i am getting plz help me to solve them .
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-14/include/ -DMODULE -Wall -O2 -c -o radimo_del.o radimo_del.c
In file included from radimo_del.c:21:
/usr/src/linux-2.4.18-14/include/linux/vmalloc.h: In function `vmalloc': /usr/src/linux-2.4.18-14/include/linux/vmalloc.h:35: `boot_cpu_data_R0657d037' undeclared (first use in this function)
Let me guess. You have not done a make config dep, so your asm links don't work.
Devdas Bhagat