Comment 39 for bug 22070

Revision history for this message
Renato Golin (rengolin) wrote :

Compiling the qc-usb-messenger-1.8 to Ubuntu 8.10 get the following error:

/qc-driver.c:1619: error: request for member ‘counter’ in something not a structure or union
(and in tens of other lines). It's the macro sem_getcount(&qc->lock):

#define sem_getcount(sem) atomic_read(&(sem)->count)

Probably the structure has changed in the new kernel...

Other error: qc-driver.c:2898: error: ‘struct video_device’ has no member named ‘type’

All of that I could "comment out" as most of that was debug messages or "not-so-important" parts of the structure, but the following error I couldn't get around:

qc-memory.c:207: error: implicit declaration of function ‘mem_map_reserve’
qc-memory.c:225: error: implicit declaration of function ‘mem_map_unreserve’

My system is an up-to-date Ubuntu 8.10:
$ uname -a
Linux jobim 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux