[Bug 247771] [patch] mail/filtermail fails to build for FreeBSD 13.0-CURRENT

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 5 09:02:50 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247771

            Bug ID: 247771
           Summary: [patch] mail/filtermail fails to build for FreeBSD
                    13.0-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: jmc-freebsd2 at milibyte.co.uk

Created attachment 216210
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=216210&action=edit
Patch to upgrade mail/filtermail to 0.8.6

With OSVERSION: 1300094 portscout reports failure to build

c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I..
-DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. 
-I/usr/local/include -Wall -O2 -pipe -fstack-protector-strong
-fno-strict-aliasing   -MT rcfile.o -MD -MP -MF .deps/rcfile.Tpo -c -o rcfile.o
rcfile.cc
rcfile.ll:151:14: error: no viable overloaded '='
        yyin = new ifstream (sub_file.c_str ());
        ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/istream:200:20: note: candidate function not viable: no
known conversion from 'std::__1::ifstream *' (aka 'basic_ifstream<char> *') to
'std::__1::basic_istream<char>' for 1st argument; dereference the argument with
*
    basic_istream& operator=(basic_istream&& __rhs);
                   ^
/usr/include/c++/v1/istream:211:20: note: candidate function not viable: no
known conversion from 'std::__1::ifstream *' (aka 'basic_ifstream<char> *') to
'const std::__1::basic_istream<char>' for 1st argument; dereference the
argument with *
    basic_istream& operator=(const basic_istream& __rhs) = delete;
                   ^
rcfile.ll:153:15: error: cannot cast from type 'std::istream' (aka
'basic_istream<char>') to pointer type 'std::__1::ifstream *' (aka
'basic_ifstream<char> *')
        if (!((ifstream*) yyin)->is_open ())
              ^~~~~~~~~~~~~~~~

This appears to be caused by a recent update to contrib/flex from 2.5.37 to
2.6.4 where upstream changed yyin and yyout from pointers to references.

I've upgraded filtermail to 0.8.6 and added textproc/flex as a conditional
dependency for ${OSVERSION} < 1300000.

This builds and runs successfully on 13.0-CURRENT and 12.1-RELEASE-p5

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainer informed via mail

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list