msc7780 irda driver hiba

Fórumok

Az oprendszer gentoo amd64.
Van egy usb-portos infraportom. Meg is találtam a drivert itt:
http://www.moschip.com/data/products/MCS7780/Linux_7780.tar.gz
Ezt azért kapom mert 64 bites a gép, mert tudok valamennyire c-ben programozni belenéztem a forráskódba ott nincs szerintem hiba ahol írja

De a fordítás közben a következőt kapom:

make -C /lib/modules/2.6.17-gentoo-r7/build SUBDIRS=/usr/src/Linux_7780 modules;
make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r7'
CC [M] /usr/src/Linux_7780/mcs7780.o
/usr/src/Linux_7780/mcs7780.c:81: error: expected ')' before string constant
/usr/src/Linux_7780/mcs7780.c:145: error: unknown field 'owner' specified in initializer
/usr/src/Linux_7780/mcs7780.c:145: warning: initialization from incompatible pointer type
/usr/src/Linux_7780/mcs7780.c: In function 'mcs7780_disconnect':
/usr/src/Linux_7780/mcs7780.c:355: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/Linux_7780/mcs7780.c:355: error: (Each undeclared identifier is reported only once
/usr/src/Linux_7780/mcs7780.c:355: error: for each function it appears in.)
/usr/src/Linux_7780/mcs7780.c: In function 'mcs7780_rx_submit':
/usr/src/Linux_7780/mcs7780.c:1104: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/Linux_7780/mcs7780.c: In function 'mcs7780_tx_submit':
/usr/src/Linux_7780/mcs7780.c:1280: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
make[2]: *** [/usr/src/Linux_7780/mcs7780.o] Error 1
make[1]: *** [_module_/usr/src/Linux_7780] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r7'
make: *** [default] Error 2

Hozzászólások

Én nem tudok programozni, de a falnak már többször nekimentem: lehet régebbi GCC-vel lefordul. (és lehet hülyeséget mondtam)

Nem tudom, hogy még érdekelne-e ,de nekem is ilyen chipes irdám van, és nekem sikerült beállítani. (Persze nem ezzel a driverrel.) Ezzel én is próbáltam először, de nem jó.