pwc
[Top] [All Lists]

Re: [pwc] Ubuntu 8.10 vs. PCW vs. SPC900NC/00

To: "David N. Lombard" <>
Subject: Re: [pwc] Ubuntu 8.10 vs. PCW vs. SPC900NC/00
From: "Brynjar S. Larssen" <>
Date: Mon, 24 Nov 2008 14:51:17 +0000
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

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU