mailing list of musl libc
 help / color / mirror / code / Atom feed
* linux/vt.h
@ 2015-10-01 20:02 Jorge Almeida
  2015-10-01 20:15 ` linux/vt.h Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Jorge Almeida @ 2015-10-01 20:02 UTC (permalink / raw)
  To: musl

Greetings

<sys/vt.h> includes <linux/vt.h>, but there is no such thing

TIA

Jorge Almeida


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux/vt.h
  2015-10-01 20:02 linux/vt.h Jorge Almeida
@ 2015-10-01 20:15 ` Rich Felker
  2015-10-01 20:51   ` linux/vt.h Jorge Almeida
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Felker @ 2015-10-01 20:15 UTC (permalink / raw)
  To: musl

On Thu, Oct 01, 2015 at 01:02:51PM -0700, Jorge Almeida wrote:
> Greetings
> 
> <sys/vt.h> includes <linux/vt.h>, but there is no such thing

There are a couple of headers like this that are questionable to have
in musl at all, but it seemed like the most sensible place to have
them. I think sys/soundcard.h and sys/kd.h are also like this. These
are headers that really have nothing to do with libc or userspace
stuff; they just define ioctl interfaces to the Linux kernel. But
for various historical reasons they were in sys/ rather than linux/
where the kernel headers would go.

In order to use these, you need to have kernel headers installed.
There are several ways to get them, but the easiest is the way
provided by the kernel:

https://www.kernel.org/doc/Documentation/kbuild/headers_install.txt

You should point INSTALL_HDR_PATH to the location of the musl include
dir if you use this method.

Alternatively if you don't want to download and extract the whole
kernel source, Sabotage Linux has a working kernels headers package;
you can simply download from their mirrors listed in the package file:

https://github.com/sabotage-linux/sabotage/blob/master/pkg/kernel-headers

Hope this helps.

BTW once the wiki is back up we should put this on the FAQ if it's not
already there..

Rich


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux/vt.h
  2015-10-01 20:15 ` linux/vt.h Rich Felker
@ 2015-10-01 20:51   ` Jorge Almeida
  0 siblings, 0 replies; 4+ messages in thread
From: Jorge Almeida @ 2015-10-01 20:51 UTC (permalink / raw)
  To: musl

On Thu, Oct 1, 2015 at 1:15 PM, Rich Felker <dalias@libc.org> wrote:
> On Thu, Oct 01, 2015 at 01:02:51PM -0700, Jorge Almeida wrote:
>> Greetings
>>
>> <sys/vt.h> includes <linux/vt.h>, but there is no such thing
>

>
> In order to use these, you need to have kernel headers installed.
> There are several ways to get them, but the easiest is the way
> provided by the kernel:
>
> https://www.kernel.org/doc/Documentation/kbuild/headers_install.txt
>
> You should point INSTALL_HDR_PATH to the location of the musl include
> dir if you use this method.
>
Done (with success)
>
> BTW once the wiki is back up we should put this on the FAQ if it's not
> already there..

Good idea (this message is a keeper)

Thanks

Jorge


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux/vt.h
@ 2015-10-03 12:27 vlse
  0 siblings, 0 replies; 4+ messages in thread
From: vlse @ 2015-10-03 12:27 UTC (permalink / raw)
  To: musl

>In order to use these, you need to have kernel headers installed.
>There are several ways to get them, but the easiest is the way
>provided by the kernel:

>https://www.kernel.org/doc/Documentation/kbuild/headers_install.txt

But the vanilla kernel headers/source are not properly adapted for musl; is'nt it. Or has it changed with musl and we can use the vanilla kernel sources from www.kernel.org.

But then why do sabotage uses modified/adapted kernel headers. Please give some details about proper/correct way
to do it.

vlse

http://www.veera.biz



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-03 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-01 20:02 linux/vt.h Jorge Almeida
2015-10-01 20:15 ` linux/vt.h Rich Felker
2015-10-01 20:51   ` linux/vt.h Jorge Almeida
2015-10-03 12:27 linux/vt.h vlse

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).