Вот так: на диске к модему дрова были...
cpander@himera:~/modem/Linux/slmdm-2.7.15$ sudo make config
Password:
/sbin/modprobe -r slusb
/sbin/modprobe -r slamrmo
FATAL: Module slamrmo not found.
make: [unload-modules] Ошибка 1 (игнорирована)
/sbin/modprobe -r slfax
FATAL: Module slfax not found.
make: [unload-modules] Ошибка 1 (игнорирована)
/sbin/modprobe -r slmdm
FATAL: Module slmdm not found.
make: [unload-modules] Ошибка 1 (игнорирована)
cp /etc/modules.conf /etc/modules.conf.slmdm && \
grep -v 'slmodem' /etc/modules.conf.slmdm > /etc/modules.conf
make: [cleanup-config] Ошибка 1 (игнорирована)
/sbin/depmod -a
cp /etc/modules.conf /etc/modules.conf.slmdm
echo 'alias char-major-212 slmodem' >> /etc/modules.conf
echo 'alias slmodem off' >> /etc/modules.conf
cpander@himera:~/modem/Linux/slmdm-2.7.15$ sudo make
gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c
cc1: ошибка: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from amrmo_init.c:46:
/usr/include/linux/config.h:1:2: ошибка: #error "Compilation aborted. Please read the FAQ for linux-libc-headers package."
/usr/include/linux/config.h:2:2: ошибка: #error "(can be found at
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/)"
In file included from /usr/include/linux/sched.h:16,
from /usr/include/linux/module.h:9,
from amrmo_init.c:47:
/usr/include/linux/signal.h:2:2: предупреждение: #warning "You should include <signal.h>. This time I will do it for you."
In file included from /usr/include/linux/resource.h:4,
from /usr/include/linux/sched.h:79,
from /usr/include/linux/module.h:9,
from amrmo_init.c:47:
/usr/include/linux/time.h:9: error: redefinition of ‘struct timespec’
/usr/include/linux/time.h:15: error: redefinition of ‘struct timeval’
/usr/include/linux/time.h:20: error: redefinition of ‘struct timezone’
/usr/include/linux/time.h:47: error: redefinition of ‘struct itimerval’
In file included from amrmo_init.c:47:
/usr/include/linux/module.h:41: error: field ‘attr’ has incomplete type
/usr/include/linux/module.h:49: error: field ‘kobj’ has incomplete type
amrmo_init.c:175: error: array type has incomplete element type
amrmo_init.c:177: error: ‘PCI_ANY_ID’ undeclared here (not in a function)
amrmo_init.c: In function ‘amrmo_probe’:
amrmo_init.c:263: warning: implicit declaration of function ‘printk’
amrmo_init.c:263: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:263: error: (Each undeclared identifier is reported only once
amrmo_init.c:263: error: for each function it appears in.)
amrmo_init.c:263: error: syntax error before string constant
amrmo_init.c:267: error: dereferencing pointer to incomplete type
amrmo_init.c:268: error: dereferencing pointer to incomplete type
amrmo_init.c:270: error: ‘KERN_WARNING’ undeclared (first use in this function)
amrmo_init.c:270: error: syntax error before string constant
amrmo_init.c:275: warning: implicit declaration of function ‘pci_enable_device’
amrmo_init.c:276: error: dereferencing pointer to incomplete type
amrmo_init.c:279: warning: implicit declaration of function ‘kmalloc’
amrmo_init.c:279: error: ‘GFP_KERNEL’ undeclared (first use in this function)
amrmo_init.c:279: warning: assignment makes pointer from integer without a cast
amrmo_init.c:282: warning: implicit declaration of function ‘memset’
amrmo_init.c:282: warning: incompatible implicit declaration of built-in function ‘memset’
amrmo_init.c:284: error: dereferencing pointer to incomplete type
amrmo_init.c:287: error: dereferencing pointer to incomplete type
amrmo_init.c:288: warning: implicit declaration of function ‘pci_resource_flags’
amrmo_init.c:288: error: ‘IORESOURCE_MEM’ undeclared (first use in this function)
amrmo_init.c:289: warning: implicit declaration of function ‘pci_resource_start’
amrmo_init.c:301: error: dereferencing pointer to incomplete type
amrmo_init.c:305: warning: implicit declaration of function ‘kfree’
amrmo_init.c:309: warning: implicit declaration of function ‘pci_set_master’
amrmo_init.c:311: warning: implicit declaration of function ‘pci_request_regions’
amrmo_init.c:312: error: ‘KERN_ERR’ undeclared (first use in this function)
amrmo_init.c:312: error: syntax error before string constant
amrmo_init.c:315: warning: implicit declaration of function ‘request_irq’
amrmo_init.c:315: error: ‘SA_SHIRQ’ undeclared (first use in this function)
amrmo_init.c:316: error: syntax error before string constant
amrmo_init.c:317: warning: implicit declaration of function ‘pci_release_regions’
amrmo_init.c:321: warning: implicit declaration of function ‘pci_set_drvdata’
amrmo_init.c:327: warning: implicit declaration of function ‘pci_disable_device’
amrmo_init.c: In function ‘amrmo_remove’:
amrmo_init.c:333: warning: implicit declaration of function ‘pci_get_drvdata’
amrmo_init.c:333: warning: initialization makes pointer from integer without a cast
amrmo_init.c:335: warning: implicit declaration of function ‘free_irq’
amrmo_init.c: At top level:
amrmo_init.c:355: error: variable ‘amrmo_pci_driver’ has initializer but incomplete type
amrmo_init.c:356: error: unknown field ‘name’ specified in initializer
amrmo_init.c:356: warning: excess elements in struct initializer
amrmo_init.c:356: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:357: error: unknown field ‘id_table’ specified in initializer
amrmo_init.c:357: warning: excess elements in struct initializer
amrmo_init.c:357: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:358: error: unknown field ‘probe’ specified in initializer
amrmo_init.c:358: warning: excess elements in struct initializer
amrmo_init.c:358: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:359: error: unknown field ‘remove’ specified in initializer
amrmo_init.c:359: warning: excess elements in struct initializer
amrmo_init.c:359: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c: In function ‘amrmo_init’:
amrmo_init.c:369: warning: implicit declaration of function ‘pci_present’
amrmo_init.c:372: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:372: error: syntax error before string constant
amrmo_init.c:376: warning: implicit declaration of function ‘pci_for_each_dev’
amrmo_init.c:376: error: syntax error before ‘{’ token
amrmo_init.c:382: error: dereferencing pointer to incomplete type
amrmo_init.c:382: error: dereferencing pointer to incomplete type
amrmo_init.c:383: error: dereferencing pointer to incomplete type
amrmo_init.c:384: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:386: error: syntax error before ‘}’ token
amrmo_init.c: In function ‘amrmo_exit’:
amrmo_init.c:398: warning: implicit declaration of function ‘pci_unregister_driver’
amrmo_init.c: At top level:
amrmo_init.c:404: warning: type defaults to ‘int’ in declaration of ‘EXPORT_NO_SYMBOLS’
amrmo_init.c:404: warning: data definition has no type or storage class
make: *** [amrmo_init.o] Ошибка 1