lirc.spec

Paweł Czapski czapa w czapa.one.pl
Wto, 2 Wrz 2003, 12:24:58 CEST


Nie kompiluje sie na 2.4.21-1.6 i wysypuje sie tak:

$ ./builder -D -bb lirc.spec
[--ciach--]
+ gcc -O2 -march=athlon -D__KERNEL__ -DMODULE -DHAVE_CONFIG_H 
-DIRCTL_DEV_MAJOR=61 -I.. -I/usr/src/linux/include -fno-strict-aliasing 
-fno-common -c -o lirc_i2c.o lirc_i2c/lirc_i2c.c
lirc_i2c/lirc_i2c.c: In function `set_use_inc':
lirc_i2c/lirc_i2c.c:239: error: structure has no member named `inc_use'
lirc_i2c/lirc_i2c.c:240: error: structure has no member named `inc_use'
lirc_i2c/lirc_i2c.c: In function `set_use_dec':
lirc_i2c/lirc_i2c.c:249: error: structure has no member named `dec_use'
lirc_i2c/lirc_i2c.c:250: error: structure has no member named `dec_use'
lirc_i2c/lirc_i2c.c: In function `ir_attach':
lirc_i2c/lirc_i2c.c:338: error: structure has no member named `inc_use'
lirc_i2c/lirc_i2c.c:339: error: structure has no member named `inc_use'
lirc_i2c/lirc_i2c.c: In function `ir_detach':
lirc_i2c/lirc_i2c.c:349: error: structure has no member named `dec_use'
lirc_i2c/lirc_i2c.c:350: error: structure has no member named `dec_use'
error: Bad exit status from /var/tmp/rpm-tmp.83728 (%build)

Jak widac brak funkcji inc_use i dec_use. W 2.4.20 byly zdefiniowane w 
/usr/include/linux/i2c.h (tu i2c.h wyjety z 2.4.20:)

$ grep -A10 'struct i2c_adapter {' i2c.h
struct i2c_adapter {
        char name[32];  /* some useful name to identify the adapter     */
        unsigned int id;/* == is algo->id | hwdep.struct->id,           */
                        /* for registered values see below              */
        struct i2c_algorithm *algo;/* the algorithm to access the bus   */
        void *algo_data;

        /* --- These may be NULL, but should increase the module use count */
        void (*inc_use)(struct i2c_adapter *);
        void (*dec_use)(struct i2c_adapter *);

w 2.4.21 jednak juz nie ma tych funkcji

$ grep 'inc_use' /usr/include/linux/i2c.h
$

$ grep 'dec_use' /usr/include/linux/i2c.h
$

Czyli wyglada na to, ze bez zmian w kodzie sie nie obejdzie ? :/
-- 
Pawel Czapski
mailto:czapa(at)czapa.one.pl
Gadu-Gadu:502631



Więcej informacji o liście dyskusyjnej pld-devel-pl