[devel] IA: Toolchain update

Dmitry V. Levin ldv at altlinux.org
Tue Nov 3 15:37:20 UTC 2009


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, so it should be done
by linux/socket.h or linux/netlink.h.


-- 
ldv
----------- ????????? ????? -----------
???? ??????? ???????? ?? ? ????????? ???????...
???     : ???????????
???     : application/pgp-signature
??????  : 198 ??????
????????: ???????????
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20091103/c45048e0/attachment-0001.bin>


More information about the Devel mailing list