Sander Sweers wrote:
> On wo, 2008-07-02 at 23:28 -0700, Dylan wrote:
>> There is now a bugzilla entry at Gentoo for this particular error.
>>
>> http://bugs.gentoo.org/show_bug.cgi?id=230089
>>
>> ivtv.h IS included and installed by the gentoo-sources package. I have
>> checked this several times.
> 
> I just checked this in more detail and ivtv is not looking
> in /usr/src/linux but in /usr/include/linux (as it should). However it
> should be looking in ivtv-1.1.0/utils/linux instead. I am assuming this
> is because the official kernel headers do not install ivtv*.h (yet?).
> 
>> However, the gentoo-sources package installs all of its files files in
>> /usr/src/linux-{version}, whereas the problematic "#include
>> <linux/ivtv.h>" line requires /usr/include/linux/ivtv.h. The files
>> that live in /usr/include are installed by the linux-headers package,
>> NOT the kernel sources.
> 
> And linux-headers do not install ivtv.h and AFAIK this should be for all
> distro's.
> 
>> I see that i2c-drivers/Makefile uses the line "KDIR ?=
>> /lib/modules/$(KVER)/build" to reference(?) the headers from the
>> gentoo-sources package whereas utils/Makefile does not.
> 
> This is only needed to build out of tree kernel modules not userspace
> apps.
> 
>> So there's two^wthree^wfour possible bugs, either
>> (1) the bug is in the current linux-header package. It is not
>> including and installing ivtv.h as it should. Or
> 
> AFAIK this is decided by the upstream kernel maintainers not Gentoo.
> 
>> (2) utils/Makefile should use KDIR and this will #include the headers
>> from the installed sources package instead of from /usr/include
> 
> Not a problem, see above.
> 
>> (4) ivtv.h is actually included with the ivtv-1.1.0 sourcecode, and
>> changing <linux/ivtv.h> to "linux/ivtv.h" fixes things.
> 
> This to me sounds like the real problem and is fixing the compilation
> problem.
> 
> Hans, Can you have a look at attached patch and confirm this it correct?
> 
> Greets
> Sander
> 
> PS for gentoo users/devs: I have a stale ivtv.h in /usr/include/linux
> from what I assume and older install of ivtv. I suspect the gentoo tv
> herd also have this stale file and not noticed this yet.
> 
> infirit utils # equery b /usr/include/linux/ivtv.h 
> [ Searching for file(s) /usr/include/linux/ivtv.h in *... ]
> 
> Gives no package.... :(
> 
that is intresting, i did an equery on my systems for that ivtv file i get
[ Searching for file(s) /usr/include/linux/ivtv.h in *... ]
media-tv/ivtv-1.0.3-r1 (/usr/include/linux/ivtv.h)

try a different (step down or step up) kernel/ivtv version could be bugs 
in the ebuild not putting the ivtv.h file where its needed, wouldnt be a 
first.

on one of my systems i have the 2.6.25 kernel i had a 2.6.24 kernel and 
i had to mod the ivtv-1.0.3 ebuild to build on the kernel (there was no 
package for 24 at the time) and it worked then, so that would be 
something else you could try, all you would need to do is edit
/usr/portage/media-tv/ivtv/ivtv-1.0.3-r2.ebuild
and change:
      if ! ( kernel_is 2 6 22 || kernel_is 2 6 23 );
to:  if ! ( kernel_is 2 6 22 || kernel_is 2 6 23 || kernel_is 2 6 24 );
then run #ebuild /usr/portage/media-tv/ivtv/ivtv-1.0.3-r2.ebuild digest
and then emerge =ivtv-1.0.3-r2
if you want the changes not to be over written, make a directory called 
media-tv in your overlay, and copy the ivtv folder to there and work 
from there and edit accordingly.

at the time the package was listed at for 22 kernels and up and there 
were no newer packages. after adding support for 24 it worked fine. the 
ivtv-1.1.0+ packages could be broken, they are still masked anyway.

Kevin
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to