From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Cc: "Kirill A. Shutemov" <kas@altlinux.org>
Subject: Re: [devel] glibc-kernheaders TCGETS2
Date: Wed, 19 Mar 2008 02:12:37 +0300
Message-ID: <20080318231237.GA22222@wo.int.altlinux.org> (raw)
In-Reply-To: <20080318225850.GF7777@solemn.turbinal>
[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]
On Wed, Mar 19, 2008 at 01:58:50AM +0300, Alexey Tourbin wrote:
> У меня перестал собираться перл, не может вычислить некоторые константы
> для ioctl в сгенерированном сишном коде.
Это багрепорт на свежий glibc-kernheaders.
> $ cat /tmp/.private/at/bhap6ejYVA.c
> #include <stdio.h>
> #include <sys/ioctl.h>
> int main() {
> printf("TCGETS %ld\n", (long)(TCGETS));
> printf("TCGETS2 %ld\n", (long)(TCGETS2));
> return 0;
> }
TCGETS2 раньше не было.
> $ gcc /tmp/.private/at/bhap6ejYVA.c
> /tmp/.private/at/bhap6ejYVA.c: In function 'main':
> /tmp/.private/at/bhap6ejYVA.c:5: error: invalid application of 'sizeof' to incomplete type 'struct termios2'
> /tmp/.private/at/bhap6ejYVA.c:5: error: array type has incomplete element type
> /tmp/.private/at/bhap6ejYVA.c:5: error: invalid application of 'sizeof' to incomplete type 'struct termios2'
> /tmp/.private/at/bhap6ejYVA.c:5: error: invalid application of 'sizeof' to incomplete type 'struct termios2'
struct termios2 определено в другом файле (asm/termbits.h);
там же есть определение struct termios, которое, разумеется,
конфликтует с определением из bits/termios.h:
$ printf '#include <termios.h>\n#include <asm/termbits.h>\n' |gcc -c -Wall -xc - >/dev/null
In file included from <stdin>:2:
/usr/include/asm/termbits.h:11: error: redefinition of 'struct termios'
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-03-18 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 22:58 Alexey Tourbin
2008-03-18 23:12 ` Dmitry V. Levin [this message]
2008-03-18 23:38 ` Alexey Tourbin
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=20080318231237.GA22222@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
--cc=kas@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