[devel] IA: Toolchain update

Kirill A. Shutemov kirill at shutemov.name
Wed Nov 4 09:04:51 UTC 2009


2009/11/3 Dmitry V. Levin <ldv �� altlinux.org>:
> On Sun, Nov 01, 2009 at 02:44:07AM +0200, Kirill A. Shutemov wrote:
>> glibc-kernherders has been synced with kernel 2.6.32-rc5. If you find any
>> headers-relared issues, please report me.
>
> Well, I've got a problem with this update: strace no longer builds due to
> breakage somewhere between linux/netlink.h and linux/socket.h:
>
> configure:8880: checking for linux/netlink.h
> configure:8902: x86_64-alt-linux-gcc -c -pipe -Wall -O2  conftest.c >&5
> In file included from conftest.c:72:
> /usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list before 'sa_family_t'
>
> Indeed,
> $ printf '#include <%s>\n' linux/netlink.h |gcc -O2 -xc -c -o/dev/null -
> In file included from <stdin>:1:
> /usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list before ‘sa_family_t’
>
> $ fgrep sa_family_t /usr/include/linux/netlink.h
> #include <linux/socket.h> /* for sa_family_t */
>        sa_family_t     nl_family;      /* AF_NETLINK   */
>
> $ fgrep -c sa_family_t /usr/include/linux/socket.h
> 0
>
> This is due to a deliberate change in /usr/include/linux/socket.h introduced
> by kernel commit 9c501935a3cdcf6b1d35aaee3aa11c7a7051a305.
>
> Now sys/socket.h must be included before linux/netlink.h to compile the
> latter.  This is not an option for configure check,

Why? Buggy configure.(ac|in) should be fixed. Patch for strace attached.
You really don't want to use <linux/socket.h>.

> so it should be done by linux/socket.h or linux/netlink.h.

Use libc headers from kernel headers is a bad idea. It will be rejected by
upstream, but I can try to push it, if you really need it.
----------- ��������� ����� -----------
���� ������� �������� �� � ��������� �������...
���     : strace.patch
���     : application/octet-stream
������  : 661 ������
��������: �����������
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20091104/2c0724d7/attachment.obj>


More information about the Devel mailing list