Sorry to all, But I did not add the success compilation: [olivares@blackp4 martian-full-20080625]$ cd kmodule/ [olivares@blackp4 kmodule]$ cp martian.c martian.c-orig [olivares@blackp4 kmodule]$ vi martian.c [olivares@blackp4 kmodule]$ cd .. [olivares@blackp4 martian-full-20080625]$ make clean make -C kmodule/ clean make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C /lib/modules/2.6.32.10-90.fc12.i686.PAE/build M="/home/olivares/Downloads/martian-full-20080625/kmodule" clean make[2]: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' CLEAN /home/olivares/Downloads/martian-full-20080625/kmodule/.tmp_versions make[2]: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C modem/ clean make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/modem' RM OBJS RM BINS RM TOOLS make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/modem' [olivares@blackp4 martian-full-20080625]$ make all make -C kmodule/ modules make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C /lib/modules/2.6.32.10-90.fc12.i686.PAE/build M="/home/olivares/Downloads/martian-full-20080625/kmodule" modules make[2]: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' CC [M] /home/olivares/Downloads/martian-full-20080625/kmodule/martian.o /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c: In function ‘martian_isr’: /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:135: warning: value computed is not used CC [M] /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.o /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.c:358: warning: ‘mars_read_register_rem’ defined but not used /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.c:371: warning: ‘mars_write_register_rem’ defined but not used CC [M] /home/olivares/Downloads/martian-full-20080625/kmodule/mfifo.o LD [M] /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.o Building modules, stage 2. MODPOST 1 modules CC /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.mod.o LD [M] /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.ko make[2]: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C modem/ all make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/modem' CC main.o CC dumpers.o CC log.o CC session.o CC mport.o CC pty.o CC sysdep.o CC isr.o CC smp.o CC core_if.o CC coresubst.o CC link.o CC tweakrelocsdynamic.o CC coreadd.o CC elf386tweakrelocs LD marscore.o TWEAK marscore.o LD martian_modem make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/modem' [olivares@blackp4 martian-full-20080625]$ su - Password: [root@blackp4 ~]# cd /home/olivares/Downloads/martian-full-20080625 [root@blackp4 martian-full-20080625]# make install make -C kmodule/ install make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C /lib/modules/2.6.32.10-90.fc12.i686.PAE/build M="/home/olivares/Downloads/martian-full-20080625/kmodule" modules_install make[2]: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' INSTALL /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.ko DEPMOD 2.6.32.10-90.fc12.i686.PAE make[2]: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/kmodule' make -C modem/ install make[1]: Entering directory `/home/olivares/Downloads/martian-full-20080625/modem' LD martian_modem.debug STRIP martian_modem.debug STRIP martian_modem.stripped INSTALL /usr/sbin/martian_modem INSTALL /usr/lib/debug/usr/sbin/martian_modem.debug make[1]: Leaving directory `/home/olivares/Downloads/martian-full-20080625/modem' [root@blackp4 martian-full-20080625]# Thanks & Best Regards, Antonio On 4/25/10, Antonio Olivares <olivares14031@xxxxxxxxx> wrote: > Dear Alexey, Marv & et all, > > I have found a solution off the net: > > The errors are overcome > > [olivares@blackp4 martian-full-20080625]$ make clean > make -C kmodule/ clean > make[1]: Entering directory > `/home/olivares/Downloads/martian-full-20080625/kmodule' > make -C /lib/modules/2.6.32.10-90.fc12.i686.PAE/build > M="/home/olivares/Downloads/martian-full-20080625/kmodule" clean > make[2]: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' > CLEAN > /home/olivares/Downloads/martian-full-20080625/kmodule/.tmp_versions > make[2]: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' > make[1]: Leaving directory > `/home/olivares/Downloads/martian-full-20080625/kmodule' > make -C modem/ clean > make[1]: Entering directory > `/home/olivares/Downloads/martian-full-20080625/modem' > RM OBJS > RM BINS > RM TOOLS > make[1]: Leaving directory > `/home/olivares/Downloads/martian-full-20080625/modem' > [olivares@blackp4 martian-full-20080625]$ make all > make -C kmodule/ modules > make[1]: Entering directory > `/home/olivares/Downloads/martian-full-20080625/kmodule' > make -C /lib/modules/2.6.32.10-90.fc12.i686.PAE/build > M="/home/olivares/Downloads/martian-full-20080625/kmodule" modules > make[2]: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' > CC [M] /home/olivares/Downloads/martian-full-20080625/kmodule/martian.o > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c: In > function ‘martian_isr’: > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:131: > warning: value computed is not used > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:148: > error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function) > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:148: > error: (Each undeclared identifier is reported only once > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:148: > error: for each function it appears in.) > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c: In > function ‘martian_read’: > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:554: > error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function) > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:554: > error: implicit declaration of function ‘signal_pending’ > /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:554: > error: implicit declaration of function ‘schedule’ > make[3]: *** > [/home/olivares/Downloads/martian-full-20080625/kmodule/martian.o] > Error 1 > make[2]: *** > [_module_/home/olivares/Downloads/martian-full-20080625/kmodule] > Error 2 > make[2]: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE' > make[1]: *** [modules] Error 2 > make[1]: Leaving directory > `/home/olivares/Downloads/martian-full-20080625/kmodule' > make: *** [all] Error 2 > [olivares@blackp4 martian-full-20080625]$ cd kmodule/ > [olivares@blackp4 kmodule]$ cp martian.c martian.c-orig > > using the fix in page: > http://www.mail-archive.com/debian-bugs-closed@xxxxxxxxxxxxxxxx/msg264173.html > > only in patch2: > unchanged: > --- martian-modem-20080617.orig/kmodule/martian.c > +++ martian-modem-20080617/kmodule/martian.c > @@ -38,6 +38,10 @@ > #include <linux/poll.h> > #include <linux/interrupt.h> > > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) > +#include <linux/sched.h> > +#endif > + > #include "kmartian.h" > #include "../martian.h" > #include "marsio.h" > > applying the patch makes the modem compile and work :) > > [olivares@blackp4 ~]$ uname -r > 2.6.32.10-90.fc12.i686.PAE > [olivares@blackp4 ~]$ uname -a > Linux blackp4 2.6.32.10-90.fc12.i686.PAE #1 SMP Tue Mar 23 10:04:28 > UTC 2010 i686 i686 i386 GNU/Linux > [olivares@blackp4 ~]$ dmesg | grep 'martian' > martian loaded - 20080620 > martian 0000:00:0b.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 > martian: added device 11c1:44e BaseAddress = 0xcc00, CommAddres = > 0xc800, irq = 19 > martian: smp ioctls are obsolete > martian_modem is attached. > > > Just sharing the news. Should have looked for it before :( > > Regards, > > Antonio >