while trying to emerge 7plus 2.25 I ran into the following problem >>> Source unpacked. gcc -c -O2 -pipe -Wall 7plus.c gcc -c -O2 -pipe -Wall encode.c encode.c: In function 'encode_file': encode.c:18: error: 'MAXPATH' undeclared (first use in this function) encode.c:18: error: (Each undeclared identifier is reported only once encode.c:18: error: for each function it appears in.) encode.c:18: error: 'MAXFNAME' undeclared (first use in this function) encode.c:20: error: 'MAXDRIVE' undeclared (first use in this function) encode.c:20: error: 'MAXDIR' undeclared (first use in this function) encode.c:42: warning: implicit declaration of function 'unlink' encode.c:116: error: 'PATHCHAR' undeclared (first use in this function) encode.c:117: error: 'PATHSEP' undeclared (first use in this function) 7plus.c:106: error: 'MAXDRIVE' undeclared here (not in a function) 7plus.c:106: error: 'MAXDIR' undeclared here (not in a function) 7plus.c:106: error: 'MAXFILE' undeclared here (not in a function) 7plus.c:106: error: 'MAXEXT' undeclared here (not in a function) 7plus.c:110: error: 'MAXPATH' undeclared here (not in a function) 7plus.c: In function 'go_at_it':encode.c:180: warning: implicit declaration of function 'exit' encode.c:180: warning: incompatible implicit declaration of built-in function 'exit' encode.c:383: warning: incompatible implicit declaration of built-in function 'exit' encode.c:22: warning: unused variable 'searchbin' encode.c:20: warning: unused variable 'format_file' 7plus.c:604: warning: implicit declaration of function 'malloc' 7plus.c:604: warning: incompatible implicit declaration of built-in function 'malloc' 7plus.c:621: warning: incompatible implicit declaration of built-in function 'malloc' 7plus.c:694: warning: implicit declaration of function 'isatty' 7plus.c:740: warning: incompatible implicit declaration of built-in function 'malloc' 7plus.c:746: warning: implicit declaration of function 'exit' 7plus.c:746: warning: incompatible implicit declaration of built-in function 'exit' 7plus.c:751: warning: implicit declaration of function 'free' 7plus.c:759: warning: incompatible implicit declaration of built-in function 'exit' 7plus.c:484: warning: unused variable 'argname' encode.c:20: warning: unused variable 'inpath' encode.c:19: warning: unused variable 'orgname' encode.c:18: warning: unused variable 'filename' encode.c:18: warning: unused variable 'hdrname' encode.c:18: warning: unused variable 'destname' encode.c: In function 'top_bottom': encode.c:848: error: 'MAXFNAME' undeclared (first use in this function) encode.c:848: error: 'MAXEXT' undeclared (first use in this function) make: *** [7plus.o] Error 1 make: *** Waiting for unfinished jobs.... encode.c:848: warning: unused variable '__ext' encode.c:848: warning: unused variable '__file' make: *** [encode.o] Error 1 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 /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 tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
I have no guts to start patching this for darwin...