pwc
[Top] [All Lists]

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

To: "Brynjar S. Larssen" <>
Subject: Re: [pwc] Ubuntu 8.10 vs. PCW vs. SPC900NC/00
From: "David N. Lombard" <>
Date: Mon, 24 Nov 2008 16:57:51 -0800
Brynjar S. Larssen wrote:
> 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.
> 
> 
This assumes you have the sources for your kernel, which would have 
system-specific links for the asm directory to an architecture-specific 
asm file, e.g., asm->asm-x86

I don't use Ubuntu, so I don't know how to get those files for your 
Ubuntu-provided kernel.

-- 
dnl
_______________________________________________
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