Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jul 2020 09:02:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247771] [patch] mail/filtermail fails to build for FreeBSD 13.0-CURRENT
Message-ID:  <bug-247771-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247771

            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@FreeBSD.org
          Reporter: jmc-freebsd2@milibyte.co.uk

Created attachment 216210
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216210&action=
=3Dedit
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=3D\"/usr/local/share/locale\" -I../intl -I.. -I../include -I.=20
-I/usr/local/include -Wall -O2 -pipe -fstack-protector-strong
-fno-strict-aliasing   -MT rcfile.o -MD -MP -MF .deps/rcfile.Tpo -c -o rcfi=
le.o
rcfile.cc
rcfile.ll:151:14: error: no viable overloaded '=3D'
        yyin =3D 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=3D(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=3D(const basic_istream& __rhs) =3D 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@FreeBSD.org> ---
Maintainer informed via mail

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247771-7788>