[gobolinux-users] Linux headers question

Jonas Karlsson jonka750 at student.liu.se
Thu Mar 9 23:01:57 GMT 2006


On Thu, 09 Mar 2006 23:42:13 +0100, Hisham Muhammad <hisham.hm at gmail.com>  
wrote:

> On 3/9/06, Lucas Correia Villa Real <lucasvr at gobolinux.org> wrote:
>> On Thursday 09 March 2006 13:19, V wrote:
>> > Hi,
>> >
>> > For those programs that have no Makefile and do
>> > something like
>> >
>> > #include <linux/some_header>
>> >
>> > is there an easy way to handle this (i.e. place a
>> > symlink somewhere)?
>> >
>> > I know that those programs using configure script
>> > should work, but some programs/packages are lacking
>> > them.
>>
>> How is its compilation process? Do you have an example of such program?  
>> The
>> best way is, of course, to edit the Makefile (or similar).
>
> I must be missing something... is there anything wrong with #include
> <linux/some_header>?  Shouldn't it just pick
> /System/Links/Headers/linux? Glibc and many other programs do that. Or
> does the program assume that /usr/include/linux contains the headers
> of the _currently running kernel_? (In that case, the program is buggy
> -- AFAIK, at the very least it should use /lib/modules/`uname
> -r`/build to find kernel sources).
>

Unfortunatly it's not that unusual for programs to assume  
/usr/include/linux.
Maybe that's the case here?

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the gobolinux-users mailing list