Header files missing

Bug #53892 reported by Soren Hansen
12
Affects Status Importance Assigned to Milestone
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

channels/chan_phone.c in asterisk tries to include it. For now, I've just commented it out in the offending source file in asterisk (linux/compiler.h is just an empty file anyway), but I expect other packages might do the same.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.

Did you install package linux-kernel-headers?

Changed in linux-kernel-headers:
status: Unconfirmed → Needs Info
Revision history for this message
Soren Hansen (soren) wrote :

Not anymore (as it now conflicts with linux-libc-dev which is needed by build-essential), but of course I had when I reported the bug since build-essential used to depend on it (by way of libc6-dev).

The issue exists in linux-libc-dev too.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Laurent Bigonville reported that also linux/config.h and linux/autoconf.h are missing (from bug #60650).

Changed in linux-kernel-headers:
status: Needs Info → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Ben Collins suggests to install linux-headers-2.6.17-<flavour> package.

Revision history for this message
Ben Collins (ben-collins) wrote :

The gist of this is, if you are trying to access files like config.h, autoconf.h and compiler.h, you are getting into kernel internals. The linux-libc-dev package (formerely linux-kernel-headers) is not meant for that. Even if these files were included they would be useless, since they do not guarantee to reflect the right values for the running kernel.

Use the linux-headers-2.6.17-<flavour> package for these sorts of things (or just linux-headers-2.6.17 if you need generic values).

Changed in linux-kernel-headers:
status: Confirmed → Rejected
Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 53892] Re: Header files missing

On Tue, Sep 19, 2006 at 07:54:31PM -0000, Ben Collins wrote:
> The gist of this is, if you are trying to access files like config.h,
> autoconf.h and compiler.h, you are getting into kernel internals. The
> linux-libc-dev package (formerely linux-kernel-headers) is not meant for
> that. Even if these files were included they would be useless, since
> they do not guarantee to reflect the right values for the running
> kernel.

Well, in the case of compiler.h, it's just an empty file on an
up-to-date Dapper install. Anyhow, it's clearly your call. I'll just
leave it commented out in the asterisk package. Thanks for your time.

Revision history for this message
Ben Collins (ben-collins) wrote : Re: [Bug 53892] Re: [Bug 53892] Re: Header files missing

On Tue, 2006-09-19 at 20:10 +0000, Soren Hansen wrote:
> On Tue, Sep 19, 2006 at 07:54:31PM -0000, Ben Collins wrote:
> > The gist of this is, if you are trying to access files like config.h,
> > autoconf.h and compiler.h, you are getting into kernel internals. The
> > linux-libc-dev package (formerely linux-kernel-headers) is not meant for
> > that. Even if these files were included they would be useless, since
> > they do not guarantee to reflect the right values for the running
> > kernel.
>
> Well, in the case of compiler.h, it's just an empty file on an
> up-to-date Dapper install. Anyhow, it's clearly your call. I'll just
> leave it commented out in the asterisk package. Thanks for your time.

Basically, if the package compiles without these includes, then it
didn't need them to begin with :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.