ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel-kernel@altlinux.ru
Subject: Re: [d-kernel] Invalid kernel header included in userspace
Date: Mon, 8 Dec 2003 15:08:28 +0300
Message-ID: <20031208120828.GB13842@master.mivlgu.local> (raw)
In-Reply-To: <20031208144618.0f48b4f7.bga@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

On Mon, Dec 08, 2003 at 02:46:18PM +0300, Grigory Batalov wrote:
>   У меня есть утилита tpctlir из пакета tpctl, включающая
> и выключающая инфракрасный порт на некоторых ноутбуках IBM
> ThinkPad (600-х серий). При сборке в хэшере выходит на неё
> ругань:
> 
> <skip>
> cc -pipe -Wall -O2 -march=i586 -mcpu=i686 -Wcast-align -Wstrict-prototypes -o tpctlir tpctlir.c
> In file included from /usr/include/linux/config.h:4,
>                  from /usr/include/asm/system.h:4,
>                  from tpctlir.c:1:
> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
> <skip>
> 
>   Хотя в обычной системе она собирается. Я проверил, конечным
> в цепочке является файл /var/run/kernel/autoconf.h из пакета
> kernel-headers-common-1.1.3-alt1. В дереве хэшера этого файла
> нет, и указание в Buildreq соответствующего пакета не помогает.
> Наверное, он специально блокируется.
> 
>   Исходник tpctlir прилагаю. Похоже, весь сыр-бор разгорелся
> из-за функций cli() и sti(). Прошу совета, как, всё-таки,
> собрать эту программу в пакет.

Какой ужас - cli() в userspace...

В принципе можно посчитать эту программу ядернозависимой и потребовать
установки настоящих заголовков ядра с помощью BuildRequires:
kernel-headers-std.

Или можно спереть определения __cli() и __sti() из asm/system.h (просто
cli() и sti() не сработают в случае CONFIG_SMP).  А inb/outb есть в
sys/io.h.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-12-08 12:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-08 11:46 Grigory Batalov
2003-12-08 12:08 ` Sergey Vlasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031208120828.GB13842@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=devel-kernel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git