Bug #2277
closednetwork.c does not compile on Solaris
Description
This affects versions 1.4.27 and 1.4.28, apparently only on Solaris. Configuring lighttpd as follows:
./configure --prefix=/opt/lighttpd --without-pcre --with-openssl=/usr/local/openssl-1.0.0a --without-bzip2
I get the following output from 'make' (successful compilation units omitted):
make all-recursive Making all in src make all-am gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -DSBIN_DIR="\"/opt/lighttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/usr/local/openssl-1.0.0a/include -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT network.o -MD -MP -MF .deps/network.Tpo -c -o network.o network.c network.c: In function `network_server_init': network.c:246: error: `IPV6_V6ONLY' undeclared (first use in this function) network.c:246: error: (Each undeclared identifier is reported only once network.c:246: error: for each function it appears in.) *** Error code 1 make: Fatal error: Command failed for target `network.o' Current working directory /home/rsheets/lighttpd-1.4.27/src *** Error code 1 make: Fatal error: Command failed for target `all' Current working directory /home/rsheets/lighttpd-1.4.27/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home/rsheets/lighttpd-1.4.27 *** Error code 1 make: Fatal error: Command failed for target `all'
Updated by gstrauss about 9 years ago
Updated by stbuehler about 9 years ago
IPV6_V6ONLY
has been defined in 2003; supporting IPv6 without IPV6_V6ONLY
seems not necessary to me.
If due to some missing header or bug the macro is not defined but actually should have been, this fix suddenly becomes a security bug, listening to an address it wasn't supposed to.
Apart from that the patch looks fine - if you really want it, just apply it locally. I don't want to support this upstream though.
Updated by gstrauss about 9 years ago
That was the whole patch.
Probably ok to withdraw this ticket. Any modern OS supporting IPv6 should support IPV6_V6ONLY.
Updated by gstrauss about 1 year ago
- Category set to core
- Status changed from Wontfix to Fixed
- ASK QUESTIONS IN Forums set to No
Fixed in lighttpd 1.4.40. (commit 6c35e38f)
Also available in: Atom