请问这个问题怎么解决,执行configure时好像都没出问题怎么在这里就给报错了
PC-Admin-kuide)-[~/WgetDownload/ctags-5.8]
└─$ make
gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c args.c
In file included from /usr/include/features.h:510,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:28,
from args.c:17:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:491:61: error: missing ')' after "__has_attribute"
491 | #if __GNUC_PREREQ (2,7) || __glibc_has_attribute (__unused__)
| ^
general.h:60:36: error: missing binary operator before token "("
60 | # define __unused__ __attribute__((unused))
| ^
make: *** [Makefile:220:args.o] 错误 1
以下是执行configure时的结果:
PC-Admin-kuide)-[~/WgetDownload/ctags-5.8]
└─$ ./configure
Exuberant Ctags, version 5.8
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64
checking whether to install link to etags... no
checking whether to install readtags object file... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether ln -s works... yes
checking for strip... strip
checking directory to use for temporary files... /tmp
checking whether #! works in shell scripts... yes
checking for case-insensitive filenames... no
checking selected sort method... external sort utility
checking for sort... yes
checking if sort accepts our command line... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking types.h usability... no
checking types.h presence... no
checking for types.h... no
checking for unistd.h... (cached) yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking for sys/stat.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking if L_tmpnam is defined in stdio.h... yes
checking if INT_MAX is defined in limits.h... yes
checking for size_t... yes
checking for off_t... yes
checking for fpos_t... yes
checking for clock_t... yes
checking for an ANSI C-conforming const... yes
checking if struct stat contains st_ino... no
checking for fnmatch... yes
checking for strstr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for fgetpos... yes
checking for mkstemp... yes
checking for opendir... yes
checking for strerror... yes
checking for clock... yes
checking for remove... yes
checking for truncate... yes
checking for setenv... yes
checking for regcomp... yes
checking if regcomp works... no
configure: checking for new missing prototypes...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
PC-Admin-kuide)-[~/WgetDownload/ctags-5.8]
└─$ make
gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c args.c
In file included from /usr/include/features.h:510,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:28,
from args.c:17:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:491:61: error: missing ')' after "__has_attribute"
491 | #if __GNUC_PREREQ (2,7) || __glibc_has_attribute (__unused__)
| ^
general.h:60:36: error: missing binary operator before token "("
60 | # define __unused__ __attribute__((unused))
| ^
make: *** [Makefile:220:args.o] 错误 1
以下是执行configure时的结果:
PC-Admin-kuide)-[~/WgetDownload/ctags-5.8]
└─$ ./configure
Exuberant Ctags, version 5.8
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64
checking whether to install link to etags... no
checking whether to install readtags object file... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether ln -s works... yes
checking for strip... strip
checking directory to use for temporary files... /tmp
checking whether #! works in shell scripts... yes
checking for case-insensitive filenames... no
checking selected sort method... external sort utility
checking for sort... yes
checking if sort accepts our command line... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking types.h usability... no
checking types.h presence... no
checking for types.h... no
checking for unistd.h... (cached) yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking for sys/stat.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking if L_tmpnam is defined in stdio.h... yes
checking if INT_MAX is defined in limits.h... yes
checking for size_t... yes
checking for off_t... yes
checking for fpos_t... yes
checking for clock_t... yes
checking for an ANSI C-conforming const... yes
checking if struct stat contains st_ino... no
checking for fnmatch... yes
checking for strstr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for fgetpos... yes
checking for mkstemp... yes
checking for opendir... yes
checking for strerror... yes
checking for clock... yes
checking for remove... yes
checking for truncate... yes
checking for setenv... yes
checking for regcomp... yes
checking if regcomp works... no
configure: checking for new missing prototypes...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged