Public bug reported: I tried to compile a C code on ubuntu server 64 bit 7.10 but, I encountered an error. The code compiles without any errors on ubuntu x86 desktop 7.10. The code uses the RAW sockets for sending Ethernet packets. The output of the compiler is :
gcc -g -c raw_client.c In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:46: error: conflicting types for ‘loff_t’ /usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’ /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here In file included from /usr/include/sys/types.h:133, from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/time.h:105: error: conflicting types for ‘timer_t’ /usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:198: error: conflicting types for ‘int64_t’ /usr/include/linux/types.h:98: error: previous declaration of ‘int64_t’ was here /usr/include/sys/types.h:204: error: conflicting types for ‘u_int64_t’ /usr/include/linux/types.h:97: error: previous declaration of ‘u_int64_t’ was here In file included from /usr/include/sys/types.h:220, from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’ /usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’ /usr/include/linux/types.h:124: error: previous declaration of ‘blkcnt_t’ was here make: *** [raw_client.o] Error 1 ** Affects: ubuntu Importance: Undecided Status: New ** Description changed: - I tried to compile a code on ubuntu server 64 bit 7.10 but, I + I tried to compile a C code on ubuntu server 64 bit 7.10 but, I encountered an error. The code compiles without any errors on ubuntu x86 desktop 7.10. The code uses the RAW sockets for sending Ethernet packets. The output of the compiler is : gcc -g -c raw_client.c In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:46: error: conflicting types for ‘loff_t’ /usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’ /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here In file included from /usr/include/sys/types.h:133, from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/time.h:105: error: conflicting types for ‘timer_t’ /usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:198: error: conflicting types for ‘int64_t’ /usr/include/linux/types.h:98: error: previous declaration of ‘int64_t’ was here /usr/include/sys/types.h:204: error: conflicting types for ‘u_int64_t’ /usr/include/linux/types.h:97: error: previous declaration of ‘u_int64_t’ was here In file included from /usr/include/sys/types.h:220, from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’ /usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here In file included from /usr/include/sys/uio.h:24, from /usr/include/sys/socket.h:27, from raw_client.c:4: /usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’ /usr/include/linux/types.h:124: error: previous declaration of ‘blkcnt_t’ was here make: *** [raw_client.o] Error 1 -- conflicting types for ‘loff_t’ on ubuntu 64 bit server https://bugs.launchpad.net/bugs/217779 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs