LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10: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, 12:27 PM   #2
pointer2null
Member
 
Registered: Mar 2012
Location: Bristol, UK
Distribution: CentOS, Debian
Posts: 32

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



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 10:14 AM
why do I get implicit declaration of function 'open' error on linux hellgirl Programming 2 09-13-2009 06:21 PM
implicit declaration of function error HarryBoy Programming 3 09-11-2008 07:29 AM
error:implicit declaration of function ‘get_filesystem_list’ swift_a2002 Programming 1 05-15-2007 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01: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