From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 MIME-Version: 1.0 In-Reply-To: <20091103153720.GB27829@wo.int.altlinux.org> References: <20091103153720.GB27829@wo.int.altlinux.org> Date: Wed, 4 Nov 2009 11:04:51 +0200 Message-ID: From: "Kirill A. Shutemov" To: ALT Linux Team development discussions Content-Type: multipart/mixed; boundary=001485f774d84abeb9047787e757 Subject: Re: [devel] IA: Toolchain update X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2009 09:05:09 -0000 Archived-At: List-Archive: List-Post: --001485f774d84abeb9047787e757 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2009/11/3 Dmitry V. Levin : > 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 an= y >> 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 =C2=A0conftest.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 :1: > /usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list= before =E2=80=98sa_family_t=E2=80=99 > > $ fgrep sa_family_t /usr/include/linux/netlink.h > #include /* for sa_family_t */ > =C2=A0 =C2=A0 =C2=A0 =C2=A0sa_family_t =C2=A0 =C2=A0 nl_family; =C2=A0 = =C2=A0 =C2=A0/* AF_NETLINK =C2=A0 */ > > $ fgrep -c sa_family_t /usr/include/linux/socket.h > 0 > > This is due to a deliberate change in /usr/include/linux/socket.h introdu= ced > by kernel commit 9c501935a3cdcf6b1d35aaee3aa11c7a7051a305. > > Now sys/socket.h must be included before linux/netlink.h to compile the > latter. =C2=A0This 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 . > 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. --001485f774d84abeb9047787e757 Content-Type: application/octet-stream; name="strace.patch" Content-Disposition: attachment; filename="strace.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g1luimy41 ZGlmZiAtLWdpdCBhL2NvbmZpZ3VyZS5hYyBiL2NvbmZpZ3VyZS5hYwppbmRleCBjODQ1MGNkLi5j NGFkNzFhIDEwMDY0NAotLS0gYS9jb25maWd1cmUuYWMKKysrIGIvY29uZmlndXJlLmFjCkBAIC0y NDQsNiArMjQ0LDcgQEAgQUNfQ0hFQ0tfSEVBREVSUyhbIFwKIAlzeXMvcG9sbC5oIFwKIAlzeXMv cHRyYWNlLmggXAogCXN5cy9yZWcuaCBcCisJc3lzL3NvY2tldC5oIFwKIAlzeXMvc3RyZWFtLmgg XAogCXN5cy9zeXNjb25maWcuaCBcCiAJc3lzL3RpaGRyLmggXApAQCAtMjU4LDcgKzI1OSw3IEBA IEFDX0NIRUNLX0hFQURFUlMoWyBcCiBdLCBbXSwgW10pCiBBQ19DSEVDS19IRUFERVJTKFtsaW51 eC9pY21wLmggbGludXgvaW42LmggbGludXgvbmV0bGluay5oIGxpbnV4L2lmX3BhY2tldC5oXSwK ICAgICAgICAgICAgICAgICAgW10sIFtdLCBbI2luY2x1ZGUgPHN0ZGRlZi5oPgotI2luY2x1ZGUg PGxpbnV4L3NvY2tldC5oPl0pCisjaW5jbHVkZSA8c3lzL3NvY2tldC5oPl0pCiBBQ19DSEVDS19I RUFERVJTKFthc20vc2lnY29udGV4dC5oXSwgW10sIFtdLCBbI2luY2x1ZGUgPHNpZ25hbC5oPl0p CiBBQ19DSEVDS19UWVBFUyhbc3RydWN0IHNpZ2NvbnRleHRfc3RydWN0LAogCQlzdHJ1Y3Qgc2ln Y29udGV4dF0sLCwgWyNpbmNsdWRlIDxzaWduYWwuaD5dKQo= --001485f774d84abeb9047787e757--