The installation of dev-tex/luatex-0.30.1 failed with linker error: /bin/sh ../libtool --mode=link i686-apple-darwin8-g++ -o luatex luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o luatexdir/libpdf.a -lpng -lz -L/Users/tetsushi/Gentoo/usr/lib -lpoppler ../../libs/md5/md5.o ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a ../../libs/slnunicode/slnunico.o ../../libs/luazip/src/luazip.o -L/Users/tetsushi/Gentoo/usr/lib -lzzip -lz ../../libs/luafilesystem/src/lfs.o ../../libs/luasocket/src/socket.a ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o ../../libs/luafontforge/libff.a /Users/tetsushi/Gentoo/usr/lib/libmplib/mplib.a lib/lib.a ../kpathsea/libkpathsea.la -lm i686-apple-darwin8-g++ -o luatex luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o ../../libs/md5/md5.o ../../libs/slnunicode/slnunico.o ../../libs/luazip/src/luazip.o ../../libs/luafilesystem/src/lfs.o ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o luatexdir/libpdf.a -L/Users/tetsushi/Gentoo/usr/lib -lpng -lpoppler ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a -lzzip -lz ../../libs/luasocket/src/socket.a ../../libs/luafontforge/libff.a /Users/tetsushi/Gentoo/usr/lib/libmplib/mplib.a lib/lib.a ../kpathsea/.libs/libkpathsea.a -lm ld warning: duplicate dylib /Users/tetsushi/Gentoo/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc_s.1.dylib Undefined symbols: "_swapcontext", referenced from: _coco_main in liblua.a(lcoco.o) _luaCOCO_resume in liblua.a(lcoco.o) _luaCOCO_yield in liblua.a(lcoco.o) "_getcontext", referenced from: _lua_newcthread in liblua.a(lcoco.o) "_makecontext", referenced from: _lua_newcthread in liblua.a(lcoco.o) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [luatex] Error 1 * ERROR: dev-tex/luatex-0.30.1 failed: * failed to build luatex * * Call stack: * ebuild.sh: 49: <call src_compile> * environment:2464: emake LIBMPLIBDEP="${EPREFIX}/usr/$(get_libdir)/libmplib/mplib.a" LDZZIPLIB="$(pkg-config --libs zziplib)" ZZIPLIBINC="$(pkg-config --cflags zziplib)" LIBXPDFDEP="" LDLIBXPDF="$(pkg-config --libs poppler)" LIBXPDFINCLUDE="$(pkg-config --cflags poppler)" LIBXPDFCPPFLAGS="$(pkg-config --cflags poppler)" LIBPNGINCLUDES="$(pkg-config --cflags libpng)" ZLIBSRCDIR="." ARFLAGS="rcs" luatex || die "failed to build luatex" * I'm on Intel Mac / Tiger. (pipping said on IRC that ppc/Tiger and Intel/Leopard are fine.) emerge --info: Portage 2.2.00.11700-prefix (default-prefix/darwin/macos/10.4/x86, gcc-4.0.1, unavailable, 8.11.1 i386) ================================================================= System uname: Darwin-8.11.1-i386-32bit Timestamp of tree: Mon, 20 Oct 2008 13:41:33 +0000 distcc 2.18.3-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r8 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/gcc-config: 1.4.0-r04.5 sys-devel/libtool: 1.5.26 ACCEPT_KEYWORDS="x86-macos ~x86-macos" CBUILD="i686-apple-darwin8" CFLAGS="-O2 -march=nocona -pipe" CHOST="i686-apple-darwin8" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=nocona -pipe" DISTDIR="/Users/tetsushi/Gentoo/usr/portage/distfiles" EPREFIX="/Users/tetsushi/Gentoo" FEATURES="distlocks nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="C" LDFLAGS="" LINGUAS="ja en it" MAKEOPTS="-j1" PKGDIR="/Users/tetsushi/Gentoo/usr/portage/packages" 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="/Users/tetsushi/Gentoo/var/tmp" PORTDIR="/Users/tetsushi/Gentoo/usr/portage" PORTDIR_OVERLAY="/Users/tetsushi/Gentoo/usr/local/portage/layman/prefix-users /Users/tetsushi/Gentoo/usr/portage/local/forest" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua cjk coreaudio cracklib gif jpeg midi mmx mmxext ncurses nls objc objc++ png prefix readline sse sse2 ssl unicode x86-macos zlib" 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja en it" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
COCOCFLAGS= -DCOCO_USE_SETJMP so the whole of swapcontext, makecontext and getcontext shouldn't be used at all...
0.30.2 succeeded to compile.
Good, the old version isn't in the tree anymore, so upstream apparently fixed it. Thanks!