Created attachment 187538 [details] patch This patch fixes the build with IPV6 disabled. It's already upstream: https://redmine.lighttpd.net/issues/2832 Tested on 11.1-STABLE.
A commit references this bug: Author: madpilot Date: Sat Oct 28 16:00:57 UTC 2017 New revision: 453061 URL: https://svnweb.freebsd.org/changeset/ports/453061 Log: Fix runtime problem when lighttpd is built with IPV6 option turned on. PR: 223288 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> (maintainer) Obtained from: https://redmine.lighttpd.net/issues/2832 Changes: head/www/lighttpd/Makefile head/www/lighttpd/files/patch-patch-src__network.c
Committed. Thanks!
(In reply to Guido Falsi from comment #2) It was actually a build-time problem, so a PORTREVISION bump was completely unnecessary.
Before committing I made a quick test with the port as is and it actually built for me, with IPV6 option on, which is the default. I also did test it with IPV6 on and off before committing the update on the previous PR. Also I cannot find any lighttpd build failure on the pkg-fallout mailing list [1], so it did build successfully in the cluster too. So I actually think the PORTREVISION bump was needed. [1] https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/
Ooops. You are right. I just noticed misread the subject of this PR as "with IPV6". My fault. I stand corrected. Unluckily there's nothing that can be done once portrevision is bumped.
This port still won't build for me with IPV6 turned off. Builds fine with it on. 11.1-RELEASE-p2 Errors in network.c referencing 6 vs 4 issues: eg. network.c:82:30: error: no member named 'sin6_port' in 'struct sockaddr_in'; did you mean 'sin_port'? network.c:82:25: error: no member named 'ipv6' in 'union sock_addr'; did you mean 'ipv4'? network.c:82:30: error: no member named 'sin6_port' in 'struct sockaddr_in'; did you mean 'sin_port'? In make config I only have BZIP2, DOCS enabled. If I turn on IPV6 it builds.
Created attachment 187611 [details] patch Sorry, here's a correct patch. Note that this is a SVN patch, you can't just drop it into files/.
Changing status.
A commit references this bug: Author: madpilot Date: Tue Oct 31 15:26:06 UTC 2017 New revision: 453242 URL: https://svnweb.freebsd.org/changeset/ports/453242 Log: - Really fix build when IPV6 option is disabled - Correctly rename patch file PR: 223288 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> (maintainer) Reported by: edgeman@gmail.com Changes: head/www/lighttpd/files/patch-patch-src__network.c head/www/lighttpd/files/patch-src_network.c
Fix committed. The last patch you posted still contained errors, #elif in place of #else and ipv in place of ipv4. Anyway I did an hasty job on my previous commit which is all my fault. I committed a fixed version of the patch.
Builds for me now. Thanks!