Help with Make error on Ubuntu 12 (x64)

Khem Raj raj.khem at gmail.com
Thu Feb 28 18:18:34 UTC 2013


On 02/28/2013 10:15 AM, Jeffrey Walton wrote:
> Hi All,
>
> Below is from the build process on Ubuntu x86_64:
>
> $ uname -a
> Linux ubuntu-12-x64 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19
> 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> Has anyone encountered similar? Would anyone be able to point out what
> I might be missing?
>
> FWIW, I'm trying to build for a desktop so I can get analysis tools on
> the library and its test suite.

so I guess you are using native compiler to do that. Wont work
since most probably your system is glibc based and compiler
is also configured for that. You are better of cross compiling
even if its for same architecture. There are bunch of projects
which can generate cross toolchains for uclibc.

>
> Thanks in advance,
> Jeff
>
>    ...
>    CC libc/inet/ethers.os
> In file included from
> /usr/src/linux-headers-3.2.0-38/include/linux/if_ether.h:24:0,
>                   from ./include/netinet/if_ether.h:26,
>                   from ./include/netinet/ether.h:26,
>                   from libc/inet/ethers.c:14:
> /usr/src/linux-headers-3.2.0-38/include/linux/types.h:13:2: warning:
> #warning "Attempt to use kernel headers from user space, see
> http://kernelnewbies.org/KernelHeaders" [-Wcpp]
> In file included from
> /usr/src/linux-headers-3.2.0-38/include/linux/posix_types.h:47:0,
>                   from /usr/src/linux-headers-3.2.0-38/include/linux/types.h:17,
>                   from
> /usr/src/linux-headers-3.2.0-38/include/linux/if_ether.h:24,
>                   from ./include/netinet/if_ether.h:26,
>                   from ./include/netinet/ether.h:26,
>                   from libc/inet/ethers.c:14:
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:52:24:
> error: conflicting types for '__kernel_old_uid_t'
> ./include/bits/kernel_types.h:40:24: note: previous declaration of
> '__kernel_old_uid_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:53:24:
> error: conflicting types for '__kernel_old_gid_t'
> ./include/bits/kernel_types.h:41:24: note: previous declaration of
> '__kernel_old_gid_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:57:22:
> error: conflicting types for '__kernel_old_dev_t'
> ./include/bits/kernel_types.h:42:24: note: previous declaration of
> '__kernel_old_dev_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:66:22:
> error: conflicting types for '__kernel_size_t'
> ./include/bits/kernel_types.h:28:23: note: previous declaration of
> '__kernel_size_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:67:14:
> error: conflicting types for '__kernel_ssize_t'
> ./include/bits/kernel_types.h:29:15: note: previous declaration of
> '__kernel_ssize_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:68:14:
> error: conflicting types for '__kernel_ptrdiff_t'
> ./include/bits/kernel_types.h:30:15: note: previous declaration of
> '__kernel_ptrdiff_t' was here
> /usr/src/linux-headers-3.2.0-38/include/asm/posix_types.h:91:3: error:
> conflicting types for '__kernel_fsid_t'
> ./include/bits/kernel_types.h:51:3: note: previous declaration of
> '__kernel_fsid_t' was here
> make: *** [libc/inet/ethers.os] Error 1
> jeffrey at ubuntu-12-x64:~/uClibc-0.9.33.2$
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
>



More information about the uClibc mailing list