Ludi
It seems this driver isn't compatible with your 2.6.20 kernel. It
compiled just fine here with a 2.6.18.
Firas
Ludi Maciel wrote:
Em Sáb, 2007-06-30 às 22:46 -0400, Marvin Stodolsky escreveu:
RE: > $ cd /lib/modules/$(uname -r)/build/include/linux/
$ sudo ln -s autoconf.h config.h
---------
that may be troublesome for Ludi's 2.6.20-16.29
The fix we have been dong for other code packages after kernels 2.6.18 is:
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
#include <linux/config.h>
#endif
I'm in the process of making these changes in the agrsm code and will
forward the updated package shortly.
MarvS
Great Marv.
I'll wait then. (I'm not using this modem right now so it's not a
problem).
Thanks, both of you, Firas and Marv.
PS: The symlink didn't work here:
make[1]: Entrando no diretório
`/usr/src/linux-headers-2.6.20-16-generic'
CC
[M] /home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.o
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c: In
function ‘SetAgrModemInterface’:
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:103: warning: implicit declaration of function ‘inter_module_get_request’
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:103: warning: assignment makes pointer from integer without a cast
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:106: warning: implicit declaration of function ‘inter_module_put’
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c: In
function ‘modem_init_module’:
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:136: warning: implicit declaration of function ‘inter_module_register’
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c: In
function ‘modem_cleanup_module’:
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:148: warning: implicit declaration of function ‘inter_module_unregister’
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c: In
function ‘x_request_irq’:
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:223: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:367:53: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c: In
function ‘x_task_queue_init’:
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:367: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:367: error: (Each undeclared identifier is reported only once
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:367: error: for each function it appears in.)
/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.c:366: warning: unused variable ‘x_tqueue’
make[2]: **
[/home/desktop/Downloads/Sistema/Programas/Modem/agrsm/agrsoftmodem.o]
Erro 1
make[1]: **
[_module_/home/desktop/Downloads/Sistema/Programas/Modem/agrsm] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.20-16-generic'
make: ** [module] Erro 2