On Wed, Mar 19, 2008 at 01:58:50AM +0300, Alexey Tourbin wrote: > У меня перестал собираться перл, не может вычислить некоторые константы > для ioctl в сгенерированном сишном коде. Это багрепорт на свежий glibc-kernheaders. > $ cat /tmp/.private/at/bhap6ejYVA.c > #include > #include > 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 \n#include \n' |gcc -c -Wall -xc - >/dev/null In file included from :2: /usr/include/asm/termbits.h:11: error: redefinition of 'struct termios' -- ldv