Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 08-30-2011, 11:09 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
CLOCK_TICK_RATE undeclared

Hi all,

I have the following problem. I need to cross compile kernel module using 2.6.18 kernel. I have problem with CLOCK_TICK_RATE macro which is undeclared. I get compiler error in jiffies.h which uses this macro. This file has following includes:
#include <linux/calc64.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/time.h>
#include <linux/timex.h>
#include <asm/param.h> /* for HZ */

The problem is because CLOCK_TICK_RATE definition is removed in asm-xxx/timex.h.
I do not now how to resolve this except to change jiffies.h and add one more include file asm/timex.h which has definition in it CLOCK_TICK_RATE.

Help please !!!


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
‘PTHREAD_MUTEX_ERRORCHECK’ undeclared here (not in a function) TheIndependentAquarius Programming 17 01-04-2011 08:12 PM
‘ORIG_EAX’ undeclared ? .. jiikka Linux - Software 5 09-16-2009 02:37 AM
malloc undeclared jkeertir Linux - Newbie 1 09-01-2009 10:00 AM
Making CLOCK_TICK_RATE a variable in linux bhagat_singh Linux - Newbie 2 07-24-2008 03:44 AM
undeclared here (not in a function) ashlesha Linux - Software 2 08-23-2006 11:29 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:25 PM.

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