LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2012, 11:22 AM   #1
sindhu4sind
Member
 
Registered: Apr 2012
Posts: 38

Rep: Reputation: Disabled
error: implicit declaration of function Ďfind_task_by_pid_typeí


getting an error during compiling a kernel module
Quote:
error: implicit declaration of function Ďfind_task_by_pid_typeí
Here are directories i have included:
Quote:
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <asm/siginfo.h> //siginfo
#include <linux/rcupdate.h> //rcu_read_lock
#include <linux/sched.h> //find_task_by_pid_type
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/unistd.h>
#include <linux/pid.h>
Using:
Ubuntu 10.04 LTS
linux kernel version is : 2.6.32-41-generic

I have already tried to install build-essentials after updating:
Quote:
apt-get update
aptitude install build-essential
apt-get install build-essential
Any idea?

Sindhu
 
Old 05-09-2012, 01:27 PM   #2
pointer2null
LQ Newbie
 
Registered: Mar 2012
Location: Bristol, UK
Distribution: CentOS, Debian
Posts: 23

Rep: Reputation: Disabled
can't find the header file?
prototype not in header or your use is different that that defined (missing or extra param, wrong type etc)
 
  


Reply

Tags
compile error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] error: implicit declaration of function 'i2c_smbus_read_byte_data' sajnanazeer Programming 5 08-18-2011 11:14 AM
why do I get implicit declaration of function 'open' error on linux hellgirl Programming 2 09-13-2009 07:21 PM
implicit declaration of function error HarryBoy Programming 3 09-11-2008 08:29 AM
error:implicit declaration of function Ďget_filesystem_listí swift_a2002 Programming 1 05-15-2007 04:27 AM


All times are GMT -5. The time now is 03:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration