On Sun, 2008-11-23 at 19:02 -0800, David N. Lombard wrote:
> > make
> > 
> > make -C /lib/modules/2.6.27-7-generic/build
> > SUBDIRS=/home/bsl/pwc-v4l2-20081120-042701 modules
> > make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
> >   CC [M]  /home/bsl/pwc-v4l2-20081120-042701/pwc-if.o
> > In file included from /home/bsl/pwc-v4l2-20081120-042701/pwc-if.c:69:
> > /home/bsl/pwc-v4l2-20081120-042701/pwc.h:35:27: error: asm/semaphore.h:
> > No such file or directory
> 
> asm/semaphore.h is the name of the file in the kernel build tree.  Are 
> you building this in the tree or outside?

David, to be perfectly honest I do not know; this is my first ever
attempt at compiling a driver.

I got this far following the "Kernel 2.6 + module" instructions in
http://www.saillard.org/linux/pwc/INSTALL.en (and as you can see I'm
using the pwc-v4l2-20081120-042701 snapshot.)

I'm guessing the answer is "outside" though, judging by this line:
"make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'" 

Looking in that path, and the directories
 /usr/src/linux-headers-2.6.27-7-generic/include/asm/
 /usr/src/linux-headers-2.6.27-7-generic/include/linux/
the former has no semaphore.h, but the latter does.

Again guessing, the kernel build tree is in /lib/modules/, and the
situation is the same over there:
 /lib/modules/2.6.27-7-generic/build/include/linux/ has semaphore.h,
 /lib/modules/2.6.27-7-generic/build/include/asm/ does not have it.


-- 
Cheers,

Brynjar


_______________________________________________
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to