Tested on both x86 and amd64, I get this: plld -pl /usr/bin/pl -cc x86_64-pc-linux-gnu-gcc -c++ x86_64-pc-linux-gnu-g++ -ld x86_64-pc-linux-gnu-g++ \ -ld-options`echo '' -frounding-math -O2 -fomit-frame-pointer -pipe -W -Wall | tr " " "/"` \ -o ppl_pl .libs/libppl_swiprolog.a ppl_pl.o \ -L../../../src/.libs \ -lppl -L../../../Watchdog/src/.libs -lpwl -lm -L/usr/lib64 -lgmpxx -L/usr/lib64 -lgmp -R/usr/lib64 -R/usr/lib64 .libs/libppl_swiprolog.a(ppl_prolog_common.o): In function `Prolog_put_big_ulong(unsigned long, unsigned long)': ppl_prolog_common.cc:(.text+0x487): undefined reference to `PL_unify_mpz' .libs/libppl_swiprolog.a(swi_efli.o): In function `Parma_Polyhedra_Library::Interfaces::Prolog::SWI::Prolog_get_Coefficient(unsigned long, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&)': swi_efli.cc:(.text+0x2c0): undefined reference to `PL_get_mpz' .libs/libppl_swiprolog.a(swi_efli.o): In function `Parma_Polyhedra_Library::Interfaces::Prolog::SWI::Prolog_unify_Coefficient(unsigned long, __gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)': swi_efli.cc:(.text+0x3a2): undefined reference to `PL_unify_mpz' collect2: ld returned 1 exit status x86_64-pc-linux-gnu-g++ returned code 256 *** plld exit status 1 make[6]: *** [ppl_pl] Error 1 make[6]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10/interfaces/Prolog/SWI' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10/interfaces/Prolog' make[4]: *** [all] Error 2 make[4]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10/interfaces/Prolog' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10/interfaces' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10/interfaces' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/ppl-0.10-r1/work/ppl-0.10' make: *** [all] Error 2
emerge --info: Portage 2.1.6.9 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-glibc2.2.5 Timestamp of tree: Sun, 22 Mar 2009 13:15:01 +0000 app-shells/bash: 4.0_p10-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.3 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.6 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF8" LC_ALL="en_US.UTF8" LDFLAGS="-Wl,-O1" LINGUAS="en_US" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage" USE="7zip X a52 aac acl acpi alsa amd64 apm apron bash-completion berkdb bzip2 cairo cdda cdio cdr cjk cli context coq cracklib crypt cscope cups curl cvs cxx d dbus device-mapper dia dirac doc dri dts dv dvb dvd dvdr dvdread emacs encode epiphany examples extra fat fbcon ffmpeg flac fortran ftp fuse gappa gcj gd gdbm gif gimp git glade glitz gnome gnome-print gnomecanvas gnutls gpg gpm graphics graphviz gstreamer gtk gtk2 hal hfs httpd humanities iconv ide inherit-graph iproute2 ipv6 isdnlog jabber jadetex java java6 javascript jfs jpeg jpeg2k kdrive kerberos kpathsea kqemu ldap libnotify lm_sensors logrotate lua lzma lzo mad magic matroska midi mikmod mime mjpeg mmx mng mono mp3 mp4 mpeg mpi mpi-threads mudflap multilib musepack music nas nautilus ncurses netboot nls nodrm nptl nptlonly nsplugin ntfs objc objc++ objc-gc ocaml ogg omega openal opengl openmp pam pango pcre pdf perl pff php png ppl pppd prolog pstricks publishers pulseaudio python quicktime rdesktop readline reflection reiser4 reiserfs rsync ruby samba scanner science sdl session snmp sockets socks5 sourceview speex spell spl sse sse2 sse4.1 ssl ssse3 stateshook stream subversion svg sysfs syslog tagwriting tcpd tetex tex4ht tftp theora threads tiff totem truetype unicode usb v4l v4l2 valgrind vcd vim-syntax vorbis wifi wmf wxwindows x264 xcb xetex xfs xinerama xml xorg xpm xulrunner xv xvid yv12 zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(Developer notice: please add maintainer tag to metadata.xml)
is swi-prolog built with USE=gmp?
@Ryan Hill, Nop, should it be ?
it looks like it, according to http://gollem.science.uva.nl/SWI-Prolog/Manual/foreigninclude.html. i've added a check to the ppl ebuild. thanks for reporting.
Thanks !