This problem is related to bug 195861. That bug was closed as fixed, gpm needs the same fix.
Created attachment 133591 [details] build log I can reproduce this problem $ emerge --info Portage 2.1.3.14 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo x86_64) ================================================================= System uname: 2.6.23-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Timestamp of tree: Tue, 16 Oct 2007 02:50:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.5.1-r2 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon64 -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=athlon64 -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.utdlug.org/linux/distributions/gentoo/ " LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 bash-completion berkdb bitmap-fonts cairo caps cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode exif firefox fortran gdbm gif gnutls gpm gtk hal iconv ipv6 isdnlog ithreads jpeg libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode vim-syntax vorbis xcb xcomposite xml xorg xprint xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I can also reproduce this issue. I'd post my log but it's identical to the one here. I encountered this on a new install doing an 'emerge -e system' and it choked on gpm with this same error.
Appears to be a patch for this here: http://www.spinics.net/lists/gpm/msg00699.html
(In reply to comment #3) > Appears to be a patch for this here: > http://www.spinics.net/lists/gpm/msg00699.html > I did get it to compile with the patch listed there. I'll include my patch and ebuild, but they are just "hacks" so be warned...
Created attachment 133735 [details] gpm "OPEN_MAX" patch
Created attachment 133736 [details] gpm-1.20.1-r6.ebuild w/open_max.patch
Created attachment 133737 [details, diff] Tomas Janousek <tjanouse redhat com>
(In reply to comment #6) > Created an attachment (id=133736) [edit] > gpm-1.20.1-r6.ebuild w/open_max.patch > I'm late a bit. =)
(In reply to comment #6) > Created an attachment (id=133736) [edit] > gpm-1.20.1-r6.ebuild w/open_max.patch > Hi, I copied the patch to /usr/portage/sys-libs/gpm/files and the ebuild to /usr/portage/sys-libs/gpm. When I trie to "emerge gpm" the Digest Verification fails. How can I disable the verification? Sorry to bother you with my questions. Regards, Markus
(In reply to comment #9) > (In reply to comment #6) > > Created an attachment (id=133736) [edit] > > gpm-1.20.1-r6.ebuild w/open_max.patch > > > > Hi, > I copied the patch to /usr/portage/sys-libs/gpm/files and the ebuild to > /usr/portage/sys-libs/gpm. When I trie to "emerge gpm" the Digest Verification > fails. It's better, to copy the ebuild and the patch in your local overlay. By default it is /usr/local/portage, but look in your /etc/make.conf. Then you create a directory /usr/local/portage/sys-libs/gpm/files, copy the patch in this folder and the ebuild in /usr/local/portage/sys-libs/gpm. Rename the patch to open_max.patch and do "ebuild /usr/local/portage/sys-libs/gpm/gpm-1.20.1-r6.ebuild digest. Now you can emerge gpm. If you done right, it will work.
I see this problem even with 2.6.21 kernels/glibc 2.6.1-r0 2wire gpm # emerge --info Portage 2.1.3.15 (default-linux/amd64/2006.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.21.1 x86_64) ================================================================= System uname: 2.6.21.1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Mon, 22 Oct 2007 06:30:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 asf bash-completion berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd dvdr dvdread eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog jpeg kerberos ldap lirc lzw lzw-tiff midi mp3 mpeg mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts usb userlocales win32 xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** Bug 196762 has been marked as a duplicate of this bug. ***
special.c 27,28c27 < < #include <linux/limits.h> /* for OPEN_MAX */ --- > #include <unistd.h> 40a40 > #define OPEN_MAX (sysconf(_SC_OPEN_MAX)) My patch: gpm-root.c 120c120 < #include <linux/limits.h> /* OPEN_MAX */ --- > #include <unistd.h> /* _SC_OPEN_MAX */ 135a136,137 > #define OPEN_MAX (sysconf(_SC_OPEN_MAX)) >
*** Bug 197177 has been marked as a duplicate of this bug. ***
Created attachment 134554 [details, diff] gpm-open-max.patch A patch for OPEN_MAX in diff -uNr format.
(In reply to comment #15) I can confirm, that this patch does the trick
*** Bug 197560 has been marked as a duplicate of this bug. ***
Should be fixed with the next sync.
I just tested it. Seems to have been fixed. Thank you all for helping out. Sorry I do not have the reason on why it took so long to fix. I can now emerge -e system && emerge -e world my system.
*** Bug 197836 has been marked as a duplicate of this bug. ***
gpm patches *do not* go into FILESDIR ... it has an external patchset, use it