www-client/lynx-2.8.5 fails to compile with the following error: gcc -DHAVE_CONFIG_H -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE -I../../.. -I../../../src -I../../.. -I../../../src -I../../../WWW/Library/Implementation -O2 -pipe -DANSI_VARARGS -I../../../WWW/Library/Implementation/ -DACCESS_AUTH -c ../../../WWW/Library/Implementation/HTTCP.c ../../../WWW/Library/Implementation/HTTCP.c: In function 'HTParseInet': ../../../WWW/Library/Implementation/HTTCP.c:1329: error: 'struct hostent' has no member named 'h_addr' make[1]: *** [HTTCP.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: Mac OS X Version: 10.4.2 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" 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 ppc-macos userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 65722 [details, diff] Use h_addr_list[ 0 ] instead of h_addr Lynx defines _POSIX_C_SOURCE which doesn't provide a definition for h_addr, so we use h_addr_list[ 0 ] instead (see netdb.h:#121).
I don't know who decided to mark that package as stable on ppc-macos, but it was indeed broken as hell :( I added your patch Mark (conditional for userland_Darwin -- happy kito? ;) ) that indeed fixed the issue. lynx compiles with USE="ssl nls ipv6" didn't dare to lower the keyword to ~ppc-macos due to portage dependency stuff, so kept ppc-macos -> if someone knows better, do it please This might be an issue for BSD too? inCVS Adding a patch that actually allows to compile on ppc-macos (was already marked stable! :( )