LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-23-2008, 06:09 AM   #1
Mr.J
Member
 
Registered: Jun 2008
Posts: 82

Rep: Reputation: 15
arch/i386/kernel/built-in.o: In function `sys_call_table': error


Hello,

I've added one file mySysCall.c (to add new system call) in path linux-2.6.22.14/drivers/usb/storage/mySysCall.c
I've put this file in this path becuase I need to call one function defined in linux-2.6.22.14/drivers/usb/storage/usb.c. But when I build the kernel at the end I 'm getting following error.

root@test-desktop:/home/test/linux-2.6.22.14# make -j4
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
SKIPPED include/linux/compile.h
GEN .version
CHK include/linux/compile.h
SKIPPED include/linux/compile.h
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o: In function `sys_call_table':
(.rodata+0x510): undefined reference to `sys_allow_usb_storage'
make: *** [.tmp_vmlinux1] Error 1
root@test-desktop:/home/test/linux-2.6.22.14#



I've updated linux-2.6.22.14/drivers/usb/storage/Makefile to build mySysCall.c and I see linux-2.6.22.14/drivers/usb/storage/mySysCall.o git built.

Any idea how to fix this problem ? or can any body suggest how can I call api from linux-2.6.22.14/drivers/usb/storage/usb.c. in my system call.
 
  


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
exporting the sys_call_table for kernel 2.6.x dtrace.project Linux - Kernel 0 01-30-2007 02:55 AM
make[1]: *** [arch/i386/kernel/entry.o] Error 1-2.6.18.1 sudhirbarker Linux - Kernel 5 11-08-2006 10:42 AM
install flash on FC6 x86_64 with Firefox.i386 gives arch error DyingMuppet Fedora 3 11-05-2006 08:22 AM
has anyone successfully compiled a kernel for a diff arch. other than i386? veritas Slackware 4 06-16-2004 05:19 PM
Changing Arch from i386 to i686 slacknoob Slackware 4 10-10-2003 09:36 AM

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

All times are GMT -5. The time now is 06:54 PM.

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