tdlib / td

Cross-platform library for building Telegram clients

Home Page:https://core.telegram.org/tdlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mac compile tdlib problem

yg66 opened this issue · comments

commented

local environment

  • clang version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  • openssl version: OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)
  • gperf version: GNU gperf 3.1
  • cmake version: cmake version 3.10.2
  • zlib version:v1.2.11
  • tdlib build version: v1.8.0 (commit_hash: b3ab664)

After the build, using the golang client to reference the compiled static library, execution to Gzip.cpp reported an error:
[ 0][t 4][1718593876.283946037][Status.h:261][#1][!Session:1:main] Unexpected Status [Error : 0 : zlib inflate init failed: -2] in file /ClionProjects/github.com/tdlib/td/tdutils/td/utils/Gzip.cpp at line 159

How to deal with this problem? Does it have anything to do with the compilation environment/version?

The error should mean incorrect zlib usage, but zlib 1.2.11 is definitely supported and works. It can also happen in the case of heap corruption by other parts of the app, but this is unlikely. Also, if the app has been successfully built it should work.