From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] php5-5.2.7.20080627-alt1: i586 rebuild failed [1]
Date: Mon, 1 Sep 2008 20:59:48 +0400
Message-ID: <20080901165948.GA3554@wo.int.altlinux.org> (raw)
In-Reply-To: <48BC18E8.7090602@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
On Mon, Sep 01, 2008 at 08:31:36PM +0400, Alexey Gladkov wrote:
> Andrey Rahmatullin wrote:
> >On Mon, Sep 01, 2008 at 06:10:24PM +0400, Alexey Gladkov wrote:
> >>470-#ifdef _GNU_SOURCE
> >А определяется он где?
>
> До include <sys/utsname.h> и ifdef _GNU_SOURCE.
>
> Проверим:
>
> $ cat z.sh
> #!/bin/sh
> cd /usr/src/RPM/BUILD/php5-source
> cpp \
> -Iext/posix/ -I$PWD/ext/posix/ -DPHP_ATOM_INC \
> -I$PWD/include -I$PWD/main -I$PWD -I/usr/include/libxml2 \
> -I$PWD/ext/date/lib -I$PWD/TSRM -I$PWD/Zend -I/usr/include \
> ext/posix/posix.c
>
> $ ./z.sh >/dev/null
> ext/posix/posix.c:40:2: error: #error Aaaaaa!!!!
>
> $ grep -n -B1 -A2 '^#error' ext/posix/posix.c
> 39-#ifdef _GNU_SOURCE
> 40:#error Aaaaaa!!!!
> 41-#include <sys/utsname.h>
> 42-#endif
>
> Вывод: _GNU_SOURCE явно не достаточно.
> Или я что-то упустил ?
В файле ext/posix/posix.c тот заголовочный файл, который (в конечном
итоге) включает php_config.h (который определяет _GNU_SOURCE), включается
слишком поздно: к этому времени features.h уже обработан.
Можно в этом ext/posix/posix.c заменить проверку _GNU_SOURCE на
проверку __USE_GNU, но, возможно, из-за неправильного включения
заголовочных файлов могут случиться и другие неприятности.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-09-01 16:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 13:18 ` Alexey Gladkov
2008-09-01 13:27 ` Led
2008-09-01 13:39 ` Dmitry V. Levin
2008-09-01 13:46 ` Led
2008-09-01 13:50 ` Dmitry V. Levin
2008-09-01 14:10 ` Alexey Gladkov
2008-09-01 15:50 ` Andrey Rahmatullin
2008-09-01 16:31 ` Alexey Gladkov
2008-09-01 16:59 ` Dmitry V. Levin [this message]
2008-09-01 17:13 ` Alexey Gladkov
2008-09-01 17:39 ` Dmitry V. Levin
2008-09-01 20:37 ` Alexey Gladkov
2008-09-01 20:49 ` Dmitry V. Levin
2008-09-01 21:29 ` Alexey Gladkov
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=20080901165948.GA3554@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