Project

General

Profile

Actions

Bug #2277

closed

network.c does not compile on Solaris

Added by rcsheets over 13 years ago. Updated 2 months ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
No

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'
Actions #2

Updated by stbuehler about 8 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.

Actions #3

Updated by gstrauss about 8 years ago

That was the whole patch.

Probably ok to withdraw this ticket. Any modern OS supporting IPv6 should support IPV6_V6ONLY.

Actions #4

Updated by stbuehler about 8 years ago

  • Status changed from New to Wontfix
Actions #5

Updated by gstrauss 2 months 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)

Actions

Also available in: Atom