LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2004, 06:13 AM   #1
srsairam
LQ Newbie
 
Registered: Oct 2004
Location: BANGALORE
Distribution: RedHat
Posts: 3

Rep: Reputation: 0
can't Compile a module under Kernel 2.4.20-8


Hi All,

I am using RedHat 9.0 with Kernel 2.4.20-8 .
I wanted to load a module .But i could not compile the module .
Compiler shows the following error .
undeclared identifier boot_cpu_data_R0657d037 in vmalloc.h file lines 34, 54.

can any one throw light on why this error is coming ?

regards ,
Sairam.S
 
Old 10-21-2004, 12:38 AM   #2
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
thats the tip of the problem - we need more infor - what are you trying to load?????
 
Old 10-21-2004, 07:50 AM   #3
srsairam
LQ Newbie
 
Registered: Oct 2004
Location: BANGALORE
Distribution: RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
Hi ,
I am trying to compile a kernel module which can access an ISA card present in the system .

My make file content is as follows ..
# standards
INCLUDE = /usr/src/linux-2.4/include
CC = gcc
CFLAGS = -D__KERNEL__ -I$(INCLUDE) -DMODULE -Wall -O2

TARGET = iomap
SRC = iomap.c

all: $(TARGET).o

clean:
rm -f *.o *~ core



when i compile i am getting following errors ..

In file included from /usr/src/linux-2.4/include/asm/io.h : 47 from iomap.c :26 :
IN function 'vmalloc'
/usr/src/linux-2.4/include/vmalloc.h:36 'boot_cpu_data_R0657d037' undeclared ( first use in this function)

IN function 'vmalloc_dma'
/usr/src/linux-2.4/include/vmalloc.h:45 'boot_cpu_data_R0657d037' undeclared ( first use in this function)

IN function 'vmalloc_32'
/usr/src/linux-2.4/include/vmalloc.h:54 'boot_cpu_data_R0657d037' undeclared ( first use in this function)

I wanted to know what is the reason for these errors ..

regards ,
Sairam.S
 
Old 11-09-2004, 12:45 AM   #4
srsairam
LQ Newbie
 
Registered: Oct 2004
Location: BANGALORE
Distribution: RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
Include the following macro defined in ur module source code ..

#define EXPORT_SYMTAB

this should be the first line ur module code .
this will remove the errors which are showing in asm/io.h

regards ,
Sairam.S
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile kernel module without 'make' whysyn Linux - Software 2 01-29-2006 12:56 AM
kernel module compile prob darkRoom Linux - General 3 11-08-2005 12:16 AM
Compile in kernel or module? maginotjr Slackware 4 06-30-2005 11:54 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
compile individual kernel module snape Linux - Software 1 06-27-2001 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration