svn commit: r499648 - head/archivers/libcabinet/files

Jan Beich jbeich at FreeBSD.org
Mon Apr 22 17:52:05 UTC 2019


Tobias Kortkamp <tobik at FreeBSD.org> writes:

> Author: tobik
> Date: Mon Apr 22 14:34:15 2019
> New Revision: 499648
> URL: https://svnweb.freebsd.org/changeset/ports/499648
>
> Log:
>   archivers/libcabinet: Unbreak build on recent CURRENT
>   
>   c++  -O2 -pipe -fstack-protector -fno-strict-aliasing   -Wno-deprecated  -std=c++11 -Wno-c++11-extensions  -c bstring.cpp -o bstring.o
>   In file included from bstring.cpp:16:
>   ./bstring.h:59:40: error: use of undeclared identifier 'strlwr'; did you mean 'strlen'?
>                   b_string& StrLwr() { if(str != NULL) strlwr(str); return *this; }
>                                                        ^~~~~~
>                                                        strlen
>   
>   http://beefy12.nyi.freebsd.org/data/head-amd64-default/p499421_s346424/logs/errors/libcabinet-0.30_2.log
>   
>   This is caused by having a CXXSTD with default value of c++11 in
>   bsd.sys.mk now.  Set CXXSTD to gnu++98 explicitly.

CXXSTD is nop on FreeBSD < 13 but Clang >= 6 defaults to C++14. The actual
issue here is not C++ standard version but GNU extensions.

See also https://reviews.freebsd.org/D19895 created my report in
https://lists.freebsd.org/pipermail/svn-src-head/2019-April/123993.html


More information about the svn-ports-all mailing list