Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195977 - sys-libs/gpm-1.20.1-r6 fails to build w/ linux-headers-2.6.23 due to missing "OPEN_MAX"
Summary: sys-libs/gpm-1.20.1-r6 fails to build w/ linux-headers-2.6.23 due to missing ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 2 votes (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 196762 197177 197560 197836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-15 19:12 UTC by Techwolf
Modified: 2007-11-12 06:53 UTC (History)
19 users (show)

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


Attachments
build log (sys-libs:gpm-1.20.1-r6:20071016-033841.log,9.54 KB, text/plain)
2007-10-16 03:56 UTC, Lourdes Jones
Details
gpm "OPEN_MAX" patch (open_max.patch,1.48 KB, text/plain)
2007-10-18 04:37 UTC, teidakankan
Details
gpm-1.20.1-r6.ebuild w/open_max.patch (gpm-1.20.1-r6.ebuild,1.97 KB, text/plain)
2007-10-18 04:38 UTC, teidakankan
Details
Tomas Janousek <tjanouse redhat com> (gpm-1.20.1-openmax.patch,1.26 KB, patch)
2007-10-18 05:01 UTC, Konstantin Shabanov
Details | Diff
gpm-open-max.patch (gpm-open-max.patch,1004 bytes, patch)
2007-10-28 19:04 UTC, Robert Bridge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Techwolf 2007-10-15 19:12:48 UTC
This problem is related to bug 195861. That bug was closed as fixed, gpm needs the same fix.
Comment 1 Lourdes Jones 2007-10-16 03:56:28 UTC
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
Comment 2 Mike Dolan 2007-10-16 19:44:21 UTC
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.
Comment 3 Mike Dolan 2007-10-16 23:30:34 UTC
Appears to be a patch for this here: http://www.spinics.net/lists/gpm/msg00699.html
Comment 4 teidakankan 2007-10-18 04:36:55 UTC
(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...
Comment 5 teidakankan 2007-10-18 04:37:46 UTC
Created attachment 133735 [details]
gpm "OPEN_MAX" patch
Comment 6 teidakankan 2007-10-18 04:38:45 UTC
Created attachment 133736 [details]
gpm-1.20.1-r6.ebuild w/open_max.patch
Comment 7 Konstantin Shabanov 2007-10-18 05:01:53 UTC
Created attachment 133737 [details, diff]
Tomas Janousek <tjanouse redhat com>
Comment 8 Konstantin Shabanov 2007-10-18 05:07:00 UTC
(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. =) 
Comment 9 Markus Goppelt 2007-10-21 13:49:03 UTC
(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
Comment 10 Sebastian Flügge 2007-10-21 19:13:34 UTC
(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.

Comment 11 Anush Elangovan 2007-10-22 07:45:54 UTC
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
Comment 12 Robert Lewis 2007-10-23 02:49:30 UTC
*** Bug 196762 has been marked as a duplicate of this bug. ***
Comment 13 Robert Lewis 2007-10-23 02:50:00 UTC
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))
>
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 21:55:45 UTC
*** Bug 197177 has been marked as a duplicate of this bug. ***
Comment 15 Robert Bridge 2007-10-28 19:04:09 UTC
Created attachment 134554 [details, diff]
gpm-open-max.patch

A patch for OPEN_MAX in diff -uNr format.
Comment 16 Wojtek Arabczyk 2007-10-28 20:45:41 UTC
(In reply to comment #15)

I can confirm, that this patch does the trick
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 21:36:52 UTC
*** Bug 197560 has been marked as a duplicate of this bug. ***
Comment 18 Christian Heim (RETIRED) gentoo-dev 2007-11-01 19:09:57 UTC
Should be fixed with the next sync.
Comment 19 Techwolf 2007-11-01 22:14:42 UTC
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.
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2007-11-01 23:56:07 UTC
*** Bug 197836 has been marked as a duplicate of this bug. ***
Comment 21 SpanKY gentoo-dev 2007-11-12 06:53:12 UTC
gpm patches *do not* go into FILESDIR ... it has an external patchset, use it