You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_nio.lo sf_nio.c -Iinclude -I/usr/local/include
In file included from sf_nio.c:41:0:
sf_global.h: In function‘sf_set_global_base_path’:
sf_global.h:278:5: warning: implicit declaration of function‘normalize_path’ [-Wimplicit-function-declaration]
normalize_path(NULL, &path_string, SF_G_BASE_PATH_STR,
^
sf_nio.c: In function‘release_iovec_buffer’:
sf_nio.c:87:13: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
if (task->iovec_array.iovs != NULL) {
^
sf_nio.c:91:13: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
task->iovec_array.iovs = NULL;
^
sf_nio.c:92:13: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
task->iovec_array.count = 0;
^
sf_nio.c: In function‘sf_nio_notify’:
sf_nio.c:367:9: error: ‘struct fast_task_info’ has no member named ‘notify_next’
task->notify_next = NULL;
^
sf_nio.c:372:46: error: ‘struct fast_task_info’ has no member named ‘notify_next’
task->thread_data->waiting_queue.tail->notify_next = task;
^
sf_nio.c: In function‘sf_recv_notify_read’:
sf_nio.c:436:26: error: ‘struct fast_task_info’ has no member named ‘notify_next’
current = current->notify_next;
^
sf_nio.c: In function‘check_task’:
sf_nio.c:487:5: warning: implicit declaration of function‘tcp_socket_connected’ [-Wimplicit-function-declaration]
if (tcp_socket_connected(task->event.fd)) {
^
sf_nio.c: In function‘sf_client_sock_read’:
sf_nio.c:556:21: error: ‘struct fast_task_info’ has no member named ‘recv_body’
if (task->recv_body == NULL) {
^
sf_nio.c:559:40: error: ‘struct fast_task_info’ has no member named ‘recv_body’
bytes = read(sock, task->recv_body + (task->offset -
^
sf_nio.c:643:21: error: ‘struct fast_task_info’ has no member named ‘recv_body’
task->recv_body = SF_CTX->alloc_recv_buffer(task,
^
sf_nio.c:645:38: error: ‘struct fast_task_info’ has no member named ‘recv_body’
if (new_alloc && task->recv_body == NULL) {
^
sf_nio.c: In function‘sf_client_sock_write’:
sf_nio.c:730:17: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
if (task->iovec_array.iovs != NULL) {
^
sf_nio.c:731:38: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
bytes = writev(sock, task->iovec_array.iovs,
^
In file included from /usr/include/fastcommon/shared_func.h:26:0,
from sf_nio.c:33:
sf_nio.c:732:32: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
FC_MIN(task->iovec_array.count, IOV_MAX));
^
sf_nio.c:732:53: error: ‘IOV_MAX’ undeclared (first use in this function)
FC_MIN(task->iovec_array.count, IOV_MAX));
^
sf_nio.c:732:53: note: each undeclared identifier is reported only once foreach function it appearsin
sf_nio.c:732:32: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
FC_MIN(task->iovec_array.count, IOV_MAX));
^
sf_nio.c:791:17: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
if (task->iovec_array.iovs != NULL) {
^
sf_nio.c:797:23: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
iov = task->iovec_array.iovs;
^
sf_nio.c:798:23: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
end = task->iovec_array.iovs + task->iovec_array.count;
^
sf_nio.c:798:48: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
end = task->iovec_array.iovs + task->iovec_array.count;
^
sf_nio.c:815:17: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
task->iovec_array.iovs = iov;
^
sf_nio.c:816:17: error: ‘struct fast_task_info’ has no member named ‘iovec_array’
task->iovec_array.count = end - iov;
^
make: *** [sf_nio.lo] Error 1
The text was updated successfully, but these errors were encountered:
Ghost-Unison
changed the title
libserverframe 编译报错
libserverframe 编译报错 ‘struct fast_task_info’ has no member named ‘XXX’
Jul 14, 2023
libfastcommon编译安装成功了,没有报错。
![image](https://private-user-images.githubusercontent.com/48645502/253457729-8d4735c8-eac9-4a1f-987e-8e6217bb8235.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMzQ5NjEsIm5iZiI6MTcyMDMzNDY2MSwicGF0aCI6Ii80ODY0NTUwMi8yNTM0NTc3MjktOGQ0NzM1YzgtZWFjOS00YTFmLTk4N2UtOGU2MjE3YmI4MjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDA2NDQyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5YjVmZjE5NTFiZjI4OGE2NWU2Yjk2YjgwYTBjNWYzM2QzMjBkMzU3OTdkZTQ4OWM3NTYwODg2NzhmZTUzMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bllGtKj6taHXvZApBAq-D35RbwCm39mNvR_aNlen9v8)
![image](https://private-user-images.githubusercontent.com/48645502/253458329-47950a8b-c587-4ff3-bd7e-d3e4af2f33ae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMzQ5NjEsIm5iZiI6MTcyMDMzNDY2MSwicGF0aCI6Ii80ODY0NTUwMi8yNTM0NTgzMjktNDc5NTBhOGItYzU4Ny00ZmYzLWJkN2UtZDNlNGFmMmYzM2FlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDA2NDQyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2MTE1MzVkNjBkOWY5NzBjZjQ4M2RmMDhkNDM5NzEwY2YxZWRlZDA5N2RiMGVkZTVmMzcyNTQxZTRlZjQ3NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gy0__OEHDFwoAjex4vKNqKPy8Rda1046Rc4YDCJ9tT4)
但是libserverframe编译报错,
这是路径:
这是编译时的报错:
![image](https://private-user-images.githubusercontent.com/48645502/253457895-246ab7c5-ff22-4dba-9583-ce78c7ebd783.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMzQ5NjEsIm5iZiI6MTcyMDMzNDY2MSwicGF0aCI6Ii80ODY0NTUwMi8yNTM0NTc4OTUtMjQ2YWI3YzUtZmYyMi00ZGJhLTk1ODMtY2U3OGM3ZWJkNzgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDA2NDQyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwNGI3YTVhN2YwZTRjODEyMGRhOTBjNmMzNWMzY2JiMDI0NWZhOGQ5MWViYzhhZTk4MzFiNjZkZTFiMDgyNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UcYaDP5DMih07Cv-iN8e5f9agQdpLMZwov9PwoK6Fng)
看是提示说fast_task_info这个对象里面缺少好多成员变量,我是按着wiki里的步骤一步步操作的,直接克隆的github上最新的libfastcommon和libserverframe的包。是我linux环境里缺少什么吗,求助
The text was updated successfully, but these errors were encountered: