[devel] asm/page.h

Led =?iso-8859-1?q?ledest_=CE=C1_gmail=2Ecom?=
Вт Фев 19 02:42:09 MSK 2008


Tuesday, 19 February 2008 00:38:28 Kirill Maslinsky написав:
> On Tue, Feb 19, 2008 at 12:40:33AM +0300, Dmitry V. Levin wrote:
> > On Tue, Feb 19, 2008 at 12:09:20AM +0300, Hihin Ruslan wrote:
> > > Здравствуйте QA Team Robot
> > >
> > >  В сообщении от 18 февраля 2008 вы написали:
> > >  > Package: xawtv4-4.0-alt3.cvs20070625.2
> >
> > [...]
> >
> > >  > console/fbtools.c:24:22: error: asm/page.h: No such file or
> > >  > directory
> > >
> > >  Ну и на какой пакет  ставить зависимость ?
> >
> > Надо избавляться от этой зависимости, а не искать пакет, на который её
> > можно было бы поставить.
>
> Прошу помочь избавиться от аналогичной зависимости в пакете
> eciadsl-usermode.
>
> Выдержка из лога сборки:
> . . .
> In file included from pusb.c:13:
> pusb-linux.c:32:22: error: asm/page.h: No such file or directory
> In file included from pusb.c:13:
> pusb-linux.c: In function 'pusb_endpoint_rw':
> pusb-linux.c:441: error: 'PAGE_SIZE' undeclared (first use in this
> function)
> pusb-linux.c:441: error: (Each undeclared identifier is reported only
> once
> pusb-linux.c:441: error: for each function it appears in.)
> make[1]: *** [pusb.o] Error 1
> . . .
>
> Соответствующее место в pusb-linux.c:
>
> 429 inline int pusb_endpoint_rw(int fd, int ep, unsigned char* buf, int
> size, int timeout)
> 430 {
> 431     static struct usbdevfs_bulktransfer bulk;
> 432     static int ret;
> 433     int received = 0;
> 434
> 435     do
> 436     {
> 437         bulk.ep      = ep;
> 438
> 439         bulk.len = size;
> 440
> 441         if (size > PAGE_SIZE)
> 442             bulk.len = PAGE_SIZE;
> 443
> 444         bulk.timeout = timeout;
> 445         bulk.data    = buf;
> 446
> 447         do
> 448         {
> 449             ret = ioctl(fd, USBDEVFS_BULK, &bulk);
> 450         }
> 451         while (ret < 0 && errno == EINTR);
> 452
> 453         if (ret < 0)
> 454             return(ret);
> 455
> 456         buf  += ret;
> 457         size -= ret;
> 458         received += ret;
> 459     }
> 460     while (ret==(int)bulk.len && size>0);
> 461
> 462     return(received);
> 463 }

Это не оно?

The user can find the value of PAGE_SIZE by calling getpagesize() defined in 
unistd.h .

-- 
Led



Подробная информация о списке рассылки Devel