Newsgroup: it.comp.os.linux.iniziare
Titolo: sfida per winmodem

Ho un grandissimo problema.
Ho un modem usb, ho scaricato i driver dal sito costruttore ma non riesco a
compilare il file
ottengo sempre il solito messaggio di errore.
Non essendo io un esperto chiedo a voi  di aiutarmi a risolvere il problrma.
Ecco qui la risposta che ottengo
0-1.dag.rh90.i586.rpm  slmdm-2.7.14.tar.gz
slmdm-2.7.14                      slmodem-2.9.4
slmdm-2.7.14_debug.tar.gz         slmodem-2.9.4.tar.gz
[marco@localhost marco]$ cd tmp/slmd
slmdm-2.7.10-1.dag.rh90.i586.rpm  slmdm-2.7.14_debug.tar.gz
slmdm-2.7.14                      slmdm-2.7.14.tar.gz
[marco@localhost marco]$ cd tmp/slmdm-2.7.14
[marco@localhost slmdm-2.7.14]$ ls
amrmo_init.c  fax_init.c      mdm_params.c        slusb.modules-dist
amrmo.o       fax.o           mdm_sltty.c         slver*
Changes       kernel-ver.c    modem_driver.h      sysdep.c
COPYRIGHT     linux_compat.h  README              sysdep_linux.c
country.dat   Makefile        slamr.modules-dist  sysdep_pci.c
editme.c      mdm_init.c      slmdm.modules-dist  usb.o
FAQ           mdm.o           slmdm.spec          usb_st7554.c
[marco@localhost slmdm-2.7.14]$ make
gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I.
 -I/lib/modules/2.4.22-10mdk -DMODVERSIONS --include
usr/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c
<command line>:138586197:43160: usr/include/linux/modversions.h: No such
file or directory
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/module.h:11,
                 from amrmo_init.c:47:
/usr/include/asm/processor.h:55: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/asm/processor.h:55: error: requested alignment is not a
constant
In file included from /usr/include/linux/module.h:297,
                 from amrmo_init.c:47:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
  /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error
"   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from amrmo_init.c:47:
/usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE"
In file included from amrmo_init.c:48:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
  /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error
"   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from /usr/include/linux/mm.h:12,
                 from /usr/include/linux/slab.h:14,
                 from /usr/include/asm/pci.h:37,
                 from /usr/include/linux/pci.h:654,
                 from amrmo_init.c:50:
/usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/mmzone.h:44: error: requested alignment is not a constant
In file included from linux_compat.h:50,
                 from amrmo_init.c:53:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
  /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error
"   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from amrmo_init.c:53:
linux_compat.h:55:40: missing binary operator before token "("
linux_compat.h:77:40: missing binary operator before token "("
linux_compat.h:91:40: missing binary operator before token "("
linux_compat.h:98:41: missing binary operator before token "("
amrmo_init.c: In function `amrmo_probe':
amrmo_init.c:311: warning: implicit declaration of function
`pci_request_regions'
amrmo_init.c:317: warning: implicit declaration of function
`pci_release_regions'
amrmo_init.c: In function `amrmo_init':
amrmo_init.c:378: warning: implicit declaration of function `pci_dev_driver'
make: *** [amrmo_init.o] Error 1
[marco@localhost slmdm-2.7.14]$
Qrazie a tutti quelli che accetteranno la sfida
rispondetemi anche in privato.
jamir...@libero.it

Non crosspostare!!!
Domanda pubblica, risposta pubblica.
Quale modem utilizzi?
Distribuzione/kernel?
I sorgenti del kernel li hai? Mi pare di no.
Ma i driver slmdm non erano rivolti a winmodem?
Ciao.

 file or directory
come vedi il problema è questo..ti manca il file modversions.h anche io ho
avuto lo stesso problema..dentro il kernel vanilla manca quel file e te lo
devi procurare.
ciao,
Scomodo
-- 
Powered by Slackware GNU-Linux/i686 -- 
www.scomodo.com

 ha scritto nel messaggio
news:cACIb.25872$VW.12...@news3.tin.it...




 reperibili nel sito del produttore.
Se la MDK9.2 che stai usando è scaricata da Internet o "presa in edicola" 
nei classici tre cd allora ... i sorgenti del kernel non ci sono, te li 
devi scaricare da internet. Fai attenzione che il pacchetto si chiama 
kernel-source-2.4.22-10mdk.rpm e non kernel.2.4.22-10mdk.src.rpm.
Per il modem non posso aiutarti, ma anche controllando su 
http://www.linmodems.org/
 non credo che tu possa trovare molto, di solito i 
driver presenti sono per winmodem su scheda PCI.
Ciao !
-- 
Using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/