<< | Thread Index | >> ]    [ << | Date Index | >> ]

To: "Ron Bombard" <ronb,AT,nativetextiles,DOT,com>, <cipe-l,AT,inka,DOT,de>
Subject: Re: compiling cipe
From: "Shashank Khanvilkar" <shashank,AT,mia,DOT,ece,DOT,uic,DOT,edu>
Date: Thu, 26 Jun 2003 15:49:30 -0500
References: <3EFB1F38.31749.75A283@localhost>

>
> I've been using cipe for many years now, and am installing it on a new
> machine with a new version of RedHat.
>
> Is there a trick to compiling this thing?   I compiled the kernel no
> problem.   Now I'm trying to compile cipe.
> I configured it, pointing to the linux include dir:
>
> ./configure --with-linux-include=/usr/src/linux-2.4.20-6/include
>
> then ran Make.   Every time, when it gets to "/cipe/device.c", it bombs
> out with the following:
>
> ../cipe/device.c: In function `cipe_owner':
> ../cipe/device.c:223: structure has no member named `next_task'
> gmake[1]: *** [device.o] Error 1
> gmake[1]: Leaving directory `/home/ronb/cipe-1.5.4/2.4.20-6custom-
>
> Any suggestions would be apprecited.  I'm not a programmer, so I may
> be doing something simple/stupid.
>
> Thanks!
> Ron

Try the following :
(replace the cipe_owner() function in cipe/device.c) with the following..It
worked for me).

static int cipe_owner(struct cipe *c)
{
    struct task_struct *p;
    pid_t pid=c->owner;
    tasklist_LOCK();
    p=current;
    do {
        if (p->pid==pid) {
            tasklist_UNLOCK();
            return pid;
        }
        //p=p->next_task;            //comment this out
        next_task(p);                     //Add this line
    } while (p!=current);
    tasklist_UNLOCK();
    return 0;
}
Shank


<< | Thread Index | >> ]    [ << | Date Index | >> ]