ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Bind 9.3.6-alt5 для 2.4 не собрался
Date: Wed, 26 Aug 2009 14:26:25 +0300
Message-ID: <cc557aab0908260426r1204ae3vaa47fe5fbdd7a7a@mail.gmail.com> (raw)
In-Reply-To: <20090826111644.GA17986@wo.int.altlinux.org>

2009/8/26 Dmitry V. Levin <ldv@altlinux.org>:
> On Wed, Aug 26, 2009 at 01:24:03PM +0300, Kirill A. Shutemov wrote:
>> 2009/8/26 Dmitry V. Levin <ldv@altlinux.org>:
>> > On Wed, Aug 26, 2009 at 01:13:55PM +0500, Sergey Y. Afonin wrote:
>> >> Приветствую.
>> >>
>> >> Хотел себе собрать апдейт для 2.4, но возникла проблема:
>> >>
>> >> gcc -I/home/asy/RPM/BUILD/bind-9.3.6 -I./include -I./../nothreads/include -I../include -I./../include -I./.. -D_GNU_SOURCE -pipe -Wall -O2 -march=i686 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c resource.c  -fPIC -DPIC -o .libs/resource.o
>> >> In file included from /usr/include/linux/config.h:4,
>> >>                  from /usr/include/linux/fs.h:9,
>> >>                  from resource.c:32:
>> >> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
>> >>
>> >> 9.3.5 ещё собирался...
>> >
>> > В bind-9.3.5-P2 файл lib/isc/unix/resource.c заметно изменился, грубо говоря,
>> > добавилась поддержка большого числа дескрипторов, для чего в этом файле
>> > появилось следующее:
>> >
>> > #ifdef __linux__
>> > #include <linux/fs.h>  /* To get the large NR_OPEN. */
>> > #endif
>>
>> Эта конструкция не работает. С 2.6.25 <linux/fs.h> не предоставляет NR_OPEN.
>> Нужно использовать sysconf(_SC_OPEN_MAX).
>
> Ну да, на эту тему у нас есть bind-9.3.6-alt-nofile.patch
> Только здесь речь идёт о бэкпорте в ALM2.4, в котором гораздо более
> древний linux/fs.h

Для 2.4, думаю, лучше воспользоваться <linux/limits.h>. В <linux/fs.h>
определяется
какой-то нереально большой NR_OPEN -- 2^20.

      parent reply	other threads:[~2009-08-26 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26  8:13 Sergey Y. Afonin
2009-08-26  8:28 ` Dmitry V. Levin
2009-08-26 10:24   ` Kirill A. Shutemov
2009-08-26 11:16     ` Dmitry V. Levin
2009-08-26 11:18       ` Dmitry V. Levin
2009-08-26 11:26       ` Kirill A. Shutemov [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=cc557aab0908260426r1204ae3vaa47fe5fbdd7a7a@mail.gmail.com \
    --to=kirill@shutemov.name \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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