[hsflinux] hsflinux compile errors with 2.6.17.6?!

Hans Meine hans_meine at gmx.net
Tue Jul 25 15:50:56 EDT 2006


Hi!

I just upgraded my kernel, and independently finally realized that slmodem is 
not the right driver for my modem (it would happily load & run, maintaining a 
device, answer AT commands, but eventually say "NO DIALTONE" when trying an 
ATDT).

Now I wanted to try hsflinux, I even considered buying the full version for 
sending faxes (although I do that only ocasionally, so I don't know if it's 
worth it) and show my appreciation for the driver development, but I cannot 
get the kernel module to compile. :-(

Is this a known problem with the latest kernel or some Gentoo-specific problem 
(I don't think it's the latter, because Gentoo usually contains very few 
patches but installs mostly-vanilla software)?  I see 
that "uname --hardware-platform" returns "unknown" here, which makes the 
Makefile complain ("uname --machine" gives "i686"), but I don't think that 
this is related to the syntax error happening with MODULE_PARM:

  CC [M]  /usr/lib/hsfmodem/modules/osnvm.o
/usr/lib/hsfmodem/modules/osnvm.c:32: error: syntax error before string 
constant
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: type defaults to `int' in 
declaration of `MODUL
E_PARM'
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: function declaration isn't a 
prototype
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: data definition has no type or 
storage class
make[2]: *** [/usr/lib/hsfmodem/modules/osnvm.o] Error 1

I attach both the buildlog and the (gzipped) hsfdiag files.  You can also find 
some minimal information about my scanModem output here:
http://kogs-www.informatik.uni-hamburg.de/~meine/thinkpad#the-modem

Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo
-------------- next part --------------
Makefile:20: *** WARNING: Trying to compile kernel modules on a unknown system while the installed hsf driver package is for i386, this is likely to fail... ***
(cd /lib/modules/2.6.17.6/build && make "CNXT_KERNELSRC=/lib/modules/2.6.17.6/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" clean)
make[1]: Entering directory `/home/usr_src/linux-2.6.17.6'
/usr/lib/hsfmodem/modules/Makefile:20: *** WARNING: Trying to compile kernel modules on a unknown system while the installed hsf driver package is for i386, this is likely to fail... ***
make[1]: Leaving directory `/home/usr_src/linux-2.6.17.6'
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.17.6/build/.tmp_versions/hsfosspec.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfserial.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfengine.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfmc97ali.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfmc97sis.mod  /lib/modules/2.6.17.6/build/.tmp_versions/hsfsoar.mod
(cd /lib/modules/2.6.17.6/build && make "CNXT_KERNELSRC=/lib/modules/2.6.17.6/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" modules)
make[1]: Entering directory `/home/usr_src/linux-2.6.17.6'
/usr/lib/hsfmodem/modules/Makefile:20: *** WARNING: Trying to compile kernel modules on a unknown system while the installed hsf driver package is for i386, this is likely to fail... ***
  CC [M]  /usr/lib/hsfmodem/modules/mod_engine.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ali.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:32:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function `cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: implicit declaration of function `pm_register'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: assignment makes pointer from integer without a cast
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:137: warning: implicit declaration of function `pm_unregister'
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ati.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97ati.c:26:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function `cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: implicit declaration of function `pm_register'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: assignment makes pointer from integer without a cast
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:137: warning: implicit declaration of function `pm_unregister'
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ich.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97ich.c:37:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function `cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: implicit declaration of function `pm_register'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: assignment makes pointer from integer without a cast
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:137: warning: implicit declaration of function `pm_unregister'
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97sis.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97sis.c:25:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function `cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: implicit declaration of function `pm_register'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: assignment makes pointer from integer without a cast
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:137: warning: implicit declaration of function `pm_unregister'
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97via.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97via.c:25:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function `cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: implicit declaration of function `pm_register'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:86: warning: assignment makes pointer from integer without a cast
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:137: warning: implicit declaration of function `pm_unregister'
  CC [M]  /usr/lib/hsfmodem/modules/mod_osspec.o
  CC [M]  /usr/lib/hsfmodem/modules/osservices.o
  CC [M]  /usr/lib/hsfmodem/modules/osstdio.o
  CC [M]  /usr/lib/hsfmodem/modules/osnvm.o
/usr/lib/hsfmodem/modules/osnvm.c:32: error: syntax error before string constant
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: type defaults to `int' in declaration of `MODULE_PARM'
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: function declaration isn't a prototype
/usr/lib/hsfmodem/modules/osnvm.c:32: warning: data definition has no type or storage class
make[2]: *** [/usr/lib/hsfmodem/modules/osnvm.o] Error 1
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/home/usr_src/linux-2.6.17.6'
make: *** [all] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hsfdiag.txt.gz
Type: application/x-gzip
Size: 19351 bytes
Desc: not available
Url : http://www.linuxant.com/pipermail/hsflinux/attachments/20060725/4365498d/hsfdiag.txt-0001.bin


More information about the hsflinux mailing list