Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 87261

Summary: lighttpd(-1.3.13) with uclibc
Product: Gentoo Linux Reporter: David Holm (RETIRED) <dholm>
Component: Current packagesAssignee: www-servers Herd (OBSOLETE) <www-servers+disabled>
Status: RESOLVED NEEDINFO    
Severity: normal CC: embedded
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Holm (RETIRED) gentoo-dev 2005-03-30 05:34:57 UTC
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
Comment 1 solar (RETIRED) gentoo-dev 2005-03-30 06:14:31 UTC
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) ?
Comment 2 solar (RETIRED) gentoo-dev 2005-03-30 08:20:46 UTC
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.
Comment 3 David Holm (RETIRED) gentoo-dev 2005-03-31 11:44:00 UTC
I'll see if I can investigate this further next week.
Comment 4 Aaron Walker (RETIRED) gentoo-dev 2005-08-26 02:02:11 UTC
Please see if you are still experiencing this with 1.4.x
Comment 5 Aaron Walker (RETIRED) gentoo-dev 2005-09-14 12:33:52 UTC
Please reopen when have some more info for me.