while trying to emerge bcrypt 1.1 I ran into the following problem c++ -c -g -DHAVE_CONFIG_H -o o/options.o options.cxx In file included from version.h:44, from main.cxx:33: _version.h:1: error: stray '#' in program _version.h:1: error: expected unqualified-id before '-' token main.cxx: In function 'int do_usage(OPTION*, const char*)': main.cxx:313: error: 'g_szVersion' was not declared in this scope main.cxx: In function 'int do_version(OPTION*, const char*)': main.cxx:322: error: 'g_szVersion' was not declared in this scope make: *** [main.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: app-crypt/bsign-0.4.5 failed. Reproducible: Always Steps to Reproduce: 1. 2. 3. !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.52-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh) =============================================================== == System uname: 8.2.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/ qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc emboss imagemagick nls png ppc-macos qt sdl slang tiff userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
/bin/echo on a Darwin system is BSDish echo, so doesn't understand -e argument. Hacked around this stupid Debianism by using the echo found in path. Next to that, hacking out the -static for Darwin did the trick. in prefix.