[Android-tools-devel] Bug#1021628: android-platform-tools: FTBFS: error: no template named 'function' in namespace 'std'

Andreas Beckmann anbe at debian.org
Tue Oct 11 23:58:25 BST 2022


Package: android-platform-tools
Version: 33.0.1-1~exp9
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hi,

android-platform-tools/experimental recently started to FTBFS.
The version in sid is not affected.

...
clang++ -c -o packages/modules/adb/client/auth.o packages/modules/adb/client/auth.cpp -g -O2 -ffile-prefix-map=/build/android-platform-tools-33.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -std=gnu++2a -Wexit-time-destructors -Wno-non-virtual-dto
r -Wno-unused-parameter -Wno-missing-field-initializers -Wvla  -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -DPLATFORM_T
OOLS_VERSION='"33.0.1"' -DADB_HOST=1 -DADB_VERSION='"33.0.1-1~exp9"' -DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1 -Ipackages/modules/adb -Ipackages/modules/adb/crypto/include -Ipackages/modules/adb/pairing_auth/include -Ipackages/modules/adb/pairing_connection/
include -Ipackages/modules/adb/proto -Ipackages/modules/adb/tls/include -Isystem/core/diagnose_usb/include -Isystem/core/include -Isystem/core/libcrypto_utils/include -Isystem/core/libcutils/include -Isystem/libbase/include -I/usr/include/android
...
In file included from packages/modules/adb/client/auth.cpp:35:
packages/modules/adb/tls/include/adb/tls/tls_connection.h:51:31: error: no template named 'function' in namespace 'std'
    using CertVerifyCb = std::function<int(X509_STORE_CTX*)>;
                         ~~~~~^
packages/modules/adb/tls/include/adb/tls/tls_connection.h:52:28: error: no template named 'function' in namespace 'std'
    using SetCertCb = std::function<int(SSL*)>;
                      ~~~~~^
packages/modules/adb/tls/include/adb/tls/tls_connection.h:67:40: error: unknown type name 'CertVerifyCb'
    virtual void SetCertVerifyCallback(CertVerifyCb cb) = 0;
                                       ^
packages/modules/adb/tls/include/adb/tls/tls_connection.h:76:41: error: unknown type name 'SetCertCb'
    virtual void SetCertificateCallback(SetCertCb cb) = 0;
                                        ^
...
4 errors generated.
make[2]: *** [debian/system/libadb.mk:120: packages/modules/adb/client/auth.o] Error 1


Looks like a missing #include that is no longer included transitively.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: android-platform-tools_33.0.1-1~exp9.log.gz
Type: application/gzip
Size: 19662 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20221012/0e9fb373/attachment-0001.gz>


More information about the Android-tools-devel mailing list