Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490008 - sys-libc/uclibc: fails to build with >=sys-kernel/linux-headers-3.10
Summary: sys-libc/uclibc: fails to build with >=sys-kernel/linux-headers-3.10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 22:17 UTC by Anthony Basile
Modified: 2013-12-22 14:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
uclibc upstream patch for this case (0001-libc-sysdeps-add-__kernel_long-and-__kernel_ulong.patch,16.73 KB, patch)
2013-11-26 16:48 UTC, Hans Ulli Kroll
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2013-10-31 22:17:51 UTC
The build dies with

  CC libc/inet/inet_net.os
  CC libc/inet/herror.os
  CC libc/inet/if_index.os
In file included from /usr/include/linux/kernel.h:4:0,
                 from /usr/include/linux/netlink.h:4,
                 from /usr/include/linux/rtnetlink.h:5,
                 from libc/inet/netlinkaccess.h:27,
                 from libc/inet/if_index.c:37:
/usr/include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'
/usr/include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function)
make: *** [libc/inet/if_index.os] Error 1


I haven't traced this down (yet), but a simple grep of /usr/include doesn't show any changes between linux-headers-3.9 and 3.10 or 3.11.


Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2013-10-31 22:19:50 UTC
I should probably add that this is arch independant.  I hit it first on mips but reproduced it on amd64.
Comment 2 Anthony Basile gentoo-dev 2013-11-07 18:04:24 UTC
I believe this is fixed with upstream uclibc commits:

    620908d8e5b2f9d0c32954e9fc5752d03cf37fc8

    6a76edddaa62ff06f178143b582167734cb55c18

which we might want to backport to uclibc-0.9.33.2-r7 when/if it gets pushed out.
Comment 3 Hans Ulli Kroll 2013-11-26 16:48:32 UTC
Created attachment 364024 [details, diff]
uclibc upstream patch for this case