From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 19 Mar 2008 01:58:50 +0300 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20080318225850.GF7777@solemn.turbinal> Mail-Followup-To: devel@lists.altlinux.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z+pzSjdB7cqptWpS" Content-Disposition: inline Subject: [devel] glibc-kernheaders TCGETS2 X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 22:58:39 -0000 Archived-At: List-Archive: List-Post: --z+pzSjdB7cqptWpS Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =F5 =CD=C5=CE=D1 =D0=C5=D2=C5=D3=D4=C1=CC =D3=CF=C2=C9=D2=C1=D4=D8=D3=D1 = =D0=C5=D2=CC, =CE=C5 =CD=CF=D6=C5=D4 =D7=D9=DE=C9=D3=CC=C9=D4=D8 =CE=C5=CB= =CF=D4=CF=D2=D9=C5 =CB=CF=CE=D3=D4=C1=CE=D4=D9 =C4=CC=D1 ioctl =D7 =D3=C7=C5=CE=C5=D2=C9=D2=CF=D7=C1=CE=CE=CF=CD =D3=C9=DB= =CE=CF=CD =CB=CF=C4=C5. $ cat /tmp/.private/at/bhap6ejYVA.c #include #include int main() { printf("TCGETS %ld\n", (long)(TCGETS)); printf("TCGETS2 %ld\n", (long)(TCGETS2)); return 0; } $ 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'=20 /tmp/.private/at/bhap6ejYVA.c:5: error: array type has incomplete element t= ype /tmp/.private/at/bhap6ejYVA.c:5: error: invalid application of 'sizeof' to = incomplete type 'struct termios2'=20 /tmp/.private/at/bhap6ejYVA.c:5: error: invalid application of 'sizeof' to = incomplete type 'struct termios2'=20 $ =F7=CF=D3=D0=D2=CF=C9=DA=D7=CF=C4=C9=D4=D3=D1 =DC=D4=CF =D4=C1=CB: $ pwd /home/at/git.alt/perl/ext/ph $ diff -u h2ph.pl{-,} --- h2ph.pl- 2008-03-18 21:06:25 +0300 +++ h2ph.pl 2008-03-19 01:55:18 +0300 @@ -24,7 +24,7 @@ sub get_values ($$) { my @include =3D @{ +shift }; my @names =3D @{ +shift }; - my $src =3D File::Temp->new(SUFFIX=3D>'.c'); + my $src =3D File::Temp->new(SUFFIX=3D>'.c',UNLINK=3D>0); print $src "#include \n"; for (@include) { print $src "#include <$_>\n"; $ perl ioctl_ph.PL=20 /tmp/.private/at/S5LyD2gyrT.c: In function 'main': /tmp/.private/at/S5LyD2gyrT.c:67: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:67: error: array type has incomplete element = type /tmp/.private/at/S5LyD2gyrT.c:67: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:67: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:74: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:74: error: array type has incomplete element = type /tmp/.private/at/S5LyD2gyrT.c:74: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:74: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:76: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:76: error: array type has incomplete element = type /tmp/.private/at/S5LyD2gyrT.c:76: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:76: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:78: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:78: error: array type has incomplete element = type /tmp/.private/at/S5LyD2gyrT.c:78: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 /tmp/.private/at/S5LyD2gyrT.c:78: error: invalid application of 'sizeof' to= incomplete type 'struct termios2'=20 failed: gcc -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-alia= sing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D6= 4 -I/usr/include/gdbm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-s= trict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm -o /tmp/.priv= ate/at/2jww_OC3PH /tmp/.private/at/S5LyD2gyrT.c -Wl,-O1 -L/usr/local/lib -l= dl -lm -lpthread -lc -lcrypt at ./h2ph.pl line 39. $ sed -n -e 67p -e 74p -e 76p -e 78p /tmp/.private/at/S5LyD2gyrT.c printf("TCGETS2 %ld\n", (long)(TCGETS2)); printf("TCSETS2 %ld\n", (long)(TCSETS2)); printf("TCSETSF2 %ld\n", (long)(TCSETSF2)); printf("TCSETSW2 %ld\n", (long)(TCSETSW2)); $ --z+pzSjdB7cqptWpS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iEYEARECAAYFAkfgSSoACgkQfBKgtDjnu0YgpgCeLhzkT9QAiPi8lDcD75MYmYb8 bngAoOkFEVtH0WzbqYWud73nl6Q4JMzj =nLls -----END PGP SIGNATURE----- --z+pzSjdB7cqptWpS--