在FastDFS目录下执行 ./make.sh 出现一大堆错误。这是什么问题??
-
目录
[root@localhost fastdfs-5.10]# ll 总用量 136 drwxrwxr-x. 3 root root 4096 4月 15 20:38 client drwxrwxr-x. 2 root root 4096 4月 6 09:38 common drwxrwxr-x. 2 root root 4096 4月 6 09:38 conf -rw-rw-r--. 1 root root 35067 4月 6 09:38 COPYING-3_0.txt -rw-rw-r--. 1 root root 3171 4月 6 09:38 fastdfs.spec -rw-rw-r--. 1 root root 32930 4月 6 09:38 HISTORY drwxrwxr-x. 2 root root 4096 4月 6 09:38 init.d -rw-rw-r--. 1 root root 7755 4月 6 09:38 INSTALL -rwxrwxr-x. 1 root root 5548 4月 6 09:38 make.sh drwxrwxr-x. 2 root root 4096 4月 6 09:38 php_client -rw-rw-r--. 1 root root 2380 4月 6 09:38 README.md -rwxrwxr-x. 1 root root 1768 4月 6 09:38 restart.sh -rwxrwxr-x. 1 root root 1680 4月 6 09:38 stop.sh drwxrwxr-x. 4 root root 4096 4月 15 20:38 storage drwxrwxr-x. 2 root root 4096 4月 6 09:38 test drwxrwxr-x. 2 root root 4096 4月 15 20:38 tracker
-
执行结果
[root@localhost fastdfs-5.10]# ./make.sh cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I/usr/include/fastcommon ../common/fdfs_global.c:20:20: 错误:logger.h:没有那个文件或目录 在包含自 ../common/fdfs_global.c:21 的文件中: ../common/fdfs_global.h:14:27: 错误:common_define.h:没有那个文件或目录 ../common/fdfs_global.h:16:29: 错误:connection_pool.h:没有那个文件或目录 In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:26: 错误:‘MAX_PATH_SIZE’未声明(不在函数内) ../common/fdfs_global.h:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.h:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.h:29: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c:23: 错误:‘DEFAULT_CONNECT_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:24: 错误:‘DEFAULT_NETWORK_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:26: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.c:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.c:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c: 在函数‘fdfs_check_data_filename’中: ../common/fdfs_global.c:39: 警告:隐式声明函数‘logError’ ../common/fdfs_global.c:45: 警告:隐式声明函数‘IS_UPPER_HEX’ make: *** [../common/fdfs_global.o] 错误 1 cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon ../common/fdfs_global.c:20:20: 错误:logger.h:没有那个文件或目录 在包含自 ../common/fdfs_global.c:21 的文件中: ../common/fdfs_global.h:14:27: 错误:common_define.h:没有那个文件或目录 ../common/fdfs_global.h:16:29: 错误:connection_pool.h:没有那个文件或目录 In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:26: 错误:‘MAX_PATH_SIZE’未声明(不在函数内) ../common/fdfs_global.h:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.h:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.h:29: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c:23: 错误:‘DEFAULT_CONNECT_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:24: 错误:‘DEFAULT_NETWORK_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:26: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.c:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.c:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c: 在函数‘fdfs_check_data_filename’中: ../common/fdfs_global.c:39: 警告:隐式声明函数‘logError’ ../common/fdfs_global.c:45: 警告:隐式声明函数‘IS_UPPER_HEX’ make: *** [../common/fdfs_global.o] 错误 1 cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I../tracker -I/usr/include/fastcommon ../common/fdfs_global.c:20:20: 错误:logger.h:没有那个文件或目录 在包含自 ../common/fdfs_global.c:21 的文件中: ../common/fdfs_global.h:14:27: 错误:common_define.h:没有那个文件或目录 ../common/fdfs_global.h:16:29: 错误:connection_pool.h:没有那个文件或目录 In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:26: 错误:‘MAX_PATH_SIZE’未声明(不在函数内) ../common/fdfs_global.h:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.h:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.h:29: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c:23: 错误:‘DEFAULT_CONNECT_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:24: 错误:‘DEFAULT_NETWORK_TIMEOUT’未声明(不在函数内) ../common/fdfs_global.c:26: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_fdfs_version’ ../common/fdfs_global.c:27: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_use_connection_pool’ ../common/fdfs_global.c:28: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_connection_pool’ ../common/fdfs_global.c: 在函数‘fdfs_check_data_filename’中: ../common/fdfs_global.c:39: 警告:隐式声明函数‘logError’ ../common/fdfs_global.c:45: 警告:隐式声明函数‘IS_UPPER_HEX’ make: *** [../common/fdfs_global.o] 错误 1