The exact same error occurs on karmic with gcc 4.4.0
$ gcc --version
gcc (Ubuntu 4.4.0-5ubuntu1) 4.4.0
$ gcc bug.c -O3
In file included from /usr/include/linux/socket.h:23,
from bug.c:1:
/usr/include/linux/uio.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘iov_length’
/usr/include/linux/uio.h:47: error: expected declaration specifiers or ‘...’
before ‘size_t’
In file included from /usr/include/sys/uio.h:29,
from /usr/include/sys/socket.h:28,
from /usr/include/net/if.h:27,
from bug.c:2:
/usr/include/bits/uio.h:45: error: redefinition of ‘struct iovec’
In file included from /usr/include/sys/socket.h:40,
from /usr/include/net/if.h:27,
from bug.c:2:
/usr/include/bits/socket.h:163: error: redefinition of ‘struct sockaddr’
/usr/include/bits/socket.h:176: error: redefinition of ‘struct
__kernel_sockaddr_storage’
/usr/include/bits/socket.h:186: error: expected identifier before numeric
constant
/usr/include/bits/socket.h:234: error: redefinition of ‘struct msghdr’
/usr/include/bits/socket.h:252: error: redefinition of ‘struct cmsghdr’
/usr/include/bits/socket.h:281: error: conflicting types for ‘__cmsg_nxthdr’
/usr/include/linux/socket.h:123: note: previous definition of ‘__cmsg_nxthdr’
was here
/usr/include/bits/socket.h:310: error: expected identifier before numeric
constant
/usr/include/bits/socket.h:389: error: redefinition of ‘struct linger’
** Also affects: gcc-defaults (Ubuntu)
Importance: Undecided
Status: New
** Package changed: gcc-defaults (Ubuntu) => gcc-4.4 (Ubuntu)
--
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs