Re: [Fwd: Can't compile Agrsm - Ubuntu 7.04/2.6.20-16.29]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.29The 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 willforward the updated package shortly.
MarvS
On 6/30/07, Firas Kraiem <fkraiem@xxxxxxx> wrote:> Ludi,>> Do this :>>         $ cd /lib/modules/$(uname -r)/build/include/linux/>         $ sudo ln -s autoconf.h config.h>> And try to make again. The reason for that is that config.h has been> replaced with autoconf.h in recent kernel releases, so when you have an> old module that still looks for config.h, like this :>>  >> /home/user/Desktop/agrsm/agrsoftmodem.c:21:26: error: linux/config.h:>  >> Arquivo ou diretório inexistente (File or directory doesn't exist)>> you just make a symlink.>> Firas>> Ludi Maciel wrote:> > Trying again.> >> >> De: Ludi Maciel <iludi@xxxxxxxxxx>> >> Para: discuss@xxxxxxxxxxxxx> >> Assunto: Can't compile Agrsm - Ubuntu 7.04/2.6.20-16.29> >> Data: Sat, 30 Jun 2007 17:24:21 -0300> >>> >> Hi folks.> >> I'm trying to use this Pinball-B modem (11c1:0620) but I can't compile> >> the module. I get the following error message when I try to 'make> >> module':> >>> >> Kernel/headers: 2.6.20-16.29 (lastest)> >>> >> make -C /lib/modules/`uname -r`/build SUBDIRS=/home/user/Desktop/agrsm> >> modules> >> make[1]: Entrando no diretório (entering in the directory)> >> `/usr/src/linux-headers-2.6.20-16-generic'> >>   CC [M]  /home/user/Desktop/agrsm/agrsoftmodem.o> >> /home/user/Desktop/agrsm/agrsoftmodem.c:21:26: error: linux/config.h:> >> Arquivo ou diretório inexistente (File or directory doesn't exist)> >> /home/user/Desktop/agrsm/agrsoftmodem.c: In function> >> 'SetAgrModemInterface':> >> /home/user/Desktop/agrsm/agrsoftmodem.c:103: warning: implicit> >> declaration of function 'inter_module_get_request'> >> /home/user/Desktop/agrsm/agrsoftmodem.c:103: warning: assignment makes> >> pointer from integer without a cast> >> /home/user/Desktop/agrsm/agrsoftmodem.c:106: warning: implicit> >> declaration of function 'inter_module_put'> >> /home/user/Desktop/agrsm/agrsoftmodem.c: In function> >> 'modem_init_module':> >> /home/user/Desktop/agrsm/agrsoftmodem.c:136: warning: implicit> >> declaration of function 'inter_module_register'> >> /home/user/Desktop/agrsm/agrsoftmodem.c: In function> >> 'modem_cleanup_module':> >> /home/user/Desktop/agrsm/agrsoftmodem.c:148: warning: implicit> >> declaration of function 'inter_module_unregister'> >> /home/user/Desktop/agrsm/agrsoftmodem.c: In function 'x_request_irq':> >> /home/user/Desktop/agrsm/agrsoftmodem.c:223: warning: passing argument 2> >> of 'request_irq' from incompatible pointer type> >> /home/user/Desktop/agrsm/agrsoftmodem.c:367:53: error: macro "INIT_WORK"> >> passed 3 arguments, but takes just 2> >> /home/user/Desktop/agrsm/agrsoftmodem.c: In function> >> 'x_task_queue_init':> >> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: 'INIT_WORK'> >> undeclared (first use in this function)> >> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: (Each undeclared> >> identifier is reported only once> >> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: for each function it> >> appears in.)> >> /home/user/Desktop/agrsm/agrsoftmodem.c:366: warning: unused variable> >> 'x_tqueue'> >> make[2]: ** [/home/user/Desktop/agrsm/agrsoftmodem.o] Erro 1> >> make[1]: ** [_module_/home/user/Desktop/agrsm] Erro 2> >> make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.20-16-generic'> >> make: ** [module] Erro 2> >>> >> Am I doing something wrong?> >> Thanks for your help.> >>> >> Stan> >> >> >>>>

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux