LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error: implicit declaration of function â??find_task_by_pid_typeâ?? (https://www.linuxquestions.org/questions/linux-newbie-8/error-implicit-declaration-of-function-%E2-find_task_by_pid_type%E2-944085/)

sindhu4sind 05-09-2012 10:22 AM

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

pointer2null 05-09-2012 12:27 PM

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)


All times are GMT -5. The time now is 05:40 PM.