Copyright (C) 2010 Happy Fish / YuQing libfastcommon may be copied only under the terms of the Less GNU General Public License(LGPL). Please visit the libfastcommon Home Page for more detail. English language: https://github.com/happyfish100/libfastcommon Chinese language: http://www.fastken.com/ c common functions library extracted from my open source projects FastDFS and FastDHT. this library is very simple and stable. some functions are wrappered into php extension, such as fastcommon_gethostaddrs, fastcommon_id_generator_xxx, fastcommon_get_ifconfigs, fastcommon_get_sysinfo etc. C function including: logger: [logger.h] asynchronously sync to disk for high performance, thread safe, log rotate, auto delete old log files, compress log file etc. ini file reader: [ini_file_reader.h] support sections marked by [SectionName] support a config item ocurs multiple times for multiple values, such as: tracker_server = ip1 tracker_server = ip2 #include directive to include other ini file #@function directive for annotation #@set directive to set variables for condition of #@if directive support control statements for special purpose as: #@if, #@else, #@endif, #@for, #@endfor id generator: [id_generator.h] generate unique 64 bits integer ID for multi processes string operation: [shared_func.h] uppercase, lowercase, trim etc. base64 encode / decode: [base64.h] for standard base64 or variable base64 url encode / decode: [shared_func.h] md5 encode: [md5.h] hash: [hash.h] hash table chain: [chain.h] singly linked list blocked queue: [fast_blocked_queue.h] avl tree: [avl_tree.h] AVL tree skiplist: [skiplist.h] [flat_skiplist.h] [multi_skiplist.h] flat skiplist and multi skiplist socket: [sockopt.h] socket wrapper for connect, recv, send etc. support IPv6 ioevent: [ioevent.h] [ioevent_loop.h] like epoll (support Linux, FreeBSD and SunOS), io buffer management: [fast_task_queue.h] for network io buffer memory pool: [fast_mpool.h] object based allocator: [fast_mblock.h] connection pool: [connection_pool.h] time wheel based timer: [fast_timer.h] for network timeout management, very high performance local ip functions: [local_ip_func.h] get local ipv4 addresses system info functions: [system_info.h] get cpu count, memory size, system load, mounted filesystems and processes info etc. process control: [process_ctrl.h] for process start/stop/restart control task schedule: [sched_thread.h] task shedule management/thead for repeat tasks char convert: [char_converter.h] and [char_convert_loader.h] for fast char convert detail info please see the c header files.
c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
Copyright (C) 2010 Happy Fish / YuQing libfastcommon may be copied only under the terms of the Less GNU General Public License(LGPL). Please visit the libfastcommon Home Page for more detail. English language: https://github.com/happyfish1Category: C/C++ / Miscellaneous |
Watchers: 70 |
Star: 815 |
Fork: 514 |
Last update: May 10, 2022 |
使用之前的 libfastcommon 可以编译通过
使用alpine:3.13(alpine:3.15都尝试了)编译 libcommon 报错
第一个警告点:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
第二个报错点:
pthread_func.c: In function 'init_pthread_rwlock':
pthread_func.c:93:14: warning: implicit declaration of function 'pthread_rwlockattr_setkind_np'; did you mean 'pthread_rwlockattr_setpshared'? [-Wimplicit-function-declaration]
93 | if ((result=pthread_rwlockattr_setkind_np(attr.ptr,
//... 省略一些....
error: 'PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP' undeclared (first use in this function)
以下是更具体的报错过程
+ cd /tmp/libfastcommon-1.0.55
+ ./make.sh
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o hash.o hash.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o chain.o chain.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o shared_func.o shared_func.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ini_file_reader.o ini_file_reader.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o logger.o logger.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sockopt.o sockopt.c
In file included from sockopt.c:40:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
| ^~~~~~~
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o base64.o base64.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sched_thread.o sched_thread.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o http_func.o http_func.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o md5.o md5.c
gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o pthread_func.o pthread_func.c
pthread_func.c: In function 'init_pthread_rwlock':
pthread_func.c:93:14: warning: implicit declaration of function 'pthread_rwlockattr_setkind_np'; did you mean 'pthread_rwlockattr_setpshared'? [-Wimplicit-function-declaration]
93 | if ((result=pthread_rwlockattr_setkind_np(attr.ptr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| pthread_rwlockattr_setpshared
pthread_func.c:94:4: error: 'PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP' undeclared (first use in this function)
94 | PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP)) != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pthread_func.c:94:4: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:69: pthread_func.o] Error 1
+ ./make.sh install
[[email protected] libfastcommon]# ./make.sh ./make.sh:行158: 警告:立即文档在第 2 行被文件结束符分隔 (需要 `EOF') ./make.sh:行2: ./a.out: 没有那个文件或目录 ./make.sh:行2: +: 未找到命令 nm: '/usr/lib/libc_r.so': No such file
可以运行./make.sh
输出正常,但无法运行install命令。
系统 Mac OS 10.11.6
~/security/libfastcommon master ✗ 4d ◒
▶ ./make.sh install
mkdir -p /usr/lib64
mkdir: /usr/lib64: Operation not permitted
make: *** [install] Error 1
Hi!
I'm trying to compile this on FreeBSD as I'm going to upgrade from FastDFS 4.06 to FastDFS 5.08, but I'm running into these compile errors:
cc -Wall -D_FILE_OFFSET_BITS=64 -g -O3 -c -o system_info.o system_info.c system_info.c:61:13: error: use of undeclared identifier 'HW_MEMSIZE' mib[1] = HW_MEMSIZE; ^ system_info.c:595:20: error: invalid application of 'sizeof' to an incomplete type 'struct kinfo_proc' nproc = size / sizeof(struct kinfo_proc); ^ ~~~~~~~~~~~~~~~~~~~ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:610:16: error: invalid application of 'sizeof' to an incomplete type 'struct kinfo_proc' size = sizeof(struct kinfo_proc) * nproc; ^ ~~~~~~~~~~~~~~~~~~~ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:644:20: error: invalid application of 'sizeof' to an incomplete type 'struct kinfo_proc' nproc = size / sizeof(struct kinfo_proc); ^ ~~~~~~~~~~~~~~~~~~~ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:661:28: error: subscript of pointer to incomplete type 'struct kinfo_proc' "%s", procs[i].kp_proc.p_comm); ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:662:29: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->pid = procs[i].kp_proc.p_pid; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:663:30: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->ppid = procs[i].kp_eproc.e_ppid; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:664:35: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->starttime = procs[i].kp_proc.p_starttime; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:665:31: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->flags = procs[i].kp_proc.p_flag; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:666:31: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->state = procs[i].kp_proc.p_stat; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:668:35: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->sigignore = procs[i].kp_proc.p_sigignore; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:669:34: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->sigcatch = procs[i].kp_proc.p_sigcatch; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:670:34: error: subscript of pointer to incomplete type 'struct kinfo_proc' process->priority = procs[i].kp_proc.p_priority; ~~~~~^ system_info.c:569:12: note: forward declaration of 'struct kinfo_proc' struct kinfo_proc *procs; ^ system_info.c:691:19: error: variable has incomplete type 'struct xsw_usage' struct xsw_usage sw_usage; ^ system_info.c:691:9: note: forward declaration of 'struct xsw_usage' struct xsw_usage sw_usage; ^ system_info.c:697:11: error: use of undeclared identifier 'VM_LOADAVG' mib[1] = VM_LOADAVG; ^ system_info.c:727:24: error: invalid application of 'sizeof' to an incomplete type 'struct kinfo_proc' info->procs = size / sizeof(struct kinfo_proc); ^ ~~~~~~~~~~~~~~~~~~~ system_info.c:727:38: note: forward declaration of 'struct kinfo_proc' info->procs = size / sizeof(struct kinfo_proc); ^ system_info.c:734:11: error: use of undeclared identifier 'VM_METER' mib[1] = VM_METER; ^ system_info.c:752:11: error: use of undeclared identifier 'VM_SWAPUSAGE' mib[1] = VM_SWAPUSAGE; ^
Am I missing some dependencies or what can I do to solve this?
配置如下 ngx_addon_name=ngx_http_fastdfs_module
if test -n "${ngx_module_link}"; then ngx_module_type=HTTP ngx_module_name=$ngx_addon_name ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/" ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c" ngx_module_deps= CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'" . auto/module else HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c" CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/" CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient" CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'" fi
在nginx目录下执行./configure --add-module=/usr/local/software/fastdfs-nginx-module-1.20/src后运行make指令报错如下:
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o
objs/src/http/modules/ngx_http_upstream_least_conn_module.o
objs/src/http/modules/ngx_http_upstream_keepalive_module.o
objs/src/http/modules/ngx_http_upstream_zone_module.o
objs/addon/src/ngx_http_fastdfs_module.o
objs/ngx_modules.o
-ldl -lpthread -lcrypt -lpcre -lz
-Wl,-E
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_do_check_and_format_range’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:637:对‘logWarning’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:646:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:659:对‘logWarning’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:668:对‘logError’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_calc_content_length’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:596:对‘get_current_time_us’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:603:对‘fdfs_http_get_content_type_by_extname’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_send_file_buffer’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:738:对‘logError’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:156:对‘log_init’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:157:对‘trunk_shared_init’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:159:对‘iniLoadFromFile’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:161:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:169:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:172:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:178:对‘iniGetBoolValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:184:对‘logError’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_load_groups_store_paths’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:95:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:105:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:109:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:115:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:125:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:132:对‘storage_load_paths_from_conf_file_ex’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:202:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:205:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:216:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:224:对‘storage_load_paths_from_conf_file’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:230:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:230:对‘g_fdfs_connect_timeout’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:237:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:237:对‘g_fdfs_network_timeout’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:244:对‘load_log_level’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:246:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:249:对‘g_log_context’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:249:对‘log_set_filename_ex’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:255:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:258:对‘fdfs_http_params_load’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:264:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:273:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:276:对‘g_if_alias_prefix’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:280:对‘g_if_alias_prefix’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:284:对‘iniGetBoolValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:289:对‘g_tracker_group’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:289:对‘fdfs_load_tracker_group_ex’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:294:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:297:对‘iniGetBoolValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:301:对‘fdfs_load_storage_ids_from_file’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:308:对‘iniGetBoolValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:313:对‘iniGetStrValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:326:对‘iniFreeContext’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:332:对‘load_local_host_ip_addrs’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_get_params_from_tracker’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1600:对‘g_tracker_group’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1600:对‘fdfs_get_ini_context_from_tracker’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1606:对‘iniGetIntValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1610:对‘iniGetBoolValue’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1612:对‘iniFreeContext’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1616:对‘g_tracker_group’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1616:对‘fdfs_get_storage_ids_from_tracker_group’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:344:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:347:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:349:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:347:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_storage_id_count’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_local_host_ip_count’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_if_alias_prefix’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_tracker_group’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_fdfs_network_timeout’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_fdfs_connect_timeout’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘g_fdfs_base_path’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:355:对‘logInfo’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:403:对‘logInfo’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_http_request_handler’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:804:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:815:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:832:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:851:对‘http_parse_query’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:860:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:866:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:866:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:866:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:899:对‘g_fdfs_store_paths’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:908:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:922:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:923:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:926:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:934:对‘fdfs_http_check_token’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:939:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:969:对‘storage_split_filename_no_check’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:980:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:991:对‘fdfs_check_data_filename’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:997:对‘fdfs_get_file_info_ex1’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1027:对‘trunk_file_stat_func_ex’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1044:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1044:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1062:对‘is_local_host_ip’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1070:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1076:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1091:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1097:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1109:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1113:对‘logWarning’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1123:对‘logWarning’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1173:对‘logDebug’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1275:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1287:对‘fdfs_http_get_parameter’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1366:对‘storage_download_file_ex1’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1371:对‘logDebug’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1401:对‘storage_download_file_ex1’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1422:对‘trunk_get_full_filename_ex’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1463:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1474:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1489:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1557:对‘logError’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1191:对‘fdfs_http_get_file_extension’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1191:对‘fdfs_http_get_file_extension’未定义的引用
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1221:对‘fdfs_get_file_info_ex1’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_parse_ranges’中:
/usr/local/software/fastdfs-nginx-module-1.20/src/common.c:1715:对‘splitEx’未定义的引用
collect2: 错误:ld 返回 1
make[1]: *** [objs/nginx] 错误 1
make[1]: 离开目录“/usr/local/software/nginx-1.12.0”
make: *** [build] 错误 2
直接通过 git clone https://github.com/happyfish100/libfastcommon.git --depth 1
执行make.sh出现错误
./make.sh: line 172: warning: here-document at line 2 delimited by end-of-file (wanted `EOF')
./make.sh: line 2: ./a.out: No such file or directory
./make.sh: line 2: +: command not found
nm: '/usr/lib/libc_r.so': No such file
common_define.h文件中: #define st_atimensec st_atim.tv_nsec #define st_mtimensec st_mtim.tv_nsec #define st_ctimensec st_ctim.tv_nsec 这几行内容编译时报错:error: expected ':', ',', ';', '}' or 'attribute' before '.' token,这是什么原因呢,这些内容的作用是什么,注释掉有什么影响吗
中标麒麟 arm架构 fastdfs 编译通过,
There is a small typo in src/sockopt.h.
Should read received
rather than recveived
.
Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md
如题
现在导致storage编译不了 storage_sync_func.c:88:21: error: too many arguments to function 'socketCreateExAuto' g_client_bind_addr ? g_bind_addr : NULL, &result);