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

集成fastdfs-nginx-moudle 插件报错,求指教,新版老版都试过了 #108

Open
xsmhaoshuai opened this issue Aug 15, 2024 · 1 comment

Comments

@xsmhaoshuai
Copy link

image
这是用的老版本, fastdfs6.02, moudle1.21,fastcommon 1.0.41是这个报错

全部用最新也有报错
-o objs/src/http/modules/ngx_http_upstream_zone_module.o
src/http/modules/ngx_http_upstream_zone_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I /usr/local/include

-o objs/addon/src/ngx_http_fastdfs_module.o

/usr/local/src/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c
In file included from /usr/local/src/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0:
/usr/local/src/fastdfs-nginx-module/src//common.c: In function ‘fdfs_mod_init’:
/usr/local/src/fastdfs-nginx-module/src//common.c:230:2: error: ‘SF_G_CONNECT_TIMEOUT’ undeclared (first use in this function); did you mean ‘DEFAULT_CONNECT_TIMEOUT’?
SF_G_CONNECT_TIMEOUT = iniGetIntValue(NULL, "connect_timeout",

^~~~~~~~~~~~~~~~~~~~
DEFAULT_CONNECT_TIMEOUT
/usr/local/src/fastdfs-nginx-module/src//common.c:230:2: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/src/fastdfs-nginx-module/src//common.c:237:2: error: ‘SF_G_NETWORK_TIMEOUT’ undeclared (first use in this function); did you mean ‘DEFAULT_NETWORK_TIMEOUT’?
SF_G_NETWORK_TIMEOUT = iniGetIntValue(NULL, "network_timeout",

^~~~~~~~~~~~~~~~~~~~
DEFAULT_NETWORK_TIMEOUT
/usr/local/src/fastdfs-nginx-module/src//common.c:376:3: error: ‘SF_G_BASE_PATH_STR’ undeclared (first use in this function)
SF_G_BASE_PATH_STR, url_have_group_name, buff,
^~~~~~~~~~~~~~~~~~
/usr/local/src/fastdfs-nginx-module/src//common.c: In function ‘fdfs_get_params_from_tracker’:
/usr/local/src/fastdfs-nginx-module/src//common.c:1601:14: error: too few arguments to function ‘fdfs_get_ini_context_from_tracker’
if ((result=fdfs_get_ini_context_from_tracker(&g_tracker_group,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/fastdfs/fdfs_client.h:14:0,
from /usr/local/src/fastdfs-nginx-module/src//common.c:29,
from /usr/local/src/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/tracker_proto.h:323:5: note: declared here
int fdfs_get_ini_context_from_tracker(TrackerServerGroup *pTrackerGroup,

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1205: objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.15.4'
make: *** [Makefile:8: build] Error 2
卡在集成nginx这里几天了,到底要怎么配置,我是照着wiki 上走的,麒麟系统

@happyfish100
Copy link
Owner

推荐使用最新版本,依赖的libfastcommon 和libserverframe都需要升级到最新版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants