The configure script of lighttpd will detect sys/sendfile.h on Gentoo/uclibc systems, but this feature is not supported by uclibc. The binary produced will not be able to transfer files (including web objects such as images). By adding the following line after econf in the ebuild it will work on uclibc systems: use uclibc && sed -i -e "s/^#define\ HAVE_SENDFILE.*$//" config.h This solution was suggested to me by 'weigon_' on #lighttpd@irc.freenode.net
Builds for me. [ebuild R ] www-servers/lighttpd-1.3.10-r1 -ldap -mysql -php -ssl -xattr 0 kB uclibc also provides this symbol and include file. (perhaps some other error your encountering) ?
David said on IRC that it builds for him but the runtime is what seems to fail. I know uClibc provides the stubs to the kernel sendfile() So this is probably a kernel problem.
I'll see if I can investigate this further next week.
Please see if you are still experiencing this with 1.4.x
Please reopen when have some more info for me.