Summary: | suspend2-userui-0.6.4-r1 fails compilation | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | chad heuschober <chad_ryan1> |
Component: | [OLD] Core system | Assignee: | Alon Bar-Lev (RETIRED) <alonbl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, nigel, parallelgrapefruit |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
chad heuschober
2007-01-09 04:08:04 UTC
emerge --sync before reporting bugs, please. *** This bug has been marked as a duplicate of bug 160278 *** I believe this is a different bug. I'm getting it also with a sync today. 86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -c -o userui_text.o userui_text.c In file included from userui_text.c:26: userui.h: In function 'xgetpid': userui.h:129: error: 'MAX_ERRNO' undeclared (first use in this function) userui.h:129: error: (Each undeclared identifier is reported only once userui.h:129: error: for each function it appears in.) userui.h:129: error: 'errno' undeclared (first use in this function) make: *** [userui_text.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from userui_core.c:35: userui.h: In function 'xgetpid': userui.h:129: error: 'MAX_ERRNO' undeclared (first use in this function) userui.h:129: error: (Each undeclared identifier is reported only once userui.h:129: error: for each function it appears in.) userui_core.c: In function 'sig_hand': userui_core.c:476: warning: cast to pointer from integer of different size make: *** [userui_core.o] Error 1 disreputable suspend2-userui # emerge --info Portage 2.1.2-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-ck2-r3-20070112 x86_64) ================================================================= System uname: 2.6.19-ck2-r3-20070112 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 20 Jan 2007 19:29:01 +0000 ccache version 2.4 [enabled] dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19.2-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" 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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://gentoo.mirrors.tds.net/gentoo http://distfiles.gentoo.org" MAKEOPTS="-j4" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gpm gstreamer gtk2 hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xinerama xml xorg 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 synaptics" 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_RSYNC_EXTRA_OPTS I don't know where this MAX_ERRNO comes from... Can't find it in source or in my system. Can you please: find /usr/include | xargs grep MAX_ERRNO Thanks! disreputable hydrogen # find /usr/include | xargs grep MAX_ERRNO /usr/include/asm-x86_64/unistd.h:/* user-visible error numbers are in the range -1 - -MAX_ERRNO */ /usr/include/asm-x86_64/unistd.h: if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \ Well... MAX_ERRNO is not defined anywhere... but is used. So I guess the compiler is right... :) base-system: any idea? sure ... fix userui.h to stop including linux/unistd.h and drop the xgetpid() macro hack at the end of the file (In reply to comment #6) > sure ... fix userui.h to stop including linux/unistd.h and drop the xgetpid() > macro hack at the end of the file Thanks! But this hack was needed since whatever reason "Work around random glibc bugs where getpid() caches an invalid pid.", was it solved? to be honest, such things shouldnt exist if there's a bug in glibc, fix glibc, dont hack packages OK. I will contact upstream, thanks. I have MAX_ERRNO in kernel 2.6.19.2 include/linux/err.h:#define MAX_ERRNO 4095 I cannot install linux-headers-2.6.19.2-r1 right now... But it is strange that the same variable does not exist in the last find. OK. Should be solved in suspend2-userui-0.6.4-r2. Reopen if it does not work. |