From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Bind 9.3.6-alt5 для 2.4 не собрался
Date: Wed, 26 Aug 2009 12:28:08 +0400
Message-ID: <20090826082808.GH20406@wo.int.altlinux.org> (raw)
In-Reply-To: <200908261313.55749.asy@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
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.4 достаточно заменить эти 3 строки на
#define NR_OPEN число, соответствующее вашей системе
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-08-26 8:28 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 [this message]
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
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=20090826082808.GH20406@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--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