Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317539 - net-wireless/irda-utils-0.9.18-r3 - make irkbd: asm/bitsperlong.h: No such file or directory
Summary: net-wireless/irda-utils-0.9.18-r3 - make irkbd: asm/bitsperlong.h: No such fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 469632 (view as bug list)
Depends on: 294757
Blocks:
  Show dependency tree
 
Reported: 2010-04-27 20:21 UTC by Piotr Szymaniak
Modified: 2013-10-13 16:36 UTC (History)
7 users (show)

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


Attachments
net-wireless-irda-utils-0.9.18-r3:20100428-215455.log [fail] (20100428-215455.log,4.21 KB, text/plain)
2010-04-28 22:09 UTC, Jeroen Roovers (RETIRED)
Details
irda-utils-0.9.18-bitsperlong-317539.patch (irda-utils-0.9.18-bitsperlong-317539.patch,334 bytes, patch)
2010-11-02 22:07 UTC, Christophe LEFEBVRE
Details | Diff
irda-utils-0.9.18-r3.ebuild.patch (irda-utils-0.9.18-r3.ebuild.patch,2.48 KB, patch)
2010-11-02 22:13 UTC, Christophe LEFEBVRE
Details | Diff
irda-utils-0.9.18-r4.ebuild.patch (irda-utils-0.9.18-r4.ebuild.patch,3.73 KB, patch)
2010-11-02 22:14 UTC, Christophe LEFEBVRE
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2010-04-27 20:21:58 UTC
irda-utils should install irdadump (not just a man for it).

maszyn ~ # equery f irda-utils
 * Searching for irdautils ...
 * Contents of net-wireless/irda-utils-0.9.18-r3:
/etc
/etc/conf.d
/etc/conf.d/irda
/etc/init.d
/etc/init.d/irda
/etc/modprobe.d
/etc/modprobe.d/irda.conf
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/53-irda.rules
/lib
/lib/udev
/lib/udev/irda-setup
/lib/udev/irda-usb
/usr
/usr/bin
/usr/bin/irpsion5
/usr/sbin
/usr/sbin/dongle_attach
/usr/sbin/irattach
/usr/sbin/irdaping
/usr/sbin/irnetd
/usr/share
/usr/share/doc
/usr/share/doc/irda-utils-0.9.18-r3
/usr/share/doc/irda-utils-0.9.18-r3/ChangeLog.irattach.bz2
/usr/share/doc/irda-utils-0.9.18-r3/ChangeLog.irdadump.bz2
/usr/share/doc/irda-utils-0.9.18-r3/ChangeLog.smcinit.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.irattach.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.irdadump.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.irdaping.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.irsockets.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.smcinit.Peri.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.smcinit.Rob.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.smcinit.Tom.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.smcinit.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.tekram.bz2
/usr/share/doc/irda-utils-0.9.18-r3/README.wireshark.bz2
/usr/share/doc/irda-utils-0.9.18-r3/html
/usr/share/doc/irda-utils-0.9.18-r3/html/RobMiller-irda.html
/usr/share/man
/usr/share/man/man4
/usr/share/man/man4/irnet.4.bz2
/usr/share/man/man7
/usr/share/man/man7/irda.7.bz2
/usr/share/man/man8
/usr/share/man/man8/findchip.8.bz2
/usr/share/man/man8/irattach.8.bz2
/usr/share/man/man8/irdadump.8.bz2
/usr/share/man/man8/irdaping.8.bz2
/usr/share/man/man8/irnetd.8.bz2
/usr/share/man/man8/irpsion5.8.bz2
/usr/share/man/man8/smcinit.8.bz2
/usr/share/man/man8/tosh1800-smcinit.8.bz2


Reproducible: Always

Steps to Reproduce:
1. emerge irda-utils
2. run irdadump
3. fail

Actual Results:  
irdadump is missing

Expected Results:  
irdadump should be installed

# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-rc5 i686)
=================================================================
System uname: Linux-2.6.34-rc5-i686-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 27 Apr 2010 18:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/porttmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /home/lazy_bum/uberlay/roslin /home/lazy_bum/uberlay/gamerlay /usr/local/portage/layman/qting-edge /usr/local/portage/layman/kde /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth bzip2 cairo cdr cli consolekit cracklib crypt cups custom-cflags custom-cxxflags cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 irda jabber jpeg lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vdpau vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-28 22:09:18 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.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-28 22:28:47 UTC
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.
Comment 3 Nico Baggus 2010-06-23 18:36:30 UTC
missing the kernel headers on amd64 too.
Comment 4 Adam Nielsen 2010-06-25 04:28:55 UTC
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 
Comment 5 Christophe LEFEBVRE 2010-11-02 22:07:52 UTC
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.
Comment 6 Christophe LEFEBVRE 2010-11-02 22:13:29 UTC
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"
Comment 7 Christophe LEFEBVRE 2010-11-02 22:14:25 UTC
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"
Comment 8 Christophe LEFEBVRE 2010-11-02 22:32:39 UTC
See also http://bugs.gentoo.org/show_bug.cgi?id=297068#c8
Comment 9 Christophe LEFEBVRE 2010-11-02 23:30:16 UTC
Appropriate version of sys-kernel/linux-headers should have benn added to the corrected ebuild for the patch to runs properly.
Comment 10 Pacho Ramos gentoo-dev 2013-06-16 09:09:06 UTC
Are you willing to proxy maintain this?
http://www.gentoo.org/proj/en/qa/proxy-maintainers/
Comment 11 Pacho Ramos gentoo-dev 2013-10-13 16:35:36 UTC
*** Bug 469632 has been marked as a duplicate of this bug. ***
Comment 12 Pacho Ramos gentoo-dev 2013-10-13 16:36:18 UTC
+  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)
+