if hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/lib/lighttpd\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -march=2.0 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wall -W -Wshadow -pedantic -MT network_writev.o -MD -MP -MF ".deps/network_writev.Tpo" -c -o network_writev.o network_writev.c; \ then mv -f ".deps/network_writev.Tpo" ".deps/network_writev.Po"; else rm -f ".deps/network_writev.Tpo"; exit 1; fi if hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/lib/lighttpd\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -march=2.0 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wall -W -Wshadow -pedantic -MT network_solaris_sendfilev.o -MD -MP -MF ".deps/network_solaris_sendfilev.Tpo" -c -o network_solaris_sendfilev.o network_solaris_sendfilev.c; \ then mv -f ".deps/network_solaris_sendfilev.Tpo" ".deps/network_solaris_sendfilev.Po"; else rm -f ".deps/network_solaris_sendfilev.Tpo"; exit 1; fi if hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/lib/lighttpd\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -march=2.0 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wall -W -Wshadow -pedantic -MT network_openssl.o -MD -MP -MF ".deps/network_openssl.Tpo" -c -o network_openssl.o network_openssl.c; \ then mv -f ".deps/network_openssl.Tpo" ".deps/network_openssl.Po"; else rm -f ".deps/network_openssl.Tpo"; exit 1; fi network_writev.c: In function `network_write_chunkqueue_writev': network_writev.c:265: error: `POSIX_MADV_WILLNEED' undeclared (first use in this function) network_writev.c:265: error: (Each undeclared identifier is reported only once network_writev.c:265: error: for each function it appears in.) make[2]: *** [network_writev.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/lighttpd-1.4.10/work/lighttpd-1.4.10/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/lighttpd-1.4.10/work/lighttpd-1.4.10' make: *** [all] Error 2 !!! ERROR: www-servers/lighttpd-1.4.10 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. POSIX_MADV_WILLNEED is not defined in currently available glibc's include files. See http://bugs.gentoo.org/show_bug.cgi?id=119050#c15 # emerge --info Portage 2.1_pre4-r1 (default-linux/hppa/2005.0, gcc-3.4.5, glibc-2.3.4.20040808-r1, 2.6.15-pa1 parisc) ================================================================= System uname: 2.6.15-pa1 parisc PA8500 (PCX-W) Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="hppa" AUTOCLEAN="yes" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-O2 -pipe -march=2.0" CHOST="hppa2.0-unknown-linux-gnu" 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/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://polly.a.la.maison/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://polly/portage" USE="hppa berkdb bitmap-fonts crypt cups foomaticdb fortran gdbm imlib libwww ncurses pam perl pic python readline ruby spell ssl tcpd truetype-fonts type1-fonts xml2 zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
FYI, stock 1.4.11 compiles OK on same setup
This is a bug in glibc. The POSIX_MADV_* defines are missing from bits/mman.h on hppa. I've mailed upstream with a patch about that.
Don't worry, 1.4.11 compiles & works better. See bug #126603
Anyway, the new glibc fixes this :) You'll need 2.3.6-r4 on hppa.