Bug 230890 - www/tinytinyhttpd: Fix build with Clang 6
Summary: www/tinytinyhttpd: Fix build with Clang 6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL: http://beefy11.nyi.freebsd.org/data/h...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-25 14:14 UTC by Tobias Kortkamp
Modified: 2018-09-09 07:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (smatsui)


Attachments
www__tinytinyhttpd.diff (2.00 KB, patch)
2018-08-25 14:14 UTC, Tobias Kortkamp
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-25 14:14:29 UTC
The build fails with Clang 6 and soon the port will be marked as
BROKEN on 12.0 and 11.2 if we do not act.
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-25 14:14:51 UTC
Created attachment 196530 [details]
www__tinytinyhttpd.diff
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-09-09 07:16:14 UTC
A commit references this bug:

Author: tobik
Date: Sun Sep  9 07:15:23 UTC 2018
New revision: 479275
URL: https://svnweb.freebsd.org/changeset/ports/479275

Log:
  www/tinytinyhttpd: Unbreak with Clang 6

  c++ -DHAVE_CONFIG_H -I.      -O2 -pipe  -fstack-protector -fno-strict-aliasing -D_THREAD_SAFE -pthread -D_REENTRANT -MT httpd.o -MD -MP -MF .deps/httpd.Tpo -c -o httpd.o httpd.cxx
  httpd.cxx:1019:21: error: assigning to 'int' from incompatible type 'nullptr_t'
                  res_info->write = NULL;
                                    ^~~~
  httpd.cxx:1734:8: error: no matching function for call to 'sendfile'
                          if (sendfile(msgsock, res_info->read, NULL, total, NULL, NULL, 0) == 0) sent = total;
                              ^~~~~~~~

  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/tinytinyhttpd-0.0.11.log

  PR:		230890
  Submitted by:	tobik
  Approved by:	smatsui@karashi.org (maintainer timeout, 2 weeks)

Changes:
  head/www/tinytinyhttpd/files/patch-httpd.cxx