I am running FC2 2.6.6 on a box at work. I need to install vloopback so that I can convert my firewire video output into a video 4 linux device. I'm doing this so that I can use the camera with VIC (which only supports V4L). Anyway, the vloopback module won't compile. I get all kinds of crazy errors. I have reinstalled glibc-headers, glibc-devel, gcc, gcc-c++, gcc-g77, gcc-gnat, gcc-java, kernel-source, gcc34, gcc34-java. I also got a few older C++ libraries off of the FC2 install disks for backward compatibility. These seemed to have fixed errors about missing headers. However, the compilation still generates all of this: Please help!

[root@localhost vloopback-0.91]# make
cc -D__KERNEL__ -DMODULE -DCONFIG_PROC_FS -DCONFIG_VIDEO_PROC_FS -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -c -o vloopback.o vloopback.c
In file included from /usr/include/linux/kernel.h:11,
from vloopback.c:68:
/usr/include/linux/linkage.h:5:25: asm/linkage.h: No such file or directory
In file included from /usr/include/linux/kernel.h:13,
from vloopback.c:68:
/usr/include/linux/types.h:18: error: conflicting types for `__kernel_dev_t'
/usr/include/asm/posix_types.h:10: error: previous declaration of `__kernel_dev_t'
/usr/include/linux/types.h:30: error: syntax error before "timer_t"
/usr/include/linux/types.h:31: error: syntax error before "clockid_t"
In file included from /usr/include/linux/kernel.h:15,
from vloopback.c:68:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!
In file included from vloopback.c:68:
/usr/include/linux/kernel.h:16:21: asm/bug.h: No such file or directory
In file included from /usr/include/linux/bitops.h:4,
from /usr/include/linux/thread_info.h:20,
from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/mmzone.h:8,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/mmzone.h:8,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/thread_info.h:21:29: asm/thread_info.h: No such file or directory
In file included from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/mmzone.h:8,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/thread_info.h: In function `set_thread_flag':
/usr/include/linux/thread_info.h:32: error: invalid type argument of `->'
/usr/include/linux/thread_info.h: In function `clear_thread_flag':
/usr/include/linux/thread_info.h:37: error: invalid type argument of `->'
/usr/include/linux/thread_info.h: In function `test_and_set_thread_flag':
/usr/include/linux/thread_info.h:42: error: invalid type argument of `->'
/usr/include/linux/thread_info.h: In function `test_and_clear_thread_flag':
/usr/include/linux/thread_info.h:47: error: invalid type argument of `->'
/usr/include/linux/thread_info.h: In function `test_thread_flag':
/usr/include/linux/thread_info.h:52: error: invalid type argument of `->'
/usr/include/linux/thread_info.h:52: error: invalid type argument of `->'
/usr/include/linux/thread_info.h: In function `set_ti_thread_flag':
/usr/include/linux/thread_info.h:57: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h: In function `clear_ti_thread_flag':
/usr/include/linux/thread_info.h:62: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h: In function `test_and_set_ti_thread_flag':
/usr/include/linux/thread_info.h:67: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h: In function `test_and_clear_ti_thread_flag':
/usr/include/linux/thread_info.h:72: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h: In function `test_ti_thread_flag':
/usr/include/linux/thread_info.h:77: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h:77: error: dereferencing pointer to incomplete type
/usr/include/linux/thread_info.h: In function `set_need_resched':
/usr/include/linux/thread_info.h:82: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/thread_info.h:82: error: (Each undeclared identifier is reported only once
/usr/include/linux/thread_info.h:82: error: for each function it appears in.)
/usr/include/linux/thread_info.h: In function `clear_need_resched':
/usr/include/linux/thread_info.h:87: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/linux/mmzone.h:14,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
In file included from /usr/include/linux/cpumask.h:5,
from /usr/include/linux/topology.h:30,
from /usr/include/linux/mmzone.h:333,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/bitmap.h: In function `bitmap_zero':
/usr/include/linux/bitmap.h:21: error: `BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_fill':
/usr/include/linux/bitmap.h:26: error: `BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_copy':
/usr/include/linux/bitmap.h:32: error: `BITS_PER_LONG' undeclared (first use in this function)
In file included from /usr/include/linux/topology.h:30,
from /usr/include/linux/mmzone.h:333,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/cpumask.h:6:25: asm/cpumask.h: No such file or directory
/usr/include/linux/cpumask.h:7:21: asm/bug.h: No such file or directory
In file included from /usr/include/linux/mmzone.h:333,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/topology.h:35:26: asm/topology.h: No such file or directory
In file included from /usr/include/linux/mmzone.h:333,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/topology.h: In function `__next_node_with_cpus':
/usr/include/linux/topology.h:50: error: `cpumask_t' undeclared (first use in this function)
/usr/include/linux/topology.h:50: error: syntax error before "__tmp__"
/usr/include/linux/topology.h:50: error: `__tmp__' undeclared (first use in this function)
In file included from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from vloopback.c:69:
/usr/include/linux/mmzone.h: At top level:
/usr/include/linux/mmzone.h:375: error: `BITS_PER_LONG' undeclared here (not in a function)
/usr/include/linux/mmzone.h:375: error: `BITS_PER_LONG' undeclared here (not in a function)
In file included from vloopback.c:70:
/usr/include/linux/vmalloc.h:28: error: syntax error before "pgprot_t"
/usr/include/linux/vmalloc.h:32: error: syntax error before "pgprot_t"
/usr/include/linux/vmalloc.h:40: error: syntax error before "pgprot_t"
vloopback.c:71:27: linux/wrapper.h: No such file or directory
In file included from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/timex.h:66:5: missing binary operator before token "("
/usr/include/linux/timex.h:68:7: missing binary operator before token "("
/usr/include/linux/timex.h:70:7: missing binary operator before token "("
/usr/include/linux/timex.h:72:7: missing binary operator before token "("
/usr/include/linux/timex.h:74:7: missing binary operator before token "("
/usr/include/linux/timex.h:76:7: missing binary operator before token "("
/usr/include/linux/timex.h:78:7: missing binary operator before token "("
/usr/include/linux/timex.h:81:3: #error You lose.
In file included from /usr/include/linux/timex.h:186,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/time.h:30:23: asm/div64.h: No such file or directory
/usr/include/linux/time.h:145:31: missing binary operator before token "("
/usr/include/linux/time.h:189:5: missing binary operator before token "("
/usr/include/linux/time.h:191:7: missing binary operator before token "("
/usr/include/linux/time.h:199:5: missing binary operator before token "("
/usr/include/linux/time.h:201:7: missing binary operator before token "("
In file included from /usr/include/linux/timex.h:186,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/time.h: In function `timespec_to_jiffies':
/usr/include/linux/time.h:225: error: `u64' undeclared (first use in this function)
/usr/include/linux/time.h:229: error: syntax error before "sec"
/usr/include/linux/time.h:229: error: `SHIFT_HZ' undeclared (first use in this function)
/usr/include/linux/time.h:229: error: syntax error before ')' token
/usr/include/linux/time.h: In function `jiffies_to_timespec':
/usr/include/linux/time.h:242: error: `u64' undeclared (first use in this function)
/usr/include/linux/time.h:242: error: syntax error before "nsec"
/usr/include/linux/time.h:243: error: syntax error before "result"
/usr/include/linux/time.h:243: error: `result' undeclared (first use in this function)
/usr/include/linux/time.h: In function `timeval_to_jiffies':
/usr/include/linux/time.h:264: error: `u64' undeclared (first use in this function)
/usr/include/linux/time.h:268: error: syntax error before "sec"
/usr/include/linux/time.h:268: error: `SHIFT_HZ' undeclared (first use in this function)
/usr/include/linux/time.h:268: error: syntax error before ')' token
/usr/include/linux/time.h: In function `jiffies_to_timeval':
/usr/include/linux/time.h:280: error: `u64' undeclared (first use in this function)
/usr/include/linux/time.h:280: error: syntax error before "nsec"
/usr/include/linux/time.h:281: error: syntax error before "result"
/usr/include/linux/time.h:281: error: `result' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:12,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:16: error: syntax error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: syntax error before "get_jiffies_64"
In file included from /usr/include/linux/signal.h:6,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:25,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/signal.h:26: error: syntax error before "sigset_t"
/usr/include/linux/signal.h:38: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigaddset':
/usr/include/linux/signal.h:40: error: `_sig' undeclared (first use in this function)
/usr/include/linux/signal.h:41: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:42: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:44: error: `_NSIG_BPW' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:47: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigdelset':
/usr/include/linux/signal.h:49: error: `_sig' undeclared (first use in this function)
/usr/include/linux/signal.h:50: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:51: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:53: error: `_NSIG_BPW' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:56: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigismember':
/usr/include/linux/signal.h:58: error: `_sig' undeclared (first use in this function)
/usr/include/linux/signal.h:59: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:60: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:62: error: `_NSIG_BPW' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:102: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigorsets':
/usr/include/linux/signal.h:102: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:102: error: `a' undeclared (first use in this function)
/usr/include/linux/signal.h:102: error: `b' undeclared (first use in this function)
/usr/include/linux/signal.h:102: error: `r' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:105: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigandsets':
/usr/include/linux/signal.h:105: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:105: error: `a' undeclared (first use in this function)
/usr/include/linux/signal.h:105: error: `b' undeclared (first use in this function)
/usr/include/linux/signal.h:105: error: `r' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:108: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `signandsets':
/usr/include/linux/signal.h:108: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `a' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `b' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `r' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:132: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `signotset':
/usr/include/linux/signal.h:132: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:132: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:137: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigemptyset':
/usr/include/linux/signal.h:139: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:141: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:141: error: `sigset_t' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:149: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigfillset':
/usr/include/linux/signal.h:151: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:153: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:153: error: `sigset_t' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:163: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigaddsetmask':
/usr/include/linux/signal.h:165: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:165: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:168: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigdelsetmask':
/usr/include/linux/signal.h:170: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:170: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:173: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigtestsetmask':
/usr/include/linux/signal.h:175: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:175: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:178: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `siginitset':
/usr/include/linux/signal.h:180: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:180: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h:181: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:190: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `siginitsetinv':
/usr/include/linux/signal.h:192: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:192: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h:193: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h: In function `init_sigpending':



|
|
|
V

/usr/include/linux/signal.h:105: error: `r' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:108: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `signandsets':
/usr/include/linux/signal.h:108: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `a' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `b' undeclared (first use in this function)
/usr/include/linux/signal.h:108: error: `r' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:132: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `signotset':
/usr/include/linux/signal.h:132: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:132: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:137: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigemptyset':
/usr/include/linux/signal.h:139: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:141: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:141: error: `sigset_t' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:149: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigfillset':
/usr/include/linux/signal.h:151: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h:153: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:153: error: `sigset_t' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:163: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigaddsetmask':
/usr/include/linux/signal.h:165: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:165: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:168: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigdelsetmask':
/usr/include/linux/signal.h:170: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:170: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:173: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `sigtestsetmask':
/usr/include/linux/signal.h:175: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:175: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:178: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `siginitset':
/usr/include/linux/signal.h:180: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:180: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h:181: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:190: error: syntax error before '*' token
/usr/include/linux/signal.h: In function `siginitsetinv':
/usr/include/linux/signal.h:192: error: `set' undeclared (first use in this function)
/usr/include/linux/signal.h:192: error: `mask' undeclared (first use in this function)
/usr/include/linux/signal.h:193: error: `_NSIG_WORDS' undeclared (first use in this function)
/usr/include/linux/signal.h: In function `init_sigpending':
/usr/include/linux/signal.h:206: error: dereferencing pointer to incomplete type/usr/include/linux/signal.h:207: error: dereferencing pointer to incomplete type/usr/include/linux/signal.h:207: error: dereferencing pointer to incomplete type/usr/include/linux/signal.h:207: error: dereferencing pointer to incomplete type/usr/include/linux/signal.h:207: error: dereferencing pointer to incomplete type/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:212: error: syntax error before "sigset_t"
In file included from /usr/include/linux/sched.h:31,
from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/percpu.h:7:24: asm/percpu.h: No such file or directory
In file included from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/sched.h:96: error: syntax error before "process_counts"
In file included from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/sched.h:156: error: syntax error before "nohz_cpu_mask"
In file included from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/sched.h:204: error: syntax error before "pgd_t"
/usr/include/linux/sched.h:217: error: `brk' redeclared as different kind of symbol
/usr/include/unistd.h:918: error: previous declaration of `brk'
/usr/include/linux/sched.h:224: error: syntax error before ':' token
/usr/include/linux/sched.h:228: error: syntax error before "cpu_vm_mask"
/usr/include/linux/sched.h:242: error: syntax error before '}' token
/usr/include/linux/sched.h:248: error: `_NSIG' undeclared here (not in a function)
/usr/include/linux/sched.h:266: error: field `shared_pending' has incomplete type
/usr/include/linux/sched.h:341: error: syntax error before "clockid_t"
/usr/include/linux/sched.h:353: error: syntax error before '}' token
/usr/include/linux/sched.h:408: error: syntax error before "cpumask_t"
/usr/include/linux/sched.h:423: error: syntax error before ':' token
/usr/include/linux/sched.h:451: error: syntax error before "start_time"
/usr/include/linux/sched.h:459: error: syntax error before ':' token
/usr/include/linux/sched.h:481: error: syntax error before "blocked"
/usr/include/linux/sched.h:488: error: syntax error before '*' token
/usr/include/linux/sched.h:499: error: syntax error before "parent_exec_id"
/usr/include/linux/sched.h:500: error: syntax error before "self_exec_id"
/usr/include/linux/sched.h:526: error: syntax error before '}' token
/usr/include/linux/sched.h: In function `process_group':
/usr/include/linux/sched.h:530: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:680: error: syntax error before "cpumask_t"
/usr/include/linux/sched.h:709: error: field `thread_info' has incomplete type
In file included from /usr/include/linux/module.h:10,
from vloopback.c:72:
/usr/include/linux/sched.h:737:25: asm/current.h: No such file or directory
/usr/include/linux/sched.h:765: error: syntax error before "sigset_t"
/usr/include/linux/sched.h:767: error: syntax error before "sigset_t"
/usr/include/linux/sched.h: In function `dequeue_signal_lock':
/usr/include/linux/sched.h:772: error: `tsk' undeclared (first use in this function)
/usr/include/linux/sched.h:773: error: `mask' undeclared (first use in this function)
/usr/include/linux/sched.h:773: error: `info' undeclared (first use in this function)
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:780: error: syntax error before "sigset_t"
/usr/include/linux/sched.h: In function `on_sig_stack':
/usr/include/linux/sched.h:815: error: `current' undeclared (first use in this function)
/usr/include/linux/sched.h: In function `sas_ss_flags':
/usr/include/linux/sched.h:820: error: `current' undeclared (first use in this function)
/usr/include/linux/sched.h: In function `mmdrop':
/usr/include/linux/sched.h:848: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:865: error: `exit_signal' redeclared as different kind of symbol
/usr/include/linux/sched.h:419: error: previous declaration of `exit_signal'
/usr/include/linux/sched.h: In function `thread_group_empty':
/usr/include/linux/sched.h:926: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `task_lock':
/usr/include/linux/sched.h:944: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `task_unlock':
/usr/include/linux/sched.h:949: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `get_task_mm':
/usr/include/linux/sched.h:963: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `set_tsk_thread_flag':
/usr/include/linux/sched.h:977: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `clear_tsk_thread_flag':
/usr/include/linux/sched.h:982: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_and_set_tsk_thread_flag':
/usr/include/linux/sched.h:987: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_and_clear_tsk_thread_flag':
/usr/include/linux/sched.h:992: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_tsk_thread_flag':
/usr/include/linux/sched.h:997: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `set_tsk_need_resched':
/usr/include/linux/sched.h:1002: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/sched.h: In function `clear_tsk_need_resched':
/usr/include/linux/sched.h:1007: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/sched.h: In function `signal_pending':
/usr/include/linux/sched.h:1012: error: `TIF_SIGPENDING' undeclared (first use in this function)
/usr/include/linux/sched.h: In function `need_resched':
/usr/include/linux/sched.h:1017: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/asm/user.h:5,
from /usr/include/asm/elf.h:9,
from /usr/include/linux/elf.h:5,
from /usr/include/linux/module.h:17,
from vloopback.c:72:
/usr/include/linux/ptrace.h: In function `ptrace_link':
/usr/include/linux/ptrace.h:93: error: dereferencing pointer to incomplete type
/usr/include/linux/ptrace.h: In function `ptrace_unlink':
/usr/include/linux/ptrace.h:98: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/module.h:19,
from vloopback.c:72:
/usr/include/linux/kobject.h: At top level:
/usr/include/linux/kobject.h:143: error: field `rwsem' has incomplete type
In file included from vloopback.c:72:
/usr/include/linux/module.h:21:23: asm/local.h: No such file or directory
In file included from /usr/include/linux/module.h:23,
from vloopback.c:72:
/usr/include/asm/module.h:4:2: warning: #warning Using kernel headers in userspace!
In file included from vloopback.c:72:
/usr/include/linux/module.h:201: error: syntax error before "local_t"
/usr/include/linux/module.h:271: error: field `arch' has incomplete type
/usr/include/linux/module.h:281: error: field `ref' has incomplete type
/usr/include/linux/module.h:298: error: syntax error before "Elf_Sym"
/usr/include/linux/module.h:309: error: syntax error before '}' token
/usr/include/linux/module.h: In function `module_is_live':
/usr/include/linux/module.h:316: error: dereferencing pointer to incomplete type/usr/include/linux/module.h: In function `__module_get':
/usr/include/linux/module.h:350: error: dereferencing pointer to incomplete type/usr/include/linux/module.h: In function `try_module_get':
/usr/include/linux/module.h:362: error: dereferencing pointer to incomplete type/usr/include/linux/module.h: In function `module_put':
/usr/include/linux/module.h:374: error: dereferencing pointer to incomplete type/usr/include/linux/module.h:377: error: dereferencing pointer to incomplete typeIn file included from /usr/include/linux/fs.h:14,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:26: error: syntax error before "old_encode_dev"
/usr/include/linux/kdev_t.h:31: error: syntax error before "val"
/usr/include/linux/kdev_t.h: In function `old_decode_dev':
/usr/include/linux/kdev_t.h:33: error: `val' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:41: error: syntax error before "new_encode_dev"
/usr/include/linux/kdev_t.h:48: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `new_decode_dev':
/usr/include/linux/kdev_t.h:50: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:60: error: syntax error before "huge_encode_dev"
/usr/include/linux/kdev_t.h:65: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `huge_decode_dev':
/usr/include/linux/kdev_t.h:67: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:75: error: syntax error before "sysv_encode_dev"
/usr/include/linux/kdev_t.h:80: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `sysv_major':
/usr/include/linux/kdev_t.h:82: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:85: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `sysv_minor':
/usr/include/linux/kdev_t.h:87: error: `dev' undeclared (first use in this function)
In file included from /usr/include/linux/dcache.h:10,
from /usr/include/linux/fs.h:16,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/rcupdate.h: At top level:
/usr/include/linux/rcupdate.h:71: error: syntax error before "cpumask_t"
/usr/include/linux/rcupdate.h:101: error: syntax error before "rcu_data"
/usr/include/linux/rcupdate.h: In function `rcu_pending':
/usr/include/linux/rcupdate.h:114: error: `rcu_data' undeclared (first use in this function)
/usr/include/linux/rcupdate.h:114: error: request for member `curlist' in something not a structure or union
/usr/include/linux/rcupdate.h:115: error: request for member `batch' in something not a structure or union
/usr/include/linux/rcupdate.h:115: error: invalid use of undefined type `struct rcu_ctrlblk'
/usr/include/linux/rcupdate.h:116: error: request for member `curlist' in something not a structure or union
/usr/include/linux/rcupdate.h:117: error: request for member `nxtlist' in something not a structure or union
/usr/include/linux/rcupdate.h:118: error: invalid use of undefined type `struct rcu_ctrlblk'
In file included from /usr/include/linux/fs.h:16,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/dcache.h:11:21: asm/bug.h: No such file or directory
In file included from /usr/include/linux/fs.h:287,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/quota.h: At top level:
/usr/include/linux/quota.h:216: error: field `dq_lock' has incomplete type
/usr/include/linux/quota.h:286: error: field `dqio_sem' has incomplete type
/usr/include/linux/quota.h:287: error: field `dqonoff_sem' has incomplete type
/usr/include/linux/quota.h:288: error: field `dqptr_sem' has incomplete type
In file included from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/fs.h:349: error: field `bd_sem' has incomplete type
/usr/include/linux/fs.h:350: error: field `bd_mount_sem' has incomplete type
/usr/include/linux/fs.h:432: error: field `i_sem' has incomplete type
/usr/include/linux/fs.h:433: error: field `i_alloc_sem' has incomplete type
In file included from /usr/include/linux/nfs.h:10,
from /usr/include/linux/nfs_fs_i.h:6,
from /usr/include/linux/fs.h:622,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/sunrpc/msg_prot.h:15: error: syntax error before "rpc_authflavor_t"
In file included from /usr/include/linux/fs.h:622,
from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/nfs_fs_i.h:12: error: syntax error before "u32"
/usr/include/linux/nfs_fs_i.h:15: error: syntax error before '}' token
In file included from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/fs.h:645: error: field `nfs_fl' has incomplete type
In file included from /usr/include/linux/videodev2.h:902,
from /usr/include/linux/videodev.h:8,
from vloopback.c:74:
/usr/include/linux/fs.h:739: error: field `s_umount' has incomplete type
/usr/include/linux/fs.h:740: error: field `s_lock' has incomplete type
/usr/include/linux/fs.h:767: error: field `s_vfs_rename_sem' has incomplete typeIn file included from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/mm.h:29:25: asm/pgtable.h: No such file or directory
In file included from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/mm.h:61: error: syntax error before "pgprot_t"
/usr/include/linux/mm.h:103: error: syntax error before '}' token
/usr/include/linux/mm.h:158: error: syntax error before "protection_map"
/usr/include/linux/mm.h:170: error: syntax error before "pgprot_t"
In file included from /usr/include/linux/mm.h:237,
from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/page-flags.h:10:25: asm/pgtable.h: No such file or directory
In file included from /usr/include/linux/mm.h:237,
from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/page-flags.h:138: error: syntax error before "page_states"
In file included from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/mm.h:522: error: syntax error before "pgprot_t"
/usr/include/linux/mm.h:533: error: syntax error before '*' token
/usr/include/linux/mm.h:533: error: syntax error before "pgd_t"
/usr/include/linux/mm.h:534: error: syntax error before '*' token
/usr/include/linux/mm.h:534: error: syntax error before "pmd_t"
/usr/include/linux/mm.h:535: error: syntax error before '*' token
/usr/include/linux/mm.h:535: error: syntax error before "pmd_t"
/usr/include/linux/mm.h:536: error: syntax error before "pgprot_t"
/usr/include/linux/mm.h:537: error: syntax error before "pgprot_t"
/usr/include/linux/mm.h:582: error: syntax error before '*' token
/usr/include/linux/mm.h:582: error: syntax error before "pgd_t"
/usr/include/linux/mm.h: In function `pmd_alloc':
/usr/include/linux/mm.h:584: error: `pgd' undeclared (first use in this function)
/usr/include/linux/mm.h:585: error: `address' undeclared (first use in this function)
/usr/include/linux/mm.h: In function `vma_prio_tree_init':
/usr/include/linux/mm.h:602: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h:603: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h:604: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h:605: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h: In function `find_vma_intersection':
/usr/include/linux/mm.h:696: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h: In function `vma_pages':
/usr/include/linux/mm.h:703: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h:703: error: dereferencing pointer to incomplete type
/usr/include/linux/mm.h: At top level:
/usr/include/linux/mm.h:716: error: syntax error before "pgprot_t"
In file included from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/poll.h:11:25: asm/uaccess.h: No such file or directory
In file included from /usr/include/linux/videodev.h:12,
from vloopback.c:74:
/usr/include/linux/poll.h: In function `get_fd_set':
/usr/include/linux/poll.h:75: error: `VERIFY_WRITE' undeclared (first use in this function)
In file included from /usr/include/linux/device.h:21,
from /usr/include/linux/videodev.h:14,
from vloopback.c:74:
/usr/include/linux/pm.h: At top level:
/usr/include/linux/pm.h:214: error: syntax error before "u32"
/usr/include/linux/pm.h:215: error: syntax error before "state"
/usr/include/linux/pm.h:216: error: syntax error before "state"
/usr/include/linux/pm.h:217: error: syntax error before "state"
/usr/include/linux/pm.h:222: error: syntax error before "state"
/usr/include/linux/pm.h:232: error: syntax error before "u32"
/usr/include/linux/pm.h:235: error: syntax error before '*' token
/usr/include/linux/pm.h:240: error: syntax error before '}' token
/usr/include/linux/pm.h:244: error: syntax error before "state"
/usr/include/linux/pm.h:245: error: syntax error before "state"
In file included from /usr/include/linux/videodev.h:14,
from vloopback.c:74:
/usr/include/linux/device.h:61: error: syntax error before "u32"
/usr/include/linux/device.h:106: error: field `unload_sem' has incomplete type
/usr/include/linux/device.h:113: error: syntax error before "u32"
/usr/include/linux/device.h:114: error: syntax error before "u32"
/usr/include/linux/device.h:276: error: field `power' has incomplete type
/usr/include/linux/device.h:277: error: syntax error before "u32"
/usr/include/linux/device.h:282: error: conflicting types for `saved_state'
/usr/include/linux/pm.h:235: error: previous declaration of `saved_state'
/usr/include/linux/device.h:283: error: syntax error before "detach_state"
/usr/include/linux/device.h:286: error: syntax error before '*' token
/usr/include/linux/device.h:287: error: syntax error before "coherent_dma_mask"
/usr/include/linux/device.h:296: error: syntax error before '}' token
/usr/include/linux/device.h: In function `list_to_dev':
/usr/include/linux/device.h:301: error: dereferencing pointer to incomplete type/usr/include/linux/device.h:301: error: dereferencing pointer to incomplete type/usr/include/linux/device.h: In function `dev_get_drvdata':
/usr/include/linux/device.h:307: error: dereferencing pointer to incomplete type/usr/include/linux/device.h: In function `dev_set_drvdata':
/usr/include/linux/device.h:313: error: dereferencing pointer to incomplete type/usr/include/linux/device.h: At top level:
/usr/include/linux/device.h:379: error: syntax error before "u32"
/usr/include/linux/device.h:380: error: `dev' used prior to declaration
/usr/include/linux/device.h:381: error: syntax error before "num_resources"
/usr/include/linux/device.h:383: error: syntax error before '}' token
In file included from vloopback.c:74:
/usr/include/linux/videodev.h:43: error: field `lock' has incomplete type
vloopback.c:120: error: field `lock' has incomplete type
vloopback.c:163: error: syntax error before '*' token
vloopback.c:164: warning: function declaration isn't a prototype
vloopback.c: In function `uvirt_to_kva':
vloopback.c:166: error: `pmd_t' undeclared (first use in this function)
vloopback.c:166: error: `pmd' undeclared (first use in this function)
vloopback.c:167: error: `pte_t' undeclared (first use in this function)
vloopback.c:167: error: `ptep' undeclared (first use in this function)
vloopback.c:167: error: `pte' undeclared (first use in this function)
vloopback.c:167: warning: left-hand operand of comma expression has no effect
vloopback.c:169: error: `pgd' undeclared (first use in this function)
vloopback.c:170: error: `adr' undeclared (first use in this function)
vloopback.c:171: warning: implicit declaration of function `pmd_none'
vloopback.c:172: warning: implicit declaration of function `pte_offset'
vloopback.c:174: warning: implicit declaration of function `pte_present'
vloopback.c:175: warning: implicit declaration of function `pte_page'
vloopback.c:175: warning: passing arg 1 of `page_address' makes pointer from integer without a cast
vloopback.c: In function `kvirt_to_pa':
vloopback.c:192: warning: implicit declaration of function `VMALLOC_VMADDR'
vloopback.c:193: warning: implicit declaration of function `pgd_offset_k'
vloopback.c:194: warning: implicit declaration of function `__pa'
vloopback.c: In function `rvmalloc':
vloopback.c:215: warning: implicit declaration of function `mem_map_reserve'
vloopback.c:215: warning: implicit declaration of function `virt_to_page'
vloopback.c: In function `rvfree':
vloopback.c:239: warning: implicit declaration of function `mem_map_unreserve'
vloopback.c: In function `fake_ioctl':
vloopback.c:262: warning: `interruptible_sleep_on' is deprecated (declared at /usr/include/linux/wait.h:231)
vloopback.c: In function `vloopback_open':
vloopback.c:306: error: `current' undeclared (first use in this function)
vloopback.c:308: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
vloopback.c: In function `vloopback_close':
vloopback.c:349: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
vloopback.c: In function `vloopback_write':
vloopback.c:388: warning: implicit declaration of function `copy_from_user'
vloopback.c: In function `vloopback_read':
vloopback.c:413: warning: implicit declaration of function `copy_to_user'
vloopback.c:449: warning: `interruptible_sleep_on' is deprecated (declared at /usr/include/linux/wait.h:231)
vloopback.c: In function `vloopback_mmap':
vloopback.c:503: error: `PAGE_SHARED' undeclared (first use in this function)
vloopback.c: In function `vloopback_ioctl':
vloopback.c:535: warning: `interruptible_sleep_on' is deprecated (declared at /usr/include/linux/wait.h:231)
vloopback.c:787: warning: `interruptible_sleep_on' is deprecated (declared at /usr/include/linux/wait.h:231)
vloopback.c: At top level:
vloopback.c:872: error: unknown field `open' specified in initializer
vloopback.c:872: warning: initialization makes integer from pointer without a cast
vloopback.c:873: error: unknown field `close' specified in initializer
vloopback.c:873: warning: initialization makes integer from pointer without a cast
vloopback.c:874: error: unknown field `read' specified in initializer
vloopback.c:874: warning: initialization makes integer from pointer without a cast
vloopback.c:875: error: unknown field `write' specified in initializer
vloopback.c:875: warning: initialization from incompatible pointer type
vloopback.c:876: error: unknown field `poll' specified in initializer
vloopback.c:876: warning: initialization from incompatible pointer type
vloopback.c:877: error: unknown field `ioctl' specified in initializer
vloopback.c:877: warning: initialization from incompatible pointer type
vloopback.c:878: error: unknown field `mmap' specified in initializer
vloopback.c:879: error: unknown field `initialize' specified in initializer
vloopback.c:879: warning: initialization makes integer from pointer without a cast
vloopback.c:880: confused by earlier errors, bailing out
make: *** [vloopback.o] Error 1