Re: New release of courier packages

Milan Obuch <[email protected]> Fri, 24 Oct 2025 10:42:46 +0200
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On Thu, 23 Oct 2025 22:31:06 -0400
Sam Varshavchik <[email protected]> wrote:

> Download: https://www.courier-mta.org/download.html
> 
> New releases of courier, courier-imap, sqwebmail, maildrop, and cone  
> packages.
> 
> Changes:
> 
> • Fixes bugs in MIME parsing routines that can result in a crash or a
> stuck process
> 

There is a problem building courier-1.5.1 (older releases as well) on
FreeBSD, starting after recent update of courier-unicode.

Excerpt from build log:

Making all in libs/rfc2045
gmake[1]: Entering directory '/work/usr/ports/mail/courier/work/courier-1.5.1/libs/rfc2045'
/usr/local/bin/gmake  all-am
gmake[2]: Entering directory '/work/usr/ports/mail/courier/work/courier-1.5.1/libs/rfc2045'
c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -Wall -I.. -I./.. -MT reformime.o -MD -MP -MF .deps/reformime.Tpo -c -o reformime.o reformime.C
In file included from reformime.C:31:
../rfc2045/rfc2045.h:950:19: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
  950 |                                 char name_buf[name.size()+1];
      |                                               ^~~~~~~~~~~~~
/usr/include/c++/v1/string_view:390:85: note: function parameter 'name' with unknown value cannot be used in a constant expression
  390 |   _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI size_type size() const _NOEXCEPT { return __size_; }
      |                                                                                     ^
../rfc2045/rfc2045.h:950:19: note: in call to 'name.size()'
  950 |                                 char name_buf[name.size()+1];
      |                                               ^~~~~~~~~~~
../rfc2045/rfc2045.h:898:43: note: declared here
  898 | auto rfc2231_attr_encode(std::string_view name,
      |                                           ^
../rfc2045/rfc2045.h:951:20: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
  951 |                                 char value_buf[value.size()+3];
      |                                                ^~~~~~~~~~~~~~
/usr/include/c++/v1/string_view:390:85: note: function parameter 'value' with unknown value cannot be used in a constant expression
  390 |   _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI size_type size() const _NOEXCEPT { return __size_; }
      |                                                                                     ^
../rfc2045/rfc2045.h:951:20: note: in call to 'value.size()'
  951 |                                 char value_buf[value.size()+3];
      |                                                ^~~~~~~~~~~~
../rfc2045/rfc2045.h:899:22: note: declared here
  899 |                          std::string_view value,
      |                                           ^
../rfc2045/rfc2045.h:1598:1: warning: 'entity_parse_meta' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
 1598 | struct rfc2045::entity_parse_meta {
      | ^
../rfc2045/rfc2045.h:84:2: note: did you mean struct here?
   84 |         class entity_parse_meta;
      |         ^~~~~
      |         struct
../rfc2045/rfc2045.h:2924:1: warning: 'headers_base' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
 2924 | struct rfc2045::headers_base {
      | ^
../rfc2045/rfc2045.h:87:2: note: did you mean struct here?
   87 |         class headers_base;
      |         ^~~~~
      |         struct
../rfc2045/rfc2045.h:3227:46: error: use 'template' keyword to treat 'headers' as a dependent template name
 3227 |                 typename rfc2045::entity::line_iter<crlf>::headers<
      |                                                            ^
      |                                                            template 
4 warnings and 1 error generated.
gmake[2]: *** [Makefile:663: reformime.o] Error 1
gmake[2]: Leaving directory '/work/usr/ports/mail/courier/work/courier-1.5.1/libs/rfc2045'
gmake[1]: *** [Makefile:504: all] Error 2
gmake[1]: Leaving directory '/work/usr/ports/mail/courier/work/courier-1.5.1/libs/rfc2045'
gmake: *** [Makefile:475: all-recursive] Error 1
*** Error code 1

(Full log is 360 kB, available on request, I'd rather not spam this
mailing list with it.)

I built courier-1.4.1 before courier-unicode update just fine. Other
packages, namely courier-unicode-2.4.0, courier-authlib-base-0.72.5, and
courier-authlib-userdb-0.72.5 build just fine. Any idea what I could do
to fix the issue?

Regards,
Milan


_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users