-
Notifications
You must be signed in to change notification settings - Fork 719
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
Ubuntu 12.04 Server Error #26
Comments
第2个我知道,是没有include <time.h> 第一个是为什么呢?我man一下lstat,看见只要包含这3个文件就行啊。。。
|
这样是ok的: |
呃,仔细观察了一下,lstat需要
不过在我的fmacros.h里面,已经吧这两个申明了
|
那估计是版本的问题,我这边cat src/fmacros.h结果是 #undef _LARGEFILE_SOURCE #undef _FILE_OFFSET_BITS #endif |
应该是没有更新到最新代码导致的。 |
虽然可以搞,但还是报个 issuse 吧
make
cd src && make all
make[1]: Entering directory
/tmp/zlog-master/src' cc -std=c99 -pedantic -c -O2 -fPIC -Wall -Werror -Wstrict-prototypes -g -ggdb buf.c cc -std=c99 -pedantic -c -O2 -fPIC -Wall -Werror -Wstrict-prototypes -g -ggdb category.c cc -std=c99 -pedantic -c -O2 -fPIC -Wall -Werror -Wstrict-prototypes -g -ggdb category_table.c cc -std=c99 -pedantic -c -O2 -fPIC -Wall -Werror -Wstrict-prototypes -g -ggdb conf.c conf.c: In function ‘zlog_conf_build_with_file’: conf.c:246:2: error: implicit declaration of function ‘lstat’ [-Werror=implicit-function-declaration] conf.c:251:2: error: implicit declaration of function ‘localtime_r’ [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make[1]: *** [conf.o] Error 1 make[1]: Leaving directory
/tmp/zlog-master/src'make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: