Summary: | net-wireless/irda-utils-0.9.18-r3 - make irkbd: asm/bitsperlong.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Piotr Szymaniak <bugzie> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.nielsen, chtof62, jer, lech.perczak, mlspamcb, mursoft, throw_away_2002 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 294757 | ||
Bug Blocks: | |||
Attachments: |
net-wireless-irda-utils-0.9.18-r3:20100428-215455.log [fail]
irda-utils-0.9.18-bitsperlong-317539.patch irda-utils-0.9.18-r3.ebuild.patch irda-utils-0.9.18-r4.ebuild.patch |
Description
Piotr Szymaniak
2010-04-27 20:21:58 UTC
Created attachment 229591 [details]
net-wireless-irda-utils-0.9.18-r3:20100428-215455.log [fail]
The problem seems to be
/usr/src/linux/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
which happens while building in the tekram/ directory.
The least thing I could do was fix the failure to fail in the top Makefile. Now the ebuild should abort for quite different reasons. It's easy to make it fail, by the way, because of obsolete kernel source headers being referenced and because it doesn't adhere to LDFLAGS. missing the kernel headers on amd64 too. Just came across this error too. It seems to be because irkbd.c is including int-ll64.h from /usr/src/linux/include instead of the default include path (which is actually /usr/include) This file (int-ll64.h) in turn includes another file, which *does* get picked up from /usr/include - and that causes the problem because the files in /usr/include are a different version to those in /usr/src/linux/include. The fix is to patch the Makefile to remove the reference to /usr/src/linux/include, causing it to pick up the properly installed headers instead - this worked for me: --- tekram/Makefile.orig 2010-06-25 14:25:25.000000000 +1000 +++ tekram/Makefile 2010-06-25 14:25:33.000000000 +1000 @@ -38,7 +38,7 @@ # # System stuff # -SYS_INCLUDES = -I/usr/src/linux/include -I/usr/include -I../include +SYS_INCLUDES = -I/usr/include -I../include SYS_LIBRARIES = SYS_LIBPATH = -L/usr/lib -L/usr/local/lib Created attachment 252957 [details, diff]
irda-utils-0.9.18-bitsperlong-317539.patch
It seems to be the same kind type of bug like #343875, #336323, #297068 and
#285376 (/usr/src/linux/include/asm-generic/int-ll64.h:11:29: error:
asm/bitsperlong.h: No such file or directory
).
Please find a suggested patch (thanks to Adam Nielsen) in order to correct net-wireless/irda-utils-0.9.18-r1 and r2.
Created attachment 252963 [details, diff]
irda-utils-0.9.18-r3.ebuild.patch
Corrected ebuild in order to include the patch "irda-utils-0.9.18-bitsperlong-317539.patch"
Created attachment 252965 [details, diff]
irda-utils-0.9.18-r4.ebuild.patch
Corrected ebuild in order ton include the patch "irda-utils-0.9.18-bitsperlong-317539.patch"
Appropriate version of sys-kernel/linux-headers should have benn added to the corrected ebuild for the patch to runs properly. Are you willing to proxy maintain this? http://www.gentoo.org/proj/en/qa/proxy-maintainers/ *** Bug 469632 has been marked as a duplicate of this bug. *** + 13 Oct 2013; Pacho Ramos <pacho@gentoo.org> + +files/irda-utils-0.9.18-headers.patch, irda-utils-0.9.18-r4.ebuild: + Fix headers used for compile (#317539 by Christophe LEFEBVRE) + |