tdlib / td

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

'create' does not match any declaration in 'td::SslStream' when building tdweb #1235

Closed likidu closed 3 years ago

likidu commented 3 years ago

Environment: Ubuntu 20.04 in WSL2. Clang 10.

I was trying to build tdweb by following the instructions: https://github.com/tdlib/td/blob/master/example/web/README.md

When running build-tdlib.sh, it encounter the error:

'create' does not match any declaration in 'td::SslStream' when building tdweb

1 error generated.
shared:ERROR: '/home/liydu/Works/KaiOS/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=5 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/include/libcxx -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/lib/libcxxabi/include -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/include/compat -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/include -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/include/libc -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/local/include -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/cache/wasm-obj/include -D_FILE_OFFSET_BITS=64 -I/home/liydu/Works/KaiOS/td/tdnet -I/home/liydu/Works/KaiOS/td/tdutils -I/home/liydu/Works/KaiOS/td/example/web/build/asmjs/tdutils -I/home/liydu/Works/KaiOS/td/tdactor -isystem /home/liydu/Works/KaiOS/td/example/web/build/crypto/include -std=c++14 -fno-omit-frame-pointer -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wall -Wextra -Wpointer-arith -Wcast-qual -Wsign-compare -Wno-tautological-compare -Wpointer-arith -Wvla -Wnon-virtual-dtor -Wno-unused-parameter -Wconversion -Wno-sign-conversion -Wc++14-compat-pedantic -Wdeprecated -Wno-unused-command-line-argument -Qunused-arguments -Wodr -DNDEBUG -Os -fPIC -c -DEMSCRIPTEN /home/liydu/Works/KaiOS/td/tdnet/td/net/SslStream.cpp -fno-inline-functions -Xclang -isystem/home/liydu/Works/KaiOS/emsdk/upstream/emscripten/system/include/SDL -c -o CMakeFiles/tdnet.dir/td/net/SslStream.cpp.o -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (1)
make[3]: *** [tdnet/CMakeFiles/tdnet.dir/build.make:237: tdnet/CMakeFiles/tdnet.dir/td/net/SslStream.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:730: tdnet/CMakeFiles/tdnet.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:568: CMakeFiles/td_asmjs.dir/rule] Error 2
make: *** [Makefile:298: td_asmjs] Error 2
levlam commented 3 years ago

Thanks. This was fixed in the private repository. The fix will be pushed to Github this week. You can apply this patch to fix this.

likidu commented 3 years ago

@levlam , thanks for the timely reply. After applying the diff it managed to compile. Will close it when the fix is rolled up to the repo.

levlam commented 3 years ago

The fix has been pushed to Github. Also note, that Emscripten version required for building was changed to 2.0.6.

likidu commented 3 years ago

@levlam Thanks for the message. I will go close this issue now.