Summary: | www/squid: fix build on GCC architectures | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Piotr Kubaj <pkubaj> | ||||
Component: | Individual Port(s) | Assignee: | Piotr Kubaj <pkubaj> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | linimon, timp87 | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(timp87) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Piotr Kubaj
2019-11-08 15:57:22 UTC
Let me test it. I'll get back soon. Please, note this > CFLAGS+= -Wno-error=deprecated-declarations was added several weeks ago to fix build with libc++ 9 https://svnweb.freebsd.org/ports?view=revision&revision=514623 (In reply to timp87 from comment #2) --disable-strict-error-checking will remove -Werror altogether, so there shouldn't be -Werror-related errors anymore. A commit references this bug: Author: pkubaj Date: Thu Dec 5 18:27:46 UTC 2019 New revision: 519101 URL: https://svnweb.freebsd.org/changeset/ports/519101 Log: www/squid: fix build on GCC architectures Add --disable-strict-error-checking to CONFIGURE_ARGS for everyone. It adds -Werror, which is against ports tree policy and causes: Icmp6.cc: In member function 'virtual void Icmp6::SendEcho(Ip::Address&, int, const char*, int)': Icmp6.cc:165:72: error: converting a packed 'icmp6_hdr' pointer (alignment 1) to a 'short unsigned int' pointer (alignment 2) may result in an unaligned pointer value [-Werror=address-of-packed-member] 165 | icmp->icmp6_cksum = CheckSum((unsigned short *) icmp, icmp6_pktsize); | ^ In file included from Icmp6.h:20, from Icmp6.cc:18: /usr/include/netinet/icmp6.h:72:8: note: defined here 72 | struct icmp6_hdr { | ^~~~~~~~~ At global scope: cc1plus: error: unrecognized command line option '-Wno-deprecated-register' [-Werror] cc1plus: all warnings being treated as errors PR: 241804 Approved by: timp87@gmail.com (maintainer), mentors (implicit approval) Changes: head/www/squid/Makefile |