Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469632 - net-wireless/irda-utils-0.9.18-r3 - In file included from irkbd.c:37:0: /usr/src/linux/include/linux/types.h:14:26: error: conflicting types for ‘fd_set’
Summary: net-wireless/irda-utils-0.9.18-r3 - In file included from irkbd.c:37:0: /usr/...
Status: RESOLVED DUPLICATE of bug 317539
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (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:
Depends on:
Blocks:
 
Reported: 2013-05-12 23:46 UTC by ta2002
Modified: 2013-10-13 16:35 UTC (History)
2 users (show)

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


Attachments
hotfix for #469632 (irda-utils-0.9.18-linux_types_h.diff,280 bytes, patch)
2013-06-09 23:35 UTC, ViliusSutkus89
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2013-05-12 23:46:36 UTC
* irda-utils-0.9.18.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking irda-utils-0.9.18.tar.gz to /var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/work
 * Applying irda-utils-rh1.patch ...                                                                                         [ ok ]
 * Applying irda-utils-0.9.18-makefile.diff ...                                                                              [ ok ]
 * Applying irda-utils-0.9.18-smcinit.diff ...                                                                               [ ok ]
 * Applying irda-utils-0.9.18-io.h.diff ...                                                                                  [ ok ]
 * Applying irda-utils-0.9.18-dofail.patch ...                                                                               [ ok ]
 * Applying irda-utils-0.9.18-asneeded.patch ...                                                                             [ ok ]
>>> Source unpacked in /var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/work
>>> Compiling source in /var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/work/irda-utils-0.9.18 ...
make -j3 'RPM_OPT_FLAGS=-O2 -pipe -fomit-frame-pointer -mfpmath=sse -march=core2 -mcx16 -msahf -mtune=core2 -fno-strict-aliasing' RPM_BUILD_ROOT=/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/image/ ROOT=/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/image/
 [CC]  irattach.c
 [CC]  util.c
 [CC]  dongle_attach.c
irattach.c: In function ‘main’:
irattach.c:657:6: warning: variable ‘modname’ set but not used [-Wunused-but-set-variable]
irattach.c: In function ‘get_devlist’:
irattach.c:327:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
irattach.c:328:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
 [CC]  dongle_attach
 [CC]  irattach
 [CC]  irdaping.c
 [CC]  irdaping
 [CC]  irnetd.c
irnetd.c: In function ‘main’:
irnetd.c:84:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
 [CC]  irnetd
 [CC]  irpsion5
irpsion5.c: In function ‘discover_devices’:
irpsion5.c:131:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
irpsion5.c:144:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
irpsion5.c:151:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
irpsion5.c: In function ‘sendfile’:
irpsion5.c:271:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
irpsion5.c: In function ‘handle_client’:
irpsion5.c:499:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
irpsion5.c:535:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 [CC]  irkbd.c
In file included from irkbd.c:37:0:
/usr/src/linux/include/linux/types.h:14:26: error: conflicting types for ‘fd_set’
/usr/include/sys/select.h:76:5: note: previous declaration of ‘fd_set’ was here
/usr/src/linux/include/linux/types.h:15:25: error: conflicting types for ‘dev_t’
/usr/include/sys/types.h:61:17: note: previous declaration of ‘dev_t’ was here
/usr/src/linux/include/linux/types.h:17:26: error: conflicting types for ‘mode_t’
/usr/include/sys/types.h:71:18: note: previous declaration of ‘mode_t’ was here
/usr/src/linux/include/linux/types.h:25:26: error: conflicting types for ‘timer_t’
/usr/include/time.h:104:19: note: previous declaration of ‘timer_t’ was here
/usr/src/linux/include/linux/types.h:134:23: error: conflicting types for ‘blkcnt_t’
/usr/include/sys/types.h:236:20: note: previous declaration of ‘blkcnt_t’ was here
irkbd.c: In function ‘irkbd_handle_mouse’:
irkbd.c:302:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [irkbd.o] Error 1
make: *** [all] Error 1
emake failed
 * ERROR: net-wireless/irda-utils-0.9.18-r3 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2351:  Called die
 * The specific snippet of code:
 *       emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=net-wireless/irda-utils-0.9.18-r3'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/irda-utils-0.9.18-r3'`.
 * The complete build log is located at '/var/log/portage/net-wireless:irda-utils-0.9.18-r3:20130512-184600.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/work/irda-utils-0.9.18'
 * S: '/var/tmp/portage/net-wireless/irda-utils-0.9.18-r3/work/irda-utils-0.9.18'

>>> Failed to emerge net-wireless/irda-utils-0.9.18-r3, Log file:

>>>  '/var/log/portage/net-wireless:irda-utils-0.9.18-r3:20130512-184600.log'


$ emerge --info
Portage 2.1.11.62 (default/linux/x86/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.2.12-gentoo i686)
=================================================================
System uname: Linux-3.2.12-gentoo-i686-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.2
KiB Mem:     2071512 total,    474504 free
KiB Swap:    2056284 total,   2055004 free
Timestamp of tree: Fri, 10 May 2013 01:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -mfpmath=sse -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="R X a52 aac aalib accessibility acpi additions aio alsa aspell audio audiofile blksha1 bookmarks bwscheduler bzip2 cairo caps cdio cdr chm chroot client consolekit cracklib crypt css cups cxx dbus device-mapper dga directfb djvu downloadorder dri dvd dvdnav dvdr ebook egl encode espeak exceptions exif expat fam fbcon ffmpeg flac fluidsynth fontconfig fortran gallium gcj gcrypt gecko ggi gif git glib glibc-omitfp gmp gpg gphoto2 gpm gsm gtk handbook hardcoded-tables hddtemp holidays hpn iconv idea imap infowidget iostats ipc ipfilter ipv6 jabber javascript jbig jit joystick jpeg jsbsim kmod lame lcms less libass libkms libwww live llvm lm_sensors logviewer lxde lzma mad matroska mbox mdns-bundled memlimit midi minizip mmx mmxext mp3 mpeg mta mudflap nas ncurses net netapi network nls no-old-linux nodrm nptl ntfsprogs ntp ocamlopt offlinehelp ofx ogg opengl openmedia openmp oscar osdmenu pcre pdf pm-utils png policykit portmon ps qt3support quotes raptor readline recursion-limit redland rss rtc rtmp samba savedconfig scanfolder scanner sdl search secure-delete sensord server shared-glapi shm silc smbclient smtp sndfile sound speex spell sse sse2 sse2check ssl ssse3 stats subversion svg sysfs tcpd theora threads threadsafe tiff tremor truetype udev udisks unicode upnp upower urandom usb userlocales utils video vorbis wav webdav-neon webinterface wifi wps x264 x86 xcb xinerama xklavier xml xpdf-headers xv xvid yahoo zlib zrtp" ABI_X86="32" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 ViliusSutkus89 2013-06-09 23:35:46 UTC
Created attachment 350604 [details, diff]
hotfix for #469632

Yeah hi.

Just encountered this same 'bug'. happens for both 0.9.18-r3 and 0.9.18-r4.

Redeclaration problems go away if I get rid of <linux/types.h> in irkbd.c, which leaves us with undefined types like __u32.
Found them in <asm-generic/int-l64.h>
Comment 2 Gabor Garami 2013-08-15 02:48:21 UTC
I confirm the bug with r3 and r4. The patch in #1 solves the issue on my system too.
Comment 3 Pacho Ramos gentoo-dev 2013-10-13 16:35:36 UTC

*** This bug has been marked as a duplicate of bug 317539 ***