tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.23k stars 1.47k forks source link

Build error version 1.8.36 for Go #3067

Closed yuminekosan closed 1 month ago

yuminekosan commented 2 months ago

Hi, it's me again. I built a tdlib image based on commit 87d881071fe514936bb17029e96761141287d2be using dockerfile

FROM alpine:3.15 as tdlib

WORKDIR /

RUN apk add --no-cache \
        ca-certificates

RUN apk add --no-cache --virtual .build-deps \
        g++ \
        make \
        cmake \
        git \
        gperf \
        libressl-dev \
        zlib-dev \
        zlib-static \
        linux-headers;

RUN git clone https://github.com/tdlib/td.git && \
    cd td && \
    git checkout 87d881071fe514936bb17029e96761141287d2be && \
    mkdir build && \
    cd build && \
    cmake -DCMAKE_BUILD_TYPE=Release .. && \
    cmake --build . && \
    make install

and the repository github.com/FordSmh/go-tdlib which I built using a special parser from the same commit. To build the application, I use the following Dockerfile

FROM golang:1.18.5-alpine3.16 as dev

RUN apk update && \
    apk add --no-cache bash ca-certificates git openssh make gcc  \
    alpine-sdk openssl-dev gperf openssh gcc libressl-dev \
    zlib-dev \
    zlib-static \
    linux-headers \
    cmake && \
    rm -fr /var/cache/apk/*

COPY --from=yumineko/tdlib:1.8.3 /usr/local/include/td /usr/local/include/td
COPY --from=yumineko/tdlib:1.8.3 /usr/local/lib/libtd* /usr/local/lib/
COPY --from=yumineko/tdlib:1.8.3 /usr/lib/libssl.a /usr/local/lib/libssl.a
COPY --from=yumineko/tdlib:1.8.3 /usr/lib/libcrypto.a /usr/local/lib/libcrypto.a
COPY --from=yumineko/tdlib:1.8.3 /lib/libz.a /usr/local/lib/libz.a

WORKDIR ${GOPATH}/src/gitlab.com/...

RUN addgroup -g 1000 monitoring-user \
    && adduser -u 1000 -G monitoring-user -s /bin/sh -D monitoring-user

RUN chown -R monitoring-user ./

USER monitoring-user

ENTRYPOINT []

in docker-compose.bml is nothing special, I build an image based on the dockerfile above and use it. The only thing is that I do not build a binary file, but run main.go file

he sends this to me in response to the container logs when it is launched

# github.com/FordSmh/go-tdlib
2024-09-27T15:14:50.208198352Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::on_update(td::tl::unique_ptr<td::telegram_api::updateDcOptions>, td::Promise<td::Unit>&&)':
2024-09-27T15:14:50.208204735Z UpdatesManager.cpp:(.text._ZN2td14UpdatesManager9on_updateENS_2tl10unique_ptrINS_12telegram_api15updateDcOptionsEEEONS_7PromiseINS_4UnitEEE+0x562): undefined reference to `td::mtproto::ProxySecret::from_binary(td::Slice, bool)'
2024-09-27T15:14:50.208207099Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConfigManager.cpp.o): in function `td::decode_config(td::Slice)':
2024-09-27T15:14:50.208209564Z ConfigManager.cpp:(.text._ZN2td13decode_configENS_5SliceE+0x1ab): undefined reference to `td::mtproto::RSA::from_pem_public_key(td::Slice)'
2024-09-27T15:14:50.208211548Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConfigManager.cpp:(.text._ZN2td13decode_configENS_5SliceE+0x667): undefined reference to `td::mtproto::RSA::decrypt_signature(td::Slice, td::MutableSlice) const'
2024-09-27T15:14:50.208213862Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConfigManager.cpp.o): in function `td::DcOptions::DcOptions(std::vector<td::tl::unique_ptr<td::telegram_api::dcOption>, std::allocator<td::tl::unique_ptr<td::telegram_api::dcOption> > > const&)':
2024-09-27T15:14:50.208216637Z ConfigManager.cpp:(.text._ZN2td9DcOptionsC2ERKSt6vectorINS_2tl10unique_ptrINS_12telegram_api8dcOptionEEESaIS6_EE[_ZN2td9DcOptionsC5ERKSt6vectorINS_2tl10unique_ptrINS_12telegram_api8dcOptionEEESaIS6_EE]+0x402): undefined reference to `td::mtproto::ProxySecret::from_binary(td::Slice, bool)'
2024-09-27T15:14:50.208218861Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConfigManager.cpp.o): in function `td::ConfigRecoverer::do_on_simple_config(td::Result<td::tl::unique_ptr<td::telegram_api::help_configSimple> >)':
2024-09-27T15:14:50.208224822Z ConfigManager.cpp:(.text._ZN2td15ConfigRecoverer19do_on_simple_configENS_6ResultINS_2tl10unique_ptrINS_12telegram_api17help_configSimpleEEEEE[_ZN2td15ConfigRecoverer19do_on_simple_configENS_6ResultINS_2tl10unique_ptrINS_12telegram_api17help_configSimpleEEEEE]+0x593): undefined reference to `td::mtproto::ProxySecret::from_binary(td::Slice, bool)'
2024-09-27T15:14:50.208227578Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(DeviceTokenManager.cpp.o): in function `td::DeviceTokenManager::register_device(td::tl::unique_ptr<td::td_api::DeviceToken>, std::vector<td::UserId, std::allocator<td::UserId> > const&, td::Promise<td::tl::unique_ptr<td::td_api::pushReceiverId> >)':
2024-09-27T15:14:50.208230353Z DeviceTokenManager.cpp:(.text._ZN2td18DeviceTokenManager15register_deviceENS_2tl10unique_ptrINS_6td_api11DeviceTokenEEERKSt6vectorINS_6UserIdESaIS7_EENS_7PromiseINS2_INS3_14pushReceiverIdEEEEE+0xc82): undefined reference to `td::mtproto::DhHandshake::calc_key_id(td::Slice)'
2024-09-27T15:14:50.208243418Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(LinkManager.cpp.o): in function `td::LinkManager::get_proxy_link[abi:cxx11](td::Proxy const&, bool)':
2024-09-27T15:14:50.208245161Z LinkManager.cpp:(.text._ZN2td11LinkManager14get_proxy_linkB5cxx11ERKNS_5ProxyEb+0x3af): undefined reference to `td::mtproto::ProxySecret::get_encoded_secret[abi:cxx11]() const'
2024-09-27T15:14:50.208247005Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(LinkManager.cpp.o): in function `td::LinkManager::parse_tg_link_query(td::Slice, bool)':
2024-09-27T15:14:50.208248798Z LinkManager.cpp:(.text._ZN2td11LinkManager19parse_tg_link_queryENS_5SliceEb+0x16cd): undefined reference to `td::mtproto::ProxySecret::from_link(td::Slice, bool)'
2024-09-27T15:14:50.208250491Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: LinkManager.cpp:(.text._ZN2td11LinkManager19parse_tg_link_queryENS_5SliceEb+0x2bbe): undefined reference to `td::mtproto::ProxySecret::get_encoded_secret[abi:cxx11]() const'
2024-09-27T15:14:50.208252656Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(LinkManager.cpp.o): in function `td::LinkManager::parse_t_me_link_query(td::Slice, bool)':
2024-09-27T15:14:50.208254219Z LinkManager.cpp:(.text._ZN2td11LinkManager21parse_t_me_link_queryENS_5SliceEb+0x12e7): undefined reference to `td::mtproto::ProxySecret::from_link(td::Slice, bool)'
2024-09-27T15:14:50.208255711Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: LinkManager.cpp:(.text._ZN2td11LinkManager21parse_t_me_link_queryENS_5SliceEb+0x1733): undefined reference to `td::mtproto::ProxySecret::get_encoded_secret[abi:cxx11]() const'
2024-09-27T15:14:50.208257334Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::get_proxy_object(int) const':
2024-09-27T15:14:50.208258867Z ConnectionCreator.cpp:(.text._ZNK2td17ConnectionCreator16get_proxy_objectEi+0xdc): undefined reference to `td::mtproto::ProxySecret::get_encoded_secret[abi:cxx11]() const'
2024-09-27T15:14:50.208260481Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::on_test_proxy_handshake(unsigned long, td::Result<td::unique_ptr<td::mtproto::AuthKeyHandshake> >)':
2024-09-27T15:14:50.208262334Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator23on_test_proxy_handshakeEmNS_6ResultINS_10unique_ptrINS_7mtproto16AuthKeyHandshakeEEEEE+0x20b): undefined reference to `td::mtproto::AuthKeyHandshake::is_ready_for_finish() const'
2024-09-27T15:14:50.208263907Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::mtproto::ConnectionManager::ConnectionToken::~ConnectionToken()':
2024-09-27T15:14:50.208265470Z ConnectionCreator.cpp:(.text._ZN2td7mtproto17ConnectionManager15ConnectionTokenD2Ev[_ZN2td7mtproto17ConnectionManager15ConnectionTokenD5Ev]+0x6e): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208270209Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::ConnectionData::~ConnectionData()':
2024-09-27T15:14:50.208458617Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator14ConnectionDataD2Ev[_ZN2td17ConnectionCreator14ConnectionDataD5Ev]+0x87): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208461482Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `std::enable_if<td::is_callable<td::ConnectionCreator::request_raw_connection_by_ip(td::IPAddress, td::mtproto::TransportType, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >)::{lambda(td::Result<td::ConnectionCreator::ConnectionData>)#1}, td::Result<td::ConnectionCreator::ConnectionData>, void>::value, void>::type td::detail::LambdaPromise<td::ConnectionCreator::ConnectionData, td::ConnectionCreator::request_raw_connection_by_ip(td::IPAddress, td::mtproto::TransportType, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >)::{lambda(td::Result<td::ConnectionCreator::ConnectionData>)#1}>::do_ok<td::ConnectionCreator::request_raw_connection_by_ip(td::IPAddress, td::mtproto::TransportType, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >)::{lambda(td::Result<td::ConnectionCreator::ConnectionData>)#1}>(td::ConnectionCreator::ConnectionData&&)':
2024-09-27T15:14:50.208469147Z ConnectionCreator.cpp:(.text._ZN2td6detail13LambdaPromiseINS_17ConnectionCreator14ConnectionDataEZNS2_28request_raw_connection_by_ipENS_9IPAddressENS_7mtproto13TransportTypeENS_7PromiseINS_10unique_ptrINS5_13RawConnectionEEEEEEUlNS_6ResultIS3_EEE_E5do_okISE_EENSt9enable_ifIXsrNS_11is_callableIT_SD_vEE5valueEvE4typeEOS3_+0x24a): undefined reference to `td::mtproto::RawConnection::create(td::IPAddress, td::BufferedFd<td::SocketFd>, td::mtproto::TransportType, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>)'
2024-09-27T15:14:50.208472252Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::prepare_connection(td::IPAddress, td::SocketFd, td::Proxy const&, td::IPAddress const&, td::mtproto::TransportType const&, td::Slice, td::Slice, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>, td::ActorShared<td::Actor>, bool, td::Promise<td::ConnectionCreator::ConnectionData>)::Callback::~Callback()':
2024-09-27T15:14:50.208474567Z ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8CallbackD2Ev+0x86): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208476400Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::prepare_connection(td::IPAddress, td::SocketFd, td::Proxy const&, td::IPAddress const&, td::mtproto::TransportType const&, td::Slice, td::Slice, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>, td::ActorShared<td::Actor>, bool, td::Promise<td::ConnectionCreator::ConnectionData>)::Callback::~Callback()':
2024-09-27T15:14:50.208484927Z ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8CallbackD0Ev+0x84): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208488463Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::prepare_connection(td::IPAddress, td::SocketFd, td::Proxy const&, td::IPAddress const&, td::mtproto::TransportType const&, td::Slice, td::Slice, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>, td::ActorShared<td::Actor>, bool, td::Promise<td::ConnectionCreator::ConnectionData>)::Callback::on_connected()':
2024-09-27T15:14:50.208491028Z ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8Callback12on_connectedEv+0x91): undefined reference to `td::mtproto::ConnectionManager::connection_impl(td::ActorId<td::mtproto::ConnectionManager>, int)'
2024-09-27T15:14:50.208493012Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8Callback12on_connectedEv+0xe0): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208495056Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8Callback12on_connectedEv+0x1de): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208497090Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::prepare_connection(td::IPAddress, td::SocketFd, td::Proxy const&, td::IPAddress const&, td::mtproto::TransportType const&, td::Slice, td::Slice, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>, td::ActorShared<td::Actor>, bool, td::Promise<td::ConnectionCreator::ConnectionData>)::Callback::set_result(td::Result<td::BufferedFd<td::SocketFd> >)':
2024-09-27T15:14:50.208500166Z ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8Callback10set_resultENS_6ResultINS_10BufferedFdIS2_EEEE+0x25c): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208502159Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEEEN8Callback10set_resultENS_6ResultINS_10BufferedFdIS2_EEEE+0x56c): undefined reference to `td::mtproto::ConnectionManager::dec_connect()'
2024-09-27T15:14:50.208601959Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::on_test_proxy_connection_data(unsigned long, td::Result<td::ConnectionCreator::ConnectionData>)':
2024-09-27T15:14:50.208604524Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator29on_test_proxy_connection_dataEmNS_6ResultINS0_14ConnectionDataEEE+0x1d5): undefined reference to `td::mtproto::AuthKeyHandshake::AuthKeyHandshake(int, int)'
2024-09-27T15:14:50.208606147Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator29on_test_proxy_connection_dataEmNS_6ResultINS0_14ConnectionDataEEE+0x2ce): undefined reference to `td::mtproto::RawConnection::create(td::IPAddress, td::BufferedFd<td::SocketFd>, td::mtproto::TransportType, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>)'
2024-09-27T15:14:50.208609002Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator29on_test_proxy_connection_dataEmNS_6ResultINS0_14ConnectionDataEEE+0x4b2): undefined reference to `td::mtproto::HandshakeActor::HandshakeActor(td::unique_ptr<td::mtproto::AuthKeyHandshake>, td::unique_ptr<td::mtproto::RawConnection>, td::unique_ptr<td::mtproto::AuthKeyHandshakeContext>, double, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >, td::Promise<td::unique_ptr<td::mtproto::AuthKeyHandshake> >)'
2024-09-27T15:14:50.208611657Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::prepare_connection(td::IPAddress, td::SocketFd, td::Proxy const&, td::IPAddress const&, td::mtproto::TransportType const&, td::Slice, td::Slice, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>, td::ActorShared<td::Actor>, bool, td::Promise<td::ConnectionCreator::ConnectionData>)':
2024-09-27T15:14:50.208613761Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator18prepare_connectionENS_9IPAddressENS_8SocketFdERKNS_5ProxyERKS1_RKNS_7mtproto13TransportTypeENS_5SliceESC_NS_10unique_ptrINS8_13RawConnection13StatsCallbackEEENS_11ActorSharedINS_5ActorEEEbNS_7PromiseINS0_14ConnectionDataEEE+0x978): undefined reference to `vtable for td::mtproto::TlsInit'
2024-09-27T15:14:50.208615564Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::client_create_raw_connection(td::Result<td::ConnectionCreator::ConnectionData>, bool, td::mtproto::TransportType, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int)':
2024-09-27T15:14:50.208617699Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator28client_create_raw_connectionENS_6ResultINS0_14ConnectionDataEEEbNS_7mtproto13TransportTypeEjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x486): undefined reference to `td::mtproto::RawConnection::create(td::IPAddress, td::BufferedFd<td::SocketFd>, td::mtproto::TransportType, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>)'
2024-09-27T15:14:50.208622598Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator28client_create_raw_connectionENS_6ResultINS0_14ConnectionDataEEEbNS_7mtproto13TransportTypeEjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x6a0): undefined reference to `td::mtproto::create_ping_actor(td::Slice, td::unique_ptr<td::mtproto::RawConnection>, td::unique_ptr<td::mtproto::AuthData>, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >, td::ActorShared<td::Actor>)'
2024-09-27T15:14:50.208624912Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::ping_proxy_buffered_socket_fd(td::IPAddress, td::BufferedFd<td::SocketFd>, td::mtproto::TransportType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::Promise<double>)':
2024-09-27T15:14:50.208627467Z ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator29ping_proxy_buffered_socket_fdENS_9IPAddressENS_10BufferedFdINS_8SocketFdEEENS_7mtproto13TransportTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseIdEE+0xd3): undefined reference to `td::mtproto::RawConnection::create(td::IPAddress, td::BufferedFd<td::SocketFd>, td::mtproto::TransportType, td::unique_ptr<td::mtproto::RawConnection::StatsCallback>)'
2024-09-27T15:14:50.208629421Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator29ping_proxy_buffered_socket_fdENS_9IPAddressENS_10BufferedFdINS_8SocketFdEEENS_7mtproto13TransportTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseIdEE+0x1f6): undefined reference to `td::mtproto::create_ping_actor(td::Slice, td::unique_ptr<td::mtproto::RawConnection>, td::unique_ptr<td::mtproto::AuthData>, td::Promise<td::unique_ptr<td::mtproto::RawConnection> >, td::ActorShared<td::Actor>)'
2024-09-27T15:14:50.208631786Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::Status td::log_event_parse<td::Proxy>(td::Proxy&, td::Slice)':
2024-09-27T15:14:50.208634140Z ConnectionCreator.cpp:(.text._ZN2td15log_event_parseINS_5ProxyEEENS_6StatusERT_NS_5SliceE[_ZN2td15log_event_parseINS_5ProxyEEENS_6StatusERT_NS_5SliceE]+0x412): undefined reference to `td::mtproto::ProxySecret::from_link(td::Slice, bool)'
2024-09-27T15:14:50.208635793Z /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libtdcore.a(ConnectionCreator.cpp.o): in function `td::BufferSlice td::log_event_store_impl<td::Proxy>(td::Proxy const&, char const*, int)':
etc.

I told him everything I could without violating the NDA. Tell me what I did wrong

levlam commented 2 months ago

See https://github.com/tdlib/td/issues/2935.