[Asterisk-Users] Eicon Diva - problems building new v3 melware driver

Klaus Darilion klaus.mailinglists at pernau.at
Mon May 15 09:47:54 MST 2006


Hi Armin!

I have problems on debian sarge with standard 2.6.8-2-386 kernel.

I've installed the packages:
  kernel-headers-2.6.8-2
  kernel-headers-2.6.8-2-386
  kernel-image-2.6.8-2-386
  kernel-kbuild-2.6-3
  kernel-source-2.6.8

Then I unpacked the kernel sources into /usr/src/kernel-source-2.6.8 and 
made a symlink from /usr/src/linux --> kernel-source-2.6.8

Then I entered /usr/src/linux, started "make menuconfig", loaded the 
configuration from /boot/config-2.6.8-2-386 and exited from the config 
application.

I think now I should have configured kernel sources.

But if I start compiling, I got lots of errors (see below)

Help is appreciated :-)

thanks
klaus


server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1# make
Searching for configured kernel in /usr/src/linux
Kernel version is 2.6.8

Building divas4linux kernel modules...
Using kernel 2.6 build mechanism of /usr/src/linux...

make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
   CC [M] 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.o
In file included from include/linux/kernel.h:11,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/linkage.h:5:25: asm/linkage.h: No such file or directory
In file included from include/linux/posix_types.h:47,
                  from include/linux/types.h:13,
                  from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22: 
features.h: No such file or directory
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:14:35: no 
include path in which to find asm/posix_types.h
In file included from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration 
of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or 
storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration 
of `dev_t'
include/linux/types.h:21: warning: data definition has no type or 
storage class
include/linux/types.h:22: error: syntax error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration 
of `ino_t'
include/linux/types.h:22: warning: data definition has no type or 
storage class
include/linux/types.h:23: error: syntax error before "mode_t"
include/linux/types.h:23: warning: type defaults to `int' in declaration 
of `mode_t'
include/linux/types.h:23: warning: data definition has no type or 
storage class
include/linux/types.h:24: error: syntax error before "nlink_t"
include/linux/types.h:24: warning: type defaults to `int' in declaration 
of `nlink_t'
include/linux/types.h:24: warning: data definition has no type or 
storage class
include/linux/types.h:25: error: syntax error before "off_t"
include/linux/types.h:25: warning: type defaults to `int' in declaration 
of `off_t'
include/linux/types.h:25: warning: data definition has no type or 
storage class
include/linux/types.h:26: error: syntax error before "pid_t"
include/linux/types.h:26: warning: type defaults to `int' in declaration 
of `pid_t'
include/linux/types.h:26: warning: data definition has no type or 
storage class
include/linux/types.h:27: error: syntax error before "daddr_t"
include/linux/types.h:27: warning: type defaults to `int' in declaration 
of `daddr_t'
include/linux/types.h:27: warning: data definition has no type or 
storage class
include/linux/types.h:29: error: syntax error before "suseconds_t"
include/linux/types.h:29: warning: type defaults to `int' in declaration 
of `suseconds_t'
include/linux/types.h:29: warning: data definition has no type or 
storage class
include/linux/types.h:30: error: syntax error before "timer_t"
include/linux/types.h:30: warning: type defaults to `int' in declaration 
of `timer_t'
include/linux/types.h:30: warning: data definition has no type or 
storage class
include/linux/types.h:31: error: syntax error before "clockid_t"
include/linux/types.h:31: warning: type defaults to `int' in declaration 
of `clockid_t'
include/linux/types.h:31: warning: data definition has no type or 
storage class
include/linux/types.h:35: error: syntax error before "uid_t"
include/linux/types.h:35: warning: type defaults to `int' in declaration 
of `uid_t'
include/linux/types.h:35: warning: data definition has no type or 
storage class
include/linux/types.h:36: error: syntax error before "gid_t"
include/linux/types.h:36: warning: type defaults to `int' in declaration 
of `gid_t'
include/linux/types.h:36: warning: data definition has no type or 
storage class
include/linux/types.h:37: error: syntax error before "uid16_t"
include/linux/types.h:37: warning: type defaults to `int' in declaration 
of `uid16_t'
include/linux/types.h:37: warning: data definition has no type or 
storage class
include/linux/types.h:38: error: syntax error before "gid16_t"
include/linux/types.h:38: warning: type defaults to `int' in declaration 
of `gid16_t'
include/linux/types.h:38: warning: data definition has no type or 
storage class
include/linux/types.h:42: error: syntax error before "old_uid_t"
include/linux/types.h:42: warning: type defaults to `int' in declaration 
of `old_uid_t'
include/linux/types.h:42: warning: data definition has no type or 
storage class
include/linux/types.h:43: error: syntax error before "old_gid_t"
include/linux/types.h:43: warning: type defaults to `int' in declaration 
of `old_gid_t'
include/linux/types.h:43: warning: data definition has no type or 
storage class
include/linux/types.h:55: error: syntax error before "loff_t"
include/linux/types.h:55: warning: type defaults to `int' in declaration 
of `loff_t'
include/linux/types.h:55: warning: data definition has no type or 
storage class
include/linux/types.h:64: error: syntax error before "size_t"
include/linux/types.h:64: warning: type defaults to `int' in declaration 
of `size_t'
include/linux/types.h:64: warning: data definition has no type or 
storage class
include/linux/types.h:69: error: syntax error before "ssize_t"
include/linux/types.h:69: warning: type defaults to `int' in declaration 
of `ssize_t'
include/linux/types.h:69: warning: data definition has no type or 
storage class
include/linux/types.h:74: error: syntax error before "ptrdiff_t"
include/linux/types.h:74: warning: type defaults to `int' in declaration 
of `ptrdiff_t'
include/linux/types.h:74: warning: data definition has no type or 
storage class
make[2]: *** 
[/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.o] 
Interrupt
make[1]: *** 
[_module_/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi] 
Interrupt
make: *** [kernel] Interrupt

server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1#
server1:~/asterisk/divas4linux-melware-3.0.e-106.622-1# make
Searching for configured kernel in /usr/src/linux
Kernel version is 2.6.8

Building divas4linux kernel modules...
Using kernel 2.6 build mechanism of /usr/src/linux...

make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
   CC [M] 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.o
In file included from include/linux/kernel.h:11,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/linkage.h:5:25: asm/linkage.h: No such file or directory
In file included from include/linux/posix_types.h:47,
                  from include/linux/types.h:13,
                  from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22: 
features.h: No such file or directory
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:14:35: no 
include path in which to find asm/posix_types.h
In file included from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/kernel.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration 
of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or 
storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration 
of `dev_t'
include/linux/types.h:21: warning: data definition has no type or 
storage class
include/linux/types.h:22: error: syntax error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration 
of `ino_t'
include/linux/types.h:22: warning: data definition has no type or 
storage class
include/linux/types.h:23: error: syntax error before "mode_t"
include/linux/types.h:23: warning: type defaults to `int' in declaration 
of `mode_t'
include/linux/types.h:23: warning: data definition has no type or 
storage class
include/linux/types.h:24: error: syntax error before "nlink_t"
include/linux/types.h:24: warning: type defaults to `int' in declaration 
of `nlink_t'
include/linux/types.h:24: warning: data definition has no type or 
storage class
include/linux/types.h:25: error: syntax error before "off_t"
include/linux/types.h:25: warning: type defaults to `int' in declaration 
of `off_t'
include/linux/types.h:25: warning: data definition has no type or 
storage class
include/linux/types.h:26: error: syntax error before "pid_t"
include/linux/types.h:26: warning: type defaults to `int' in declaration 
of `pid_t'
include/linux/types.h:26: warning: data definition has no type or 
storage class
include/linux/types.h:27: error: syntax error before "daddr_t"
include/linux/types.h:27: warning: type defaults to `int' in declaration 
of `daddr_t'
include/linux/types.h:27: warning: data definition has no type or 
storage class
include/linux/types.h:29: error: syntax error before "suseconds_t"
include/linux/types.h:29: warning: type defaults to `int' in declaration 
of `suseconds_t'
include/linux/types.h:29: warning: data definition has no type or 
storage class
include/linux/types.h:30: error: syntax error before "timer_t"
include/linux/types.h:30: warning: type defaults to `int' in declaration 
of `timer_t'
include/linux/types.h:30: warning: data definition has no type or 
storage class
include/linux/types.h:31: error: syntax error before "clockid_t"
include/linux/types.h:31: warning: type defaults to `int' in declaration 
of `clockid_t'
include/linux/types.h:31: warning: data definition has no type or 
storage class
include/linux/types.h:35: error: syntax error before "uid_t"
include/linux/types.h:35: warning: type defaults to `int' in declaration 
of `uid_t'
include/linux/types.h:35: warning: data definition has no type or 
storage class
include/linux/types.h:36: error: syntax error before "gid_t"
include/linux/types.h:36: warning: type defaults to `int' in declaration 
of `gid_t'
include/linux/types.h:36: warning: data definition has no type or 
storage class
include/linux/types.h:37: error: syntax error before "uid16_t"
include/linux/types.h:37: warning: type defaults to `int' in declaration 
of `uid16_t'
include/linux/types.h:37: warning: data definition has no type or 
storage class
include/linux/types.h:38: error: syntax error before "gid16_t"
include/linux/types.h:38: warning: type defaults to `int' in declaration 
of `gid16_t'
include/linux/types.h:38: warning: data definition has no type or 
storage class
include/linux/types.h:42: error: syntax error before "old_uid_t"
include/linux/types.h:42: warning: type defaults to `int' in declaration 
of `old_uid_t'
include/linux/types.h:42: warning: data definition has no type or 
storage class
include/linux/types.h:43: error: syntax error before "old_gid_t"
include/linux/types.h:43: warning: type defaults to `int' in declaration 
of `old_gid_t'
include/linux/types.h:43: warning: data definition has no type or 
storage class
include/linux/types.h:55: error: syntax error before "loff_t"
include/linux/types.h:55: warning: type defaults to `int' in declaration 
of `loff_t'
include/linux/types.h:55: warning: data definition has no type or 
storage class
include/linux/types.h:64: error: syntax error before "size_t"
include/linux/types.h:64: warning: type defaults to `int' in declaration 
of `size_t'
include/linux/types.h:64: warning: data definition has no type or 
storage class
include/linux/types.h:69: error: syntax error before "ssize_t"
include/linux/types.h:69: warning: type defaults to `int' in declaration 
of `ssize_t'
include/linux/types.h:69: warning: data definition has no type or 
storage class
include/linux/types.h:74: error: syntax error before "ptrdiff_t"
include/linux/types.h:74: warning: type defaults to `int' in declaration 
of `ptrdiff_t'
include/linux/types.h:74: warning: data definition has no type or 
storage class
include/linux/types.h:79: error: syntax error before "time_t"
include/linux/types.h:79: warning: type defaults to `int' in declaration 
of `time_t'
include/linux/types.h:79: warning: data definition has no type or 
storage class
include/linux/types.h:84: error: syntax error before "clock_t"
include/linux/types.h:84: warning: type defaults to `int' in declaration 
of `clock_t'
include/linux/types.h:84: warning: data definition has no type or 
storage class
include/linux/types.h:89: error: syntax error before "caddr_t"
include/linux/types.h:89: warning: type defaults to `int' in declaration 
of `caddr_t'
include/linux/types.h:89: warning: data definition has no type or 
storage class
include/linux/types.h:107: error: syntax error before "u_int8_t"
include/linux/types.h:107: warning: type defaults to `int' in 
declaration of `u_int8_t'
include/linux/types.h:107: warning: data definition has no type or 
storage class
include/linux/types.h:108: error: syntax error before "int8_t"
include/linux/types.h:108: warning: type defaults to `int' in 
declaration of `int8_t'
include/linux/types.h:108: warning: data definition has no type or 
storage class
include/linux/types.h:109: error: syntax error before "u_int16_t"
include/linux/types.h:109: warning: type defaults to `int' in 
declaration of `u_int16_t'
include/linux/types.h:109: warning: data definition has no type or 
storage class
include/linux/types.h:110: error: syntax error before "int16_t"
include/linux/types.h:110: warning: type defaults to `int' in 
declaration of `int16_t'
include/linux/types.h:110: warning: data definition has no type or 
storage class
include/linux/types.h:111: error: syntax error before "u_int32_t"
include/linux/types.h:111: warning: type defaults to `int' in 
declaration of `u_int32_t'
include/linux/types.h:111: warning: data definition has no type or 
storage class
include/linux/types.h:112: error: syntax error before "int32_t"
include/linux/types.h:112: warning: type defaults to `int' in 
declaration of `int32_t'
include/linux/types.h:112: warning: data definition has no type or 
storage class
include/linux/types.h:116: error: syntax error before "uint8_t"
include/linux/types.h:116: warning: type defaults to `int' in 
declaration of `uint8_t'
include/linux/types.h:116: warning: data definition has no type or 
storage class
include/linux/types.h:117: error: syntax error before "uint16_t"
include/linux/types.h:117: warning: type defaults to `int' in 
declaration of `uint16_t'
include/linux/types.h:117: warning: data definition has no type or 
storage class
include/linux/types.h:118: error: syntax error before "uint32_t"
include/linux/types.h:118: warning: type defaults to `int' in 
declaration of `uint32_t'
include/linux/types.h:118: warning: data definition has no type or 
storage class
include/linux/types.h:121: error: syntax error before "uint64_t"
include/linux/types.h:121: warning: type defaults to `int' in 
declaration of `uint64_t'
include/linux/types.h:121: warning: data definition has no type or 
storage class
include/linux/types.h:122: error: syntax error before "u_int64_t"
include/linux/types.h:122: warning: type defaults to `int' in 
declaration of `u_int64_t'
include/linux/types.h:122: warning: data definition has no type or 
storage class
include/linux/types.h:123: error: syntax error before "int64_t"
include/linux/types.h:123: warning: type defaults to `int' in 
declaration of `int64_t'
include/linux/types.h:123: warning: data definition has no type or 
storage class
include/linux/types.h:151: error: syntax error before "__kernel_daddr_t"
include/linux/types.h:151: warning: no semicolon at end of struct or union
include/linux/types.h:152: warning: type defaults to `int' in 
declaration of `f_tinode'
include/linux/types.h:152: warning: data definition has no type or 
storage class
include/linux/types.h:155: error: syntax error before '}' token
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/kernel.h:15:27: asm/byteorder.h: No such file or directory
include/linux/kernel.h:16:21: asm/bug.h: No such file or directory
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:13,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/kernel.h:81: error: syntax error before "size_t"
include/linux/kernel.h:82: warning: function declaration isn't a prototype
include/linux/kernel.h:82: warning: conflicting types for built-in 
function `snprintf'
include/linux/kernel.h:83: error: syntax error before "size_t"
include/linux/kernel.h:83: warning: function declaration isn't a prototype
include/linux/kernel.h:84: error: syntax error before "size_t"
include/linux/kernel.h:85: warning: function declaration isn't a prototype
include/linux/kernel.h:86: error: syntax error before "size_t"
include/linux/kernel.h:86: warning: function declaration isn't a prototype
include/linux/kernel.h:190:2: #error "Please fix asm/byteorder.h"
In file included from include/linux/thread_info.h:20,
                  from include/linux/spinlock.h:12,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/bitops.h:3:23: asm/types.h: No such file or directory
include/linux/bitops.h:4:24: asm/bitops.h: No such file or directory
In file included from include/linux/thread_info.h:20,
                  from include/linux/spinlock.h:12,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/bitops.h: In function `get_bitmask_order':
include/linux/bitops.h:78: warning: implicit declaration of function `fls'
include/linux/bitops.h: At top level:
include/linux/bitops.h:111: error: syntax error before "w"
include/linux/bitops.h:112: warning: function declaration isn't a prototype
include/linux/bitops.h: In function `generic_hweight64':
include/linux/bitops.h:114: error: `w' undeclared (first use in this 
function)
include/linux/bitops.h:114: error: (Each undeclared identifier is 
reported only once
include/linux/bitops.h:114: error: for each function it appears in.)
In file included from include/linux/spinlock.h:12,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/thread_info.h:21:29: asm/thread_info.h: No such file or 
directory
In file included from include/linux/spinlock.h:12,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/thread_info.h: In function `set_thread_flag':
include/linux/thread_info.h:32: warning: implicit declaration of 
function `set_bit'
include/linux/thread_info.h:32: warning: implicit declaration of 
function `current_thread_info'
include/linux/thread_info.h:32: error: invalid type argument of `->'
include/linux/thread_info.h: In function `clear_thread_flag':
include/linux/thread_info.h:37: warning: implicit declaration of 
function `clear_bit'
include/linux/thread_info.h:37: error: invalid type argument of `->'
include/linux/thread_info.h: In function `test_and_set_thread_flag':
include/linux/thread_info.h:42: warning: implicit declaration of 
function `test_and_set_bit'
include/linux/thread_info.h:42: error: invalid type argument of `->'
include/linux/thread_info.h: In function `test_and_clear_thread_flag':
include/linux/thread_info.h:47: warning: implicit declaration of 
function `test_and_clear_bit'
include/linux/thread_info.h:47: error: invalid type argument of `->'
include/linux/thread_info.h: In function `test_thread_flag':
include/linux/thread_info.h:52: warning: implicit declaration of 
function `test_bit'
include/linux/thread_info.h:52: error: invalid type argument of `->'
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:55: warning: `struct thread_info' declared 
inside parameter list
include/linux/thread_info.h:55: warning: its scope is only this 
definition or declaration, which is probably not what you want
include/linux/thread_info.h: In function `set_ti_thread_flag':
include/linux/thread_info.h:57: error: dereferencing pointer to 
incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:60: warning: `struct thread_info' declared 
inside parameter list
include/linux/thread_info.h: In function `clear_ti_thread_flag':
include/linux/thread_info.h:62: error: dereferencing pointer to 
incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:65: warning: `struct thread_info' declared 
inside parameter list
include/linux/thread_info.h: In function `test_and_set_ti_thread_flag':
include/linux/thread_info.h:67: error: dereferencing pointer to 
incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:70: warning: `struct thread_info' declared 
inside parameter list
include/linux/thread_info.h: In function `test_and_clear_ti_thread_flag':
include/linux/thread_info.h:72: error: dereferencing pointer to 
incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:75: warning: `struct thread_info' declared 
inside parameter list
include/linux/thread_info.h: In function `test_ti_thread_flag':
include/linux/thread_info.h:77: error: dereferencing pointer to 
incomplete type
include/linux/thread_info.h: In function `set_need_resched':
include/linux/thread_info.h:82: error: `TIF_NEED_RESCHED' undeclared 
(first use in this function)
include/linux/thread_info.h: In function `clear_need_resched':
include/linux/thread_info.h:87: error: `TIF_NEED_RESCHED' undeclared 
(first use in this function)
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/spinlock.h:16:52: asm/processor.h: No such file or directory
include/linux/spinlock.h:17:24: asm/system.h: No such file or directory
include/linux/spinlock.h:396:24: asm/atomic.h: No such file or directory
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:14,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/spinlock.h: At top level:
include/linux/spinlock.h:397: error: syntax error before '*' token
include/linux/spinlock.h:397: warning: function declaration isn't a 
prototype
include/linux/spinlock.h: In function `bit_spin_lock':
include/linux/spinlock.h:415: error: invalid type argument of `->'
include/linux/spinlock.h: In function `bit_spin_trylock':
include/linux/spinlock.h:438: error: invalid type argument of `->'
include/linux/spinlock.h: In function `bit_spin_unlock':
include/linux/spinlock.h:453: error: invalid type argument of `->'
include/linux/spinlock.h:453: error: `TIF_NEED_RESCHED' undeclared 
(first use in this function)
include/linux/spinlock.h: In function `bit_spin_is_locked':
include/linux/spinlock.h:464: error: invalid type argument of `->'
In file included from include/linux/list.h:7,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:15,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/prefetch.h:14:27: asm/processor.h: No such file or directory
include/linux/prefetch.h:15:23: asm/cache.h: No such file or directory
In file included from include/linux/list.h:7,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:15,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/prefetch.h: At top level:
include/linux/prefetch.h:58: error: syntax error before "size_t"
include/linux/prefetch.h:59: warning: function declaration isn't a prototype
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:15,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/list.h:8:24: asm/system.h: No such file or directory
In file included from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:15,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/list.h: In function `__list_add_rcu':
include/linux/list.h:94: warning: implicit declaration of function `smp_wmb'
In file included from include/linux/isdn/capilli.h:17,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:16,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/capi.h:15:23: asm/types.h: No such file or directory
In file included from include/linux/capi.h:16,
                  from include/linux/isdn/capilli.h:17,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:16,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/ioctl.h:4:23: asm/ioctl.h: No such file or directory
In file included from include/linux/isdn/capilli.h:17,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.h:16,
                  from 
/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.c:15:
include/linux/capi.h: At top level:
include/linux/capi.h:26: error: syntax error before "__u32"
include/linux/capi.h:26: warning: no semicolon at end of struct or union
include/linux/capi.h:27: warning: type defaults to `int' in declaration 
of `datablkcnt'
include/linux/capi.h:27: warning: data definition has no type or storage 
class
include/linux/capi.h:28: error: syntax error before "datablklen"
include/linux/capi.h:28: warning: type defaults to `int' in declaration 
of `datablklen'
include/linux/capi.h:28: warning: data definition has no type or storage 
class
include/linux/capi.h:29: warning: type defaults to `int' in declaration 
of `capi_register_params'
include/linux/capi.h:29: warning: data definition has no type or storage 
class
include/linux/capi.h:46: error: syntax error before "__u32"
include/linux/capi.h:46: warning: no semicolon at end of struct or union
include/linux/capi.h:47: warning: type defaults to `int' in declaration 
of `minorversion'
include/linux/capi.h:47: warning: data definition has no type or storage 
class
include/linux/capi.h:48: error: syntax error before "majormanuversion"
include/linux/capi.h:48: warning: type defaults to `int' in declaration 
of `majormanuversion'
include/linux/capi.h:48: warning: data definition has no type or storage 
class
include/linux/capi.h:49: error: syntax error before "minormanuversion"
include/linux/capi.h:49: warning: type defaults to `int' in declaration 
of `minormanuversion'
include/linux/capi.h:49: warning: data definition has no type or storage 
class
include/linux/capi.h:50: warning: type defaults to `int' in declaration 
of `capi_version'
include/linux/capi.h:50: warning: data definition has no type or storage 
class
include/linux/capi.h:66: error: syntax error before "__u16"
include/linux/capi.h:66: warning: no semicolon at end of struct or union
include/linux/capi.h:67: warning: type defaults to `int' in declaration 
of `nbchannel'
make[2]: *** 
[/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi/kcapi.o] 
Interrupt
make[1]: *** 
[_module_/root/asterisk/divas4linux-melware-3.0.e-106.622-1/kernel26/kernelcapi] 
Interrupt
make: *** [kernel] Interrupt



More information about the asterisk-users mailing list