Random Errors

C compiler cannot create executables
Fix this by installing the following:

apt-get install libc6-dev

 

If you need to install headers for your version of the kernel, you can find the appropriate command in apt-get by using:

apt-cache search linux-headers-$(uname -r)

Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

This is fixed with the following:

echo 0 | sudo tee /proc/sys/vm/vdso_enabled

 

Sentech driver - error: expected expression before "struct"

I got this error when compiling the Sentech USB Camera driver for Linux.  I found that I had to modify the source code (SentechTUSB.c) and add the following to it:

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
#define list_first_entry(ptr, type, member) \
        list_entry((ptr)->next, type, member)
#endif

It then compiled properly.