ACCEPT_KEYWORDS=~ppc emerge findutils ... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gnulib/lib -I../lib -I../gnulib/lib -I../intl -DLOCALEDIR=\"/usr/share/locale\" -O2 -mcpu=7450 -pipe -O2 -mcpu=7450 -pipe -c `test -f 'version.c' || echo './'`version.c gcc -O2 -mcpu=7450 -pipe -o find find.o fstype.o parser.o pred.o tree.o util.o version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a -lintl ld: warning multiple definitions of symbol _regcomp ../gnulib/lib/libgnulib.a(regex.o) definition of _regcomp in section (__TEXT,__text) /usr/lib/libSystem.dylib(regcomp.So) definition of _regcomp ld: warning multiple definitions of symbol _regexec ../gnulib/lib/libgnulib.a(regex.o) definition of _regexec in section (__TEXT,__text) /usr/lib/libSystem.dylib(regexec.So) definition of _regexec ld: warning multiple definitions of symbol _regfree ../gnulib/lib/libgnulib.a(regex.o) definition of _regfree in section (__TEXT,__text) /usr/lib/libSystem.dylib(regfree.So) definition of _regfree ld: Undefined symbols: _fstype_to_string make[3]: *** [find] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51_pre13 (default-macos-10.3, gcc-3.3, unavailable, 7.4.0 Power Macintosh powerpc) ================================================================= System uname: 7.4.0 Power Macintosh powerpc cat: /etc/gentoo-release: No such file or directory distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.57 Automake: sys-devel/automake-1.6.3 Binutils: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=7450 -pipe" CHOST="powerpc-apple-darwin" COMPILER="gcc3" 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 -mcpu=7450 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache cvs keepwork" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="macos X berkdb ldap mysql nls perl python readline ruby"
*** Bug 73246 has been marked as a duplicate of this bug. ***
Created attachment 66074 [details, diff] readlink() patch findutils-4.2.20 compiles here with the above patch, although it'll require "-collision-protect" for a successful merge as it collides with the provided utils. Portage 2.0.51.22-r2 (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 userpriv" 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 bash-completion emboss gif nls png ppc-macos slang tiff userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
FWIW, I've just tried 4.2.25 (from Gentoo/ALT overlay, as 4.2.24 doesn't built on non-GNU systems) and works without patches. It also install g-prefixed on non-GNU userlands so it won't have problems with collision-protect.
findutils-4.2.25.ebuild is now as ~ppc-macos in portage. It compiles and installs gfind and gxargs (that is find and xargs g-prefixed).