gcc -I /usr/include/postgresql/pgsql -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I. -c lisparit.c gcc -I /usr/include/postgresql/pgsql -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I. -c i18n.c builddir="`pwd`"; cd avcall && make && make check && make install-lib libdir="$builddir" includedir="$builddir" make[1]: Entering directory `/usr/data/portage-build/portage/clisp-2.33.2-r1/work/clisp-2.33.2/build/avcall' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/data/portage-build/portage/clisp-2.33.2-r1/work/clisp-2.33.2/build/avcall' make[1]: Entering directory `/usr/data/portage-build/portage/clisp-2.33.2-r1/work/clisp-2.33.2/build/avcall' ./minitests > minitests.out LC_ALL=C uniq -u < minitests.out > minitests.output.i686-pc-linux-gnu test '!' -s minitests.output.i686-pc-linux-gnu Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (test:32746): Gtk-WARNING **: cannot open display: make[1]: *** [check] Error 1 make[1]: Leaving directory `/usr/data/portage-build/portage/clisp-2.33.2-r1/work/clisp-2.33.2/build/avcall' make: *** [avcall.h] Error 2 !!! ERROR: dev-lisp/clisp-2.33.2-r1 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message) It's reproducible here; when I tried emerge -u clisp again, I got exactly the same error. I'm trying to upgrade from 2.33.2. [ebuild U ] dev-lisp/clisp-2.33.2-r1 [2.33.2] +X +debug -fastcgi +nls +pcre +postgres +readline Here's my emerge info: Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 2500+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-ggdb3 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/freenet /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-ggdb3 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache nostrip sandbox userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://194.149.10.102/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/data/portage-build" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.26/portage" USE="X acl alsa apm arts audiofile avi berkdb bidi bitmap-fonts cairo canna cdr cjk crypt cscope cups debug directfb doc dvd dvdr emacs encode faad flac foomaticdb freewnn gatos gd gdbm gimpprint gphoto2 gpm gtk gtk2 guile imagemagick imlib jack java javascript jikes jpeg junit kde lcms libg++ libwww mad mikmod mmx mng mpeg mysql ncurses nls oggvorbis opengl pam pcre pdflib perl php pic png postgres ppds python qt quicktime readline ruby scanner sdl slang socks5 softmmu spell sse ssl tcltk tcpd tetex theora tiff truetype unicode usb video_cards_radeon wmf x86 xinerama xml2 xmms xprint xv zlib"
Try performing the emerge while X is running on the machine so that the script can connect to X to run the tests. Let me know if that help.
I originally ran the emerge from an xterm. I use X from a user account, and su to root. The error persists.
Could it be that having "debug" in your USE set is causing this problem? That is the only difference between my configuration (which works) and yours. Could you try without debug in USE and let me know of the results? You also said you were "upgrading from 2.33.2". I assume this means from dev-lisp/clisp-2.33.2 to dev-lisp/clisp-2.33.2-r1. The -r1 includes a simlpe source compilation fix for the glibc module (see bug #57155) and also installs the Common Lisp Controller aspect of the CLISP port to use the ISO-8859-1 encoding by default. Neither of these seem like they would cause upgrade problems. Thus, can you think of any changes in your general/system-wide/portage configuration between now and when you first got dev-lisp-2.33.2 emerged.
USE="-debug" emerge clisp Problem persists. 'You also said you were "upgrading from 2.33.2". I assume this means from dev-lisp/clisp-2.33.2 to dev-lisp/clisp-2.33.2-r1.' <-- That is correct. I've changed CFLAGS in the not-so-distant past, and I occasionally tweak USE flags. I've upgraded packages as new versions hit the x86 arch.
Does the problem still persist with clisp-2.38-r2?