|
楼主 |
发表于 2010-12-23 10:09:24
|
显示全部楼层
Error is solved by setting additional include path to gcc compiler .
in command shell :
$ C_INCLUDE_PATH=/usr/local/arm-elf/include/
$ export C_INCLUDE_PATH
However , new error pops up . The error said :
In file included from /usr/local/arm-elf/include/bits/socket.h:31,
from /usr/local/arm-elf/include/sys/socket.h:35,
from drivers/wifi/unifi-linux/unifi_helper/common/ipc/linux/ipc_chardevice.c:29:
/usr/local/arm-elf/include/limits.h:124:26: error: no include path in which to search for limits.h
In file included from include/asm/posix_types.h:3,
from include/linux/posix_types.h:47,
from include/linux/types.h:11,
from /home/steven/uClinux-dist/linux-2.6.x/drivers/wifi/oska/linux/types.h:12,
from /home/steven/uClinux-dist/linux-2.6.x/drivers/wifi/oska/include/oska/types.h:29,
from /home/steven/uClinux-dist/linux-2.6.x/drivers/wifi/unifi-linux/common/synergy_framework/linuxkernel/csr_types.h:11,
from drivers/wifi/unifi-linux/unifi_helper/common/ipc/linux/ipc_chardevice.c:37:
include/asm/posix_types_32.h:43: error: conflicting types for ‘__kernel_fsid_t’
/usr/local/arm-elf/include/bits/kernel_types.h:41: note: previous declaration of ‘__kernel_fsid_t’ was here
In file included from include/asm/bitops.h:316,
from include/linux/bitops.h:17,
from include/asm/cpufeature.h:118,
from include/asm/processor.h:20,
from include/linux/prefetch.h:14,
from include/linux/list.h:8,
from include/linux/module.h:9,
from /home/steven/uClinux-dist/linux-2.6.x/drivers/wifi/unifi-linux/common/synergy_framework/linuxkernel/csr_util.h:16,
from /home/steven/uClinux-dist/linux-2.6.x/drivers/wifi/unifi-linux/common/synergy_framework/linuxkernel/csr_pmalloc.h:13,
from drivers/wifi/unifi-linux/unifi_helper/common/ipc/linux/ipc_chardevice.c:38:
include/asm/bitops_32.h:117: error: static declaration of ‘ffs’ follows non-static declaration
/usr/local/arm-elf/include/string.h:305: note: previous declaration of ‘ffs’ was here
it seems the gcc has included multiple paths which contain header files with same name that caused the conflicts . How do i remove the redundant path so that the error could be solved ? Thanks in advance !
[ 本帖最后由 nicesteven 于 2010-12-23 12:22 编辑 ] |
|