From: BalaKrishna Mallipeddi <bkmallipeddi@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Problem while adding a module to the kernel
Date: Sun, 8 Jun 2003 23:45:41 -0700 (PDT) [thread overview]
Message-ID: <20030609064541.22729.qmail@web10705.mail.yahoo.com> (raw)
Hi,
while adding a module to Montavista Linux for PPC
architecture i am in trouble.
First i added a simple system call with a simple
print statement and it is working fine.
For easy development i am writing as module to
replace this existing system call.
After that developed a simple module to replace
this system call and it also working. While developing
the actual module, i am getting problems.
While compiling the module i got the following
warning:
rfs_fdisk_module.c:343: warning: implicit declaration
of function `ioctl'
While including the module in to kernel using 'insmod'
i am getting the following errors:
root@(none):/home/chois/rfs_modules/fdisk# insmod
rfs_fdisk_module.o
rfs_fdisk_module.o: unresolved symbol read
rfs_fdisk_module.o: unresolved symbol reboot
rfs_fdisk_module.o: unresolved symbol lseek
rfs_fdisk_module.o: unresolved symbol _exit
rfs_fdisk_module.o: unresolved symbol write
rfs_fdisk_module.o: unresolved symbol ioctl
rfs_fdisk_module.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.
I included 'unistd.h' and 'sys/reboot.h' headers. To
resolve these errors if i include the headers
'sys/ioctl.h', 'string.h','sys/types.h', 'stdlib.h' it
is giving many errors of type 'redefinition of
'......' symbol.
If anybody helps me i am greatful to you. Also let me
know any good documents for what precautions(what to
do and what not to do) to take for kernel programming.
Thanks & Regards
=====
BalaKrishna Mallipeddi
Member Technical Staff Software
Innomedia Technologies Pvt. Ltd.,
#3278, 12th Main, HAL 2nd stage,
Bangalore-560008,
INDIA
Phone : 5278389 + 123
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
reply other threads:[~2003-06-09 6:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030609064541.22729.qmail@web10705.mail.yahoo.com \
--to=bkmallipeddi@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®