Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-09-2012, 11:22 AM   #1
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
error: implicit declaration of function Ďfind_task_by_pid_typeí
Here are directories i have included:
#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>
Ubuntu 10.04 LTS
linux kernel version is : 2.6.32-41-generic

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

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

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)


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration