Linux-DVB-1.01 fails compile with " expected identifier before numeric constant" in /usr/src/linux/include/linux/stddef.h

Kent Fredric kentfredric at gmail.com
Sun Jun 14 11:08:40 CEST 2015


On 14 June 2015 at 16:59, Marc Lehmann <schmorp at schmorp.de> wrote:
> You should - you are mixing them, though, not Linux-DVB, and it's not just
> not necessary, but probably the source of your problems.
>

When I said "something you do", by that I mean I was slightly confused
about the purpose of this in Makefile.PL:

https://metacpan.org/source/MLEHMANN/Linux-DVB-1.01/Makefile.PL#L11

  INC => "-I/usr/src/linux/include",

When I saw that I mentally glossed over it and figured "You need to
link against the kernel itself for some reason, not just use system
header files"

>> make additional preparation/sanity check steps to ensure this works. (
>> I am half-assed packaging it for Gentoo, but not in an official
>> capacity  )
>
> Gentoo is your problem - in fact, if you use gentoo and report a bug, you
> have a close to 100% chance of simply having a hosed system (definitely
> the case here), to the point where many projects refuse to even touch any
> problem reported by a gentoo user.
>
> Gentoo is not for beginners, it's a very complicated distribution, so if you
> don't feel comfortable fixing your installation, you should switch to
> something that's easier to manage (debian, fedora, ubuntu...).

In this context, I kinda work with/for Gentoo.  So I do try to
eliminate any bugs that upstream are inherently creating where
possible. :)

> I'm not going to debug your system setup, but it indeed looks as if you
> or somebody else simply copied or linked kernel header files blindly to
> /usr/include, which is not going to work.

Right. I'm going to try get a hold of the people who package for
things that use kernel bits and see if they can give me some
additional context.

Thanks :)

-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL



More information about the perl mailing list