happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

fastdfs V6.12.1 make error #706

Open wang201314 opened 2 months ago

wang201314 commented 2 months ago

我是按照INSTALL安装 即:

   git clone https://github.com/happyfish100/libfastcommon.git
   cd libfastcommon; git checkout V1.0.73
   ./make.sh clean && ./make.sh && sudo ./make.sh install

   git clone https://github.com/happyfish100/libserverframe.git
   cd libserverframe; git checkout V1.2.3
   ./make.sh clean && ./make.sh && sudo ./make.sh install

   git clone https://github.com/happyfish100/fastdfs.git
   cd fastdfs; git checkout V6.12.1
   ./make.sh clean && ./make.sh 

./make.sh报错: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to sorted_queue_init' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference toiniGetByteCorrectValueEx' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_queue_push_queue_to_head_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference tog_set_cloexec' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to common_blocked_queue_free_all_nodes' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference tofc_get_last_lines' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_queue_push_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference tolog_get_level_caption_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_get_first_lines' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference tofast_timer_add_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to split_string_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference tog_tcp_quick_ack' collect2: error: ld returned 1 exit status make: *** [Makefile:60: fdfs_monitor] Error 1

happyfish100 commented 2 months ago

估计你安装过旧版本的libfastcommon,按这个操作处理一下:

若出现libfastcommon版本不匹配问题,请执行如下命令:/bin/rm -rf /usr/local/lib/libfastcommon.so /usr/local/include/fastcommon