error occurred when compiling src/inputmanager.cpp see the "Actual results" for detail Reproducible: Always Steps to Reproduce: 1.emerge zhcon 2. 3. Actual Results: In file included from /usr/include/linux/keyboard.h:14, from inputmanager.cpp:517: /usr/include/linux/wait.h: In function `int wait_on_bit(void*, int, int (*)(void*), unsigned int)': /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*' /usr/include/linux/wait.h:376: error: initializing argument 2 of `int constant_test_bit(int, const volatile long unsigned int*)' /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*' /usr/include/linux/wait.h:376: error: initializing argument 2 of `int variable_test_bit(int, const volatile long unsigned int*)' /usr/include/linux/wait.h: In function `int wait_on_bit_lock(void*, int, int (*)(void*), unsigned int)': /usr/include/linux/wait.h:400: error: invalid conversion from `void*' to `volatile long unsigned int*' /usr/include/linux/wait.h:400: error: initializing argument 2 of `int test_and_set_bit(int, volatile long unsigned int*)' make[3]: *** [inputmanager.o] Error 1 Expected Results: smoothly compiled $ emerge --info Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-nitro0 i686) ================================================================= System uname: 2.6.11-nitro0 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.12.0_pre5 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp" LANG="en_US" LDFLAGS="-Wl,-O1" LINGUAS="zh_CN" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/got /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac aalib acl acpi alsa apm arts avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cairo caps cdparanoia cdr cdrom chroot cjk codecs cpdflib crypt cscope css cups curl curlwrappers dbm dio directfb divx4linux droproot dts dvd dvdr dvdread emboss encode esd ethereal exif fam fax faxonly fb fbcon ffmpeg firefox flac flatfile font-server foomaticdb fortran fpx freetype ftp ftruncate gdbm gif gimp glitz gnome gnutls gphoto2 gpm gps graphviz gs gtk gtk2 hal iconv idea imagemagick imlib imlib2 immqt-bc java joystick jp2 jpeg jpeg2k junit kde kqemu lcms libcaca libg++ libwww linguas_zh_CN live lzo lzw lzw-tiff mad matroska mbox md5sum mhash mikmod mime mimencode mjpeg mmap mmx mmxext mng motif mozdevelop moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer ncurses net network nls nptl nptlonly ntlm offensive ogg oggvorbis ooo-kde opengl oss pam pcmcia pcre pda pdf pdfkit pdflib perl png pnp posix python qt quicktime readline real rtc ruby samba scanner sdl skey slang sockets socks5 softmmu speex spell sse sse2 ssl svg svga szip tcltk tcpd tetex theora tiff timidity truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vhosts visualization vnc vorbis win32codecs wmf xanim xinetd xml xml2 xmlrpc xmms xosd xprint xscreensaver xslt xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL
Do not file ebuild bugs under the Developer Relations category.
Created attachment 66062 [details, diff] modify /usr/include/linux/wait.h a little bit can solve it
(In reply to comment #1) > Do not file ebuild bugs under the Developer Relations category. sorry, this is the first time to file a bug ;)
This seems to be a linux-headers related bug. A simple cpp program can produce compiling error: #include <linux/wait.h> int main(int argc, char** argv) { return 0; } Could x86-kernel team take a look at it?
*** Bug 123577 has been marked as a duplicate of this bug. ***
Is this still an issue?
(In reply to comment #6) > Is this still an issue? > now we use zhcon in gentoo-china overlay layman -a gentoo-china
Considering this fixed now (mark verified if it is), in a month the new version can be asked to be marked stable and the old broken one can be removed.