>>> Unpacking source... >>> Unpacking pl-5.6.28.tar.gz to /usr/portage/distfiles/build/portage/dev-lang/swi-pr olog-5.6.28/work ... x86_64-pc-linux-gnu-gcc -c -I. -I/usr/portage/distfiles/build/portage/dev-lang/swi-pro log-5.6.28/work/pl-5.6.28/src -I/usr/portage/distfiles/build/portage/dev-lang/swi-prol og-5.6.28/work/pl-5.6.28/src/rc -O3 -march=k8 -pipe -fomit-frame-pointer -fno-strict- aliasing -fPIC pl-text.c -o pl-text.o pl-text.c: In function 'Sopen_text': pl-text.c:1097: error: 'errno' undeclared (first use in this function) pl-text.c:1097: error: (Each undeclared identifier is reported only once pl-text.c:1097: error: for each function it appears in.) pl-text.c:1097: error: 'EINVAL' undeclared (first use in this function) make: *** [pl-text.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-lang/swi-prolog-5.6.28 failed. Reproducible: Always Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r3 x86_64) ================================================================= System uname: 2.6.19-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System release 1.12.9 Timestamp of tree: Sun, 11 Feb 2007 20:59:02 +0000 dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.6, 2.4.4 dev-python/pycrypto: 2.0.1-r5 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.20 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=k8 -pipe -fomit-frame-pointer" 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 /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=k8 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userfetch" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LINGUAS="de en" MAKEOPTS="-j2" 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="/usr/portage/distfiles/build" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acpi alsa amd64 apache2 arts asf avi berkdb bitmap-fonts bzip2 cairo calendar cdparanoia cdr cli cracklib crypt cups dbus divx4linux dlloader doc dri dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd examples exif fam ffmpeg firefox flac gd gdbm gif gphoto2 gstreamer hal iconv ieee1394 insecure-savers ipv6 isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility latex ldap libg++ lm_sensors mad mbox midi mikmod mmx2 mono mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidea ogg oggvorbis opengl oss pam pcre pdf perl png ppds pppd python qt qt3 quicktime readline reflection samba scanner sdl session spell spl sqlite ssl tcl tcpd tetex tex theora theorea tiff tk truetype truetype-fonts type1-fonts ubs udev unicode usb vcd vorbis wifi wmf xemacs xine xinerama xml xorg xscreensaver xv xvid 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" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The problem is simple, in pl-text.c there is a missed header file, "errno.h". If someone rebuild the package(with the digests etc.) and add the "include" line #include <errno.h> in pl-text.c, everything is compiled just fine. Here is my pl -v output, Apollonas ~ # pl -v SWI-Prolog version 5.6.28 for x86 Apollonas ~ # I hope I helped, Panagiotis
Fixed in cvs. Thanks for the report chaps! Keri