Привет всем!
Проблема такая:
Дистрибутив: ALTLinux Master 4.0
Ядро: 2.6.18-std-smp-alt12.M40.1
Необходимо установить драйвер для интерактивной доски (что-то наподобие большого графического планшета)
Драйвер нашёл на диске: Вот описание его, взятое из Readme
================================================================================
Recomended Kernel version to build against >= 2.6.18
To build the gtco USB driver kernel module, please follow the instructions below.
Building a kernel module should only be performed by a Linux Administrator or
someone with prior experience building kernel modules.
=================================================================================
1. Download and install any packages that your Distribution requires to build kernel modules.
2. Download the kernel source that matches your currently installed kernel. Type "uname -r" to display your current kernel version.
2. Make sure that /usr/src/linux is a symbolic link to your current kernel source code's root directory.
3. Type "make"
4. Type "make install" to copy the driver module to the modules directory.
===============================================================
Папка с драйвером содержит файл: gtco.с
Т.к. Linux я стал использовать совсем недавно, то решил так:
файл gtco.c надо скомпилировать.
При компиляции вылетает куча ошибок
начиная с такой строки
In file included from /usr/include/linux/timex.h:57,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from /home/teacher/gtco.c:58:
/usr/include/linux/time.h:12: error: redefinition of ‘struct timespec’
/usr/include/linux/time.h:18: error: redefinition of ‘struct timeval’
И это только начало.
Наверно я вообще делаю не то. А что нужно делать?