при компилляции вышло следующее... чем исправить?
при компилляции вышло следующее... чем исправить?
root@miha:/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP# make 536
Module precompile check
Current running kernel is: 2.6.12-10-386
/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.12-10-386
make[1]: Entering directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
make -C /lib/modules/2.6.12-10-386/build
SUBDIRS=/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv
modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-10-386'
CC
[M] /home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.o
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:70:
warning: type defaults to `int' in declaration of `EXPORT_SYMBOL_NOVERS'
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:70:
warning: parameter names (without types) in function declaration
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:70:
warning: data definition has no type or storage
class/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: In function `power_callback':
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:295:
error: `PM_SAVE_STATE' undeclared (first use in this function)
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:295:
error: (Each undeclared identifier is reported only once
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:295:
error: for each function it appears in.)
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: In
function `close':
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:418:
warning: `pm_unregister' is deprecated (declared at
include/linux/pm.h:111)
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: In
function `hamproc_write':
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:662:
warning: ignoring return value of `copy_from_user', declared with
attribute warn_unused_result
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: At
top level:
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:756:
warning: initialization from incompatible pointer type
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:757:
warning: initialization from incompatible pointer type
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: In
function `kScheduleDPC':
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:863:
warning: implicit declaration of function `pm_access'
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: In
function `dspdrv_CommRamISR':
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:879:
warning: function declaration isn't a prototype
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c: At
top level:
/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.c:286:
warning: 'power_callback' defined but not used
make[3]: ***
[/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.o]
Error 1
make[2]: ***
[_module_/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv]
Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-10-386'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
2.6.12-10-386
Failed to build driver
root@miha:/home/miha/Desktop/intel-536EP-2.56.76.0-mdk10-UP# cd ..
root@miha:/home/miha/Desktop# cd intel-536EP-2.56.76.0-suse91-UP
root@miha:/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP# make clean
cd coredrv; make clean
make[1]: Entering directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv'
rm -f *.o *.ko
root@miha:/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP# make 536
Module precompile check
Current running kernel is: 2.6.12-10-386
/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.12-10-386
make[1]: Entering directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv'
make -C /lib/modules/2.6.12-10-386/build
SUBDIRS=/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv
modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-10-386'
CC
[M] /home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.o
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70:
warning: type defaults to `int' in declaration of `EXPORT_SYMBOL_NOVERS'
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70:
warning: parameter names (without types) in function declaration
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70:
warning: data definition has no type or storage class
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In
function `power_callback':
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: `PM_SAVE_STATE' undeclared (first use in this function)
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In
function `close':
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:418: warning: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In
function `hamproc_write':
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:662: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: At
top level:
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In
function `kScheduleDPC':
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:863: warning: implicit declaration of function `pm_access'
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In
function `dspdrv_CommRamISR':
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:879: warning: function declaration isn't a prototype
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: At
top level:
/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:286: warning: 'power_callback' defined but not used
make[3]: ***
[/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.o]
Error 1
make[2]: ***
[_module_/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv]
Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-10-386'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory
`/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP/coredrv'
2.6.12-10-386
Failed to build driver
root@miha:/home/miha/Desktop/intel-536EP-2.56.76.0-suse91-UP#
исходники ядра и компиляторы все поставил...
Reply to: