• Bug#1101237: loggedfs: FTBFS: /usr/include/unicode/localpointer.h:561:2

    From Santiago Vila@21:1/5 to All on Tue Mar 25 01:20:04 2025
    Package: src:loggedfs
    Version: 0.9+ds-4
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean
    dh_auto_clean
    make -j2 clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    rm -rf build/
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_clean
    debian/rules binary
    dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure
    debian/rules override_dh_auto_build
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_build -- easyloggingdir=/usr/include
    make -j2 "INSTALL=install --strip-program=true" easyloggingdir=/usr/include
    make[2]: Entering directory '/<<PKGBUILDDIR>>'
    mkdir build
    g++ -Wdate-time -D_FORTIFY_SOURCE=2 -o build/Filter.o -c src/Filter.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -ansi -D_FILE_OFFSET_BITS=64 -
    DFUSE_USE_VERSION=26 -DELPP_SYSLOG -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -std=c++11 `xml2-config --cflags`
    g++ -Wdate-time -D_FORTIFY_SOURCE=2 -o build/easylogging.o -c /usr/include/easylogging++.cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -ansi -D_FILE_
    OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -DELPP_SYSLOG -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -std=c++11 `xml2-config --cflags`
    g++ -Wdate-time -D_FORTIFY_SOURCE=2 -o build/Config.o -c src/Config.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -ansi -D_FILE_OFFSET_BITS=64 -
    DFUSE_USE_VERSION=26 -DELPP_SYSLOG -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -std=c++11 `xml2-config --cflags`
    In file included from /usr/include/unicode/uenum.h:25,
    from /usr/include/unicode/ucnv.h:52,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:812,
    from src/Config.h:30,
    from src/Config.cpp:25: /usr/include/unicode/localpointer.h:561:26: error: parameter declared ‘auto’
    561 | template <typename Type, auto closeFunction>
    | ^~~~ /usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
    573 | explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
    | ^
    /usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
    583 | LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
    | ^
    /usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
    599 | operator std::unique_ptr<Type, decltype(closeFunction)> () && {
    | ^ /usr/include/unicode/uenum.h:69:1: note: invalid template non-type parameter
    69 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/unicode/ucnv.h:597:1: note: invalid template non-type parameter
    597 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer, UConverter, ucnv_close);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    make[2]: *** [Makefile:20: build/Config.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    /usr/include/easylogging++.cc: In member function ‘el::Logger* el::base::RegisteredLoggers::get(const std::string&, bool)’:
    /usr/include/easylogging++.cc:1900:83: warning: loop variable ‘h’ of type ‘const std::pair<std::__cxx11::basic_string<char>, std::shared_ptr<el::LoggerRegistrationCallback> >&’ binds to a temporary constructed from type ‘std::pair<const std::__
    cxx11::basic_string<char>, std::shared_ptr<el::LoggerRegistrationCallback> >’ [-Wrange-loop-construct]
    1900 | for (const std::pair<std::string, base::type::LoggerRegistrationCallbackPtr>& h
    | ^
    /usr/include/easylogging++.cc:1900:83: note: use non-reference type ‘const std::pair<std::__cxx11::basic_string<char>, std::shared_ptr<el::LoggerRegistrationCallback> >’ to make the copy explicit or ‘const std::pair<const std::__cxx11::basic_string<
    char>, std::shared_ptr<el::LoggerRegistrationCallback> >&’ to prevent copying /usr/include/easylogging++.cc: In member function ‘void el::base::LogDispatcher::dispatch()’:
    /usr/include/easylogging++.cc:2492:74: warning: loop variable ‘h’ of type ‘const std::pair<std::__cxx11::basic_string<char>, std::shared_ptr<el::LogDispatchCallback> >&’ binds to a temporary constructed from type ‘std::pair<const std::__cxx11::
    basic_string<char>, std::shared_ptr<el::LogDispatchCallback> >’ [-Wrange-loop-construct]
    2492 | for (const std::pair<std::string, base::type::LogDispatchCallbackPtr>& h
    | ^
    /usr/include/easylogging++.cc:2492:74: note: use non-reference type ‘const std::pair<std::__cxx11::basic_string<char>, std::shared_ptr<el::LogDispatchCallback> >’ to make the copy explicit or ‘const std::pair<const std::__cxx11::basic_string<char>,
    std::shared_ptr<el::LogDispatchCallback> >&’ to prevent copying
    make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" easyloggingdir=/usr/include returned exit code 2
    make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:8: binary] Error 2
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:loggedfs, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?TMOhc3psw7MgQsO2c3rDtnJtw@21:1/5 to All on Tue Mar 25 18:00:01 2025
    Control: unmerge -1
    Control: reassign -1 src:loggedfs
    Control: tags -1 +patch

    Hi,

    Your package forces C++11 standard during compilation. However it uses
    ICU which is C++17 now. I attached a patch to use the C++17
    standard and make your package compile again.

    Regards,
    Laszlo/GCS

    RGVzY3JpcHRpb246IGZpeCBGVEJGUyB3aXRoIElDVSA3NS4xKwogVXNlIEMrKzE3IHN0YW5kYXJk IHRvIGNvbXBpbGUgd2l0aC4KQXV0aG9yOiBMYXN6bG8gQm9zem9ybWVueWkgKEdDUykgPGdjc0Bk ZWJpYW4ub3JnPgpCdWctRGViaWFuOiBodHRwczovL2J1Z3MuZGViaWFuLm9yZy8xMTAxMjM3CkZv cndhcmRlZDogbm8KTGFzdC1VcGRhdGU6IDIwMjUtMDMtMjUKCi0tLQoKLS0tIGxvZ2dlZGZzLTAu OStkcy5vcmlnL01ha2VmaWxlCisrKyBsb2dnZWRmcy0wLjkrZHMvTWFrZWZpbGUKQEAgLTEsNSAr MSw1IEBACiBDWFg/PWcrKwotQ1hYRkxBR1MrPS1XYWxsIC1hbnNpIC1EX0ZJTEVfT0ZGU0VUX0JJ VFM9NjQgLURGVVNFX1VTRV9WRVJTSU9OPTI2IC1ERUxQUF9TWVNMT0cgLURFTFBQX05PX0RFRkFV TFRfTE9HX0ZJTEUgLURFTFBQX1RIUkVBRF9TQUZFIC1zdGQ9YysrMTEgYHhtbDItY29uZmlnIC0t Y2ZsYWdzYAorQ1hYRkxBR1MrPS1XYWxsIC1hbnNpIC1EX0ZJTEVfT0ZGU0VUX0JJVFM9NjQgLURG VVNFX1VTRV9WRVJTSU9OPTI2IC1ERUxQUF9TWVNMT0cgLURFTFBQX05PX0RFRkFVTFRfTE9HX0ZJ TEUgLURFTFBQX1RIUkVBRF9TQUZFIC1zdGQ9YysrMTcgYHhtbDItY29uZmlnIC0tY2ZsYWdzYAog TERGTEFHUys9LVdhbGwgLWFuc2kgLWxwY3JlMi04IC1sZnVzZSBgeG1sMi1jb25maWcgLS1saWJz YCAtbHB0aHJlYWQKIHNyY2Rpcj1zcmMKIGVhc3lsb2dnaW5nZGlyPXZlbmRvci9naXRodWIuY29t L211ZmxpaHVuL2Vhc3lsb2dnaW5ncHAvc3JjCg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)