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 V6.12.1 make error #706

Open
wang201314 opened this issue May 8, 2024 · 1 comment
Open

fastdfs V6.12.1 make error #706

wang201314 opened this issue May 8, 2024 · 1 comment

Comments

@wang201314
Copy link

我是按照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 to iniGetByteCorrectValueEx'
/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 to g_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 to fc_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 to log_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 to fast_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 to g_tcp_quick_ack'
collect2: error: ld returned 1 exit status
make: *** [Makefile:60: fdfs_monitor] Error 1

@happyfish100
Copy link
Owner

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

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

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