[OpenAFS-devel] 2.6 ppc include stupidity
Troy Benjegerdes
hozer@hozed.org
Sat, 22 May 2004 23:00:56 -0500
I checked out the latest openafs cvs a few minutes ago, and tried to
build on 2.6.5 on ppc.
I had to create 'parms.ppc_linux26', which I sorta expected.
but then I ran into
/afs/afs_analyze.c
In file included from ../linux/sched.h:12,
from ../linux/mm.h:4,
from ../linux/pagemap.h:7,
from /scratch/back/tmp/openafs/src/afs/sysincludes.h:65,
from /scratch/back/tmp/openafs/src/afs/afs_analyze.c:20:
../linux/jiffies.h:16: error: parse error before "jiffies_64"
jiffies.h looks like:
#ifndef _LINUX_JIFFIES_H
#define _LINUX_JIFFIES_H
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/seqlock.h>
#include <asm/system.h>
#include <asm/param.h> /* for HZ */
/*
* The 64-bit value is not volatile - you MUST NOT read it
* without sampling the sequence number in xtime_lock.
* get_jiffies_64() will do this for you as appropriate.
*/
extern u64 jiffies_64;
So, can someone please explain to me how the include stuff is supposed
to work? I believe the system include files are what is messing things
up. Is it possible to build libafs with -nostdinc ???
--------------------------------------------------------------------------
Troy Benjegerdes 'da hozer' hozer@hozed.org
Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:
"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz