Fernando, The compile failure is seems to be kernel_version specfic, as we haven't encountered it before and it doesn't occur under my 2.6.24 kernel. But the amrmo_init.c code is not needed in for the slusb.ko compile If you fake an x86_64 host by the following simple change in the drivers/Makefile # ARCH64:=$(shell uname -m | sed -e '/amd64/s//x86_64/' | grep -c x86_64) ARCH64:=1 only the slusb.ko and slmodemd will be compiled. MarvS On Wed, Jul 30, 2008 at 3:51 PM, Fernando Di Nucci <fernando.dinucci@xxxxxxxxx> wrote: > Hi all, > > having had no luck in compiling slmodem-2.9.11-20080629.tar.gz on ARM arch > as Marvin Stodolsky pointed out, I've tried to recycle (before throwing it > through the window) the SmartLink usb modem in an old little server running > Linux Professional (this is the output of uname -a: > Linux Challenger 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 > i386 GNU/Linux) but I don't succeed in compiling. > > Attached you'll find the output of "make". Any help appreciated to > understand what's wrong, thank you in advance. > > Fernando > > amrmo_init.c:730: parse error before "int" > amrmo_init.c:730: warning: type defaults to `int' in declaration of > `module_param' > amrmo_init.c:730: warning: data definition has no type or storage class > make[2]: *** [amrmo_init.o] Error 1 > make[1]: *** [all] Error 2 > make: *** [drivers] Error 2 > modem.o -c modem.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c > modem_datafile.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_at.o -c modem_at.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_timer.o -c modem_timer.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_pack.o -c modem_pack.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_ec.o -c modem_ec.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_comp.o -c modem_comp.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_param.o -c modem_param.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_debug.o -c modem_debug.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o homolog_data.o -c > homolog_data.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_sinus.o -c dp_sinus.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_dummy.o -c dp_dummy.c > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o sysdep_common.o -c > sysdep_common.c > gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o > modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o > modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o > gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_test.o -c modem_test.c > gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o > modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o > modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o > make[1]: Leaving directory `/root/slmodem/modem' > make -C drivers KERNEL_DIR=/lib/modules/2.4.20-8smp/build > make[1]: Entering directory `/root/slmodem/drivers' > doing kernel-ver:: > cc -I/lib/modules/2.4.20-8smp/build/include -o kernel-ver kernel-ver.c > make all KERNEL_VER=2.4.20-8smp > make[2]: Entering directory `/root/slmodem/drivers' > doing %.o: %.c > cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE > -DEXPORT_SYMTAB -DMODVERSIONS --include > /lib/modules/2.4.20-8smp/build/include/linux/modversions.h > -I/lib/modules/2.4.20-8smp/build/include -I. -I./../modem -o amrmo_init.o > -c amrmo_init.c > make[2]: Leaving directory `/root/slmodem/drivers' > make[1]: Leaving directory `/root/slmodem/drivers' > >