Может кто знает в чём тут проблема ...
Добавлено: 05 дек 2004, 20:45
У меня внутренний модеm Intel 536EP. Решил установить дрова на мой Mandrake 10.1 Official. И вот что мне "сказал" Linux после команды make 536:
[root@localhost intel]# make 536
Module precompile check
Current running kernel is: 2.6.8.1-12mdk
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.8.1-12mdk
make[1]: Entering directory `/home/anton/intel/coredrv'
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/anton/intel/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/anton/intel/coredrv/coredrv.o
/home/anton/intel/coredrv/coredrv.c: In function `power_callback':
/home/anton/intel/coredrv/coredrv.c:295: error: `PM_SAVE_STATE' undeclared (first use in this function)
/home/anton/intel/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/anton/intel/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/anton/intel/coredrv/coredrv.c: At top level:
/home/anton/intel/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/anton/intel/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/anton/intel/coredrv/coredrv.c: In function `dspdrv_CommRamISR':
/home/anton/intel/coredrv/coredrv.c:879: warning: function declaration isn't a prototype
/home/anton/intel/coredrv/coredrv.c: At top level:
/home/anton/intel/coredrv/coredrv.c:286: warning: 'power_callback' defined but not used
make[3]: *** [/home/anton/intel/coredrv/coredrv.o] Ошибка 1
make[2]: *** [_module_/home/anton/intel/coredrv] Ошибка 2
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: *** [536core_26] Ошибка 2
make[1]: Leaving directory `/home/anton/intel/coredrv'
2.6.8.1-12mdk
Failed to build driver
P.S> Весь прикол в том что на Mandrake 10.0 Community эти дрова поставились, а на Official не хотят.
[root@localhost intel]# make 536
Module precompile check
Current running kernel is: 2.6.8.1-12mdk
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.8.1-12mdk
make[1]: Entering directory `/home/anton/intel/coredrv'
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/anton/intel/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/anton/intel/coredrv/coredrv.o
/home/anton/intel/coredrv/coredrv.c: In function `power_callback':
/home/anton/intel/coredrv/coredrv.c:295: error: `PM_SAVE_STATE' undeclared (first use in this function)
/home/anton/intel/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/anton/intel/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/anton/intel/coredrv/coredrv.c: At top level:
/home/anton/intel/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/anton/intel/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/anton/intel/coredrv/coredrv.c: In function `dspdrv_CommRamISR':
/home/anton/intel/coredrv/coredrv.c:879: warning: function declaration isn't a prototype
/home/anton/intel/coredrv/coredrv.c: At top level:
/home/anton/intel/coredrv/coredrv.c:286: warning: 'power_callback' defined but not used
make[3]: *** [/home/anton/intel/coredrv/coredrv.o] Ошибка 1
make[2]: *** [_module_/home/anton/intel/coredrv] Ошибка 2
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: *** [536core_26] Ошибка 2
make[1]: Leaving directory `/home/anton/intel/coredrv'
2.6.8.1-12mdk
Failed to build driver
P.S> Весь прикол в том что на Mandrake 10.0 Community эти дрова поставились, а на Official не хотят.