While trying to emerge dev-lang/ferite-0.99.6 I ran into the following problem gcc -D_REENTRANT -DUSE_PTHREAD -DTHREAD_SAFE -I. -I. -I../../.. -I../../../libs/aphex/include - I../../../include -I/usr/include -I/usr/include -O2 -pipe -c aphex_match.c -o aphex_match.o >/dev/ null 2>&1 mv -f .libs/aphex_match.lo aphex_match.lo /bin/sh ../../../libtool --mode=compile gcc -D_REENTRANT -DUSE_PTHREAD -DTHREAD_SAFE -I. -I. - I../../.. -I../../../libs/aphex/include -I../../../include -I/usr/include -I/usr/include -O2 -pipe -c -o aphex_notify.lo `test -f 'aphex_notify.c' || echo './'`aphex_notify.c rm -f .libs/aphex_thread.lo gcc -D_REENTRANT -DUSE_PTHREAD -DTHREAD_SAFE -I. -I. -I../../.. -I../../../libs/aphex/include - I../../../include -I/usr/include -I/usr/include -O2 -pipe -c aphex_thread.c -fno-common -DPIC - o .libs/aphex_thread.lo rm -f .libs/aphex_notify.lo gcc -D_REENTRANT -DUSE_PTHREAD -DTHREAD_SAFE -I. -I. -I../../.. -I../../../libs/aphex/include - I../../../include -I/usr/include -I/usr/include -O2 -pipe -c aphex_notify.c -fno-common -DPIC - o .libs/aphex_notify.lo aphex_notify.c: In function 'aphex_notify_can_read_with_timeout': aphex_notify.c:22: error: 'errno' undeclared (first use in this function) aphex_notify.c:22: error: (Each undeclared identifier is reported only once aphex_notify.c:22: error: for each function it appears in.) aphex_notify.c:22: error: 'EAGAIN' undeclared (first use in this function) aphex_notify.c:22: error: 'EINTR' undeclared (first use in this function) make[4]: *** [aphex_notify.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... gcc -D_REENTRANT -DUSE_PTHREAD -DTHREAD_SAFE -I. -I. -I../../.. -I../../../libs/aphex/include - I../../../include -I/usr/include -I/usr/include -O2 -pipe -c aphex_thread.c -o aphex_thread.o >/dev/ null 2>&1 mv -f .libs/aphex_thread.lo aphex_thread.lo make[3]: *** [all-recursive] 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.22-r3 (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" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin8" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin8" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/ share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /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 aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 72008 [details, diff] ferite-0.99.6-darwin.patch Applying this nice patch solves the compilation problems, but gets stuck on the linking part...
ferite-1.0.2 installs fine in prefix.