Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build TDEngine3.0 error #22679

Closed
changshun-shi opened this issue Aug 31, 2023 · 2 comments
Closed

build TDEngine3.0 error #22679

changshun-shi opened this issue Aug 31, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@changshun-shi
Copy link

changshun-shi commented Aug 31, 2023

Bug Description
Compile Failed in the latest MacOS version with clang 16.0.0.
It's shown as a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
I find solution in this issue(madler/zlib#633), it has been resolved in newer version(Maybe update your fork one is perfectly right). And then I update the zlib_CMakeLists.txt.in, set GIT_REPOSITORY=https://github.com/madler/zlib.git and GIT_TAG=v1.3, the zlib can be compiled successfully.
However, when I fix it, I find a new one, which is as follows:

TDengine/source/libs/executor/src/aggregateoperator.c:482:84: error: passing arguments to 'terrstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
    qError("Init stream agg supporter failed since %s, key:%s, tempDir:%s", terrstr(code), pKey, tsTempDir);
                                                                                   ^

emmm, Maybe it's a bug. Please fix.
thank you

To Reproduce
Steps to reproduce the behavior:
Just build it with followed Environment

Screenshots
image
image

Environment (please complete the following information):

  • OS: MacOS Ventura (13.5) M2
  • TDengine Version [e.g. 3.0]
  • clang: Homebrew clang version 16.0.0 Target: x86_64-apple-darwin22.6.0

Additional Context
no

@changshun-shi changshun-shi added the bug Something isn't working label Aug 31, 2023
@zyyang90
Copy link
Contributor

zyyang90 commented Sep 26, 2023

image

@changshun-shi
Copy link
Author

Maybe a patch for code fix is better.

@yu285 yu285 closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants