-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
TDengine/src/util/src/ttime.c:252:3: 错误:隐式声明函数‘timegm’ [-Werror=implicit-function-declaration] #2023
Comments
cd /home/develop/opensource/taosdata/TDengine/build/src/client && /usr/bin/cc -DLINUX -D_LIBC_REENTRANT -D_M_X64 -D_REENTRANT -D__USE_POSIX -Dtaos_EXPORTS -g -std=gnu99 -Wall -Werror -fPIC -malign-double -g3 -gdwarf-2 -malign-stringops -msse4.2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -O0 -DDEBUG -fPIC -I/home/develop/opensource/taosdata/TDengine/src/client/inc -I/home/develop/opensource/taosdata/TDengine/src/client/jni -I/home/develop/opensource/taosdata/TDengine/src/inc -I/home/develop/opensource/taosdata/TDengine/src/util/inc -I/home/develop/opensource/taosdata/TDengine/src/query/inc -I/home/develop/opensource/taosdata/TDengine/src/common/inc -I/src/inc -I/home/develop/opensource/taosdata/TDengine/src/os/linux/inc -I/home/develop/opensource/taosdata/TDengine/deps/jni/linux -I/home/develop/opensource/taosdata/TDengine/deps/lz4/inc -o CMakeFiles/taos.dir/src/tscSQLParser.c.o -c /home/develop/opensource/taosdata/TDengine/src/client/src/tscSQLParser.c |
Please let us know what your platform is and what version your compiler is. Thanks. |
1 similar comment
Please let us know what your platform is and what version your compiler is. Thanks. |
CentOS Linux release 7.6.1810 (Core) cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) |
@sunyikeji may I know which branch and last commit id? |
git branch -a
commit ad590b0
commit 77ef030
|
@sunyikeji thanks for your enthusiastic report. we will evaluate supporting earlier glibc like what CentOS 7 use. |
1 similar comment
@sunyikeji thanks for your enthusiastic report. we will evaluate supporting earlier glibc like what CentOS 7 use. |
@sunyikeji please git pull develop branch and check if it works now. thanks. |
Performance Issue
最新源码编译问题:
TDengine/src/util/src/ttime.c:252:3: 错误:隐式声明函数‘timegm’ [-Werror=implicit-function-declaration]
Problem Description
gmake[2]: 进入目录“/home/develop/opensource/taosdata/TDengine/build”
/usr/bin/cmake -E cmake_progress_report /home/develop/opensource/taosdata/TDengine/build/CMakeFiles
[ 9%] Building C object src/util/CMakeFiles/tutil.dir/src/ttime.c.o
cd /home/develop/opensource/taosdata/TDengine/build/src/util && /usr/bin/cc -DLINUX -DUSE_LIBICONV -D_LIBC_REENTRANT -D_M_X64 -D_REENTRANT -D__USE_POSIX -g -std=gnu99 -Wall -Werror -fPIC -malign-double -g3 -gdwarf-2 -malign-stringops -msse4.2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -O0 -DDEBUG -I/home/develop/opensource/taosdata/TDengine/src/os/linux/inc -I/home/develop/opensource/taosdata/TDengine/src/inc -I/home/develop/opensource/taosdata/TDengine/src/util/inc -I/home/develop/opensource/taosdata/TDengine/src/common/inc -I/home/develop/opensource/taosdata/TDengine/deps/cJson/inc -I/home/develop/opensource/taosdata/TDengine/deps/lz4/inc -o CMakeFiles/tutil.dir/src/ttime.c.o -c /home/develop/opensource/taosdata/TDengine/src/util/src/ttime.c
/home/develop/opensource/taosdata/TDengine/src/util/src/ttime.c: 在函数‘parseTimeWithTz’中:
/home/develop/opensource/taosdata/TDengine/src/util/src/ttime.c:252:3: 错误:隐式声明函数‘timegm’ [-Werror=implicit-function-declaration]
int64_t seconds = timegm(&tm);
^
cc1: all warnings being treated as errors
gmake[2]: *** [src/util/CMakeFiles/tutil.dir/src/ttime.c.o] 错误 1
gmake[2]: 离开目录“/home/develop/opensource/taosdata/TDengine/build”
gmake[1]: *** [src/util/CMakeFiles/tutil.dir/all] 错误 2
gmake[1]: 离开目录“/home/develop/opensource/taosdata/TDengine/build”
gmake: *** [all] 错误 2
To Reproduce
cd build
cmake ..
cmake --build .
The text was updated successfully, but these errors were encountered: