0

我尝试从源代码为服务器构建 cgminer

因为它是由 autoconfig 和 automake 制作的,所以我使用 autoscan 尝试扫描它。但问题是:缺少 AC_CHECK_FUNCS 和其他缺少,我错过了什么源文件或库?

shell中的may命令是:

root@localhost:~/cgminer-3.4.2/cgminer# autoscan
configure.ac: warning: missing AC_CHECK_FUNCS([clock_gettime]) wanted by: util.c
:981
configure.ac: warning: missing AC_CHECK_FUNCS([dup2]) wanted by: cgminer.c:7270
configure.ac: warning: missing AC_CHECK_FUNCS([floor]) wanted by: cgminer.c:2167
configure.ac: warning: missing AC_CHECK_FUNCS([gethostbyname]) wanted by: api-ex
ample.c:201
configure.ac: warning: missing AC_CHECK_FUNCS([gettimeofday]) wanted by: util.c:
974
configure.ac: warning: missing AC_CHECK_FUNCS([inet_ntoa]) wanted by: api.c:4331
configure.ac: warning: missing AC_CHECK_FUNCS([localeconv]) wanted by: compat/ja
nsson/strconv.c:26
configure.ac: warning: missing AC_CHECK_FUNCS([memchr]) wanted by: util.c:174
configure.ac: warning: missing AC_CHECK_FUNCS([memmove]) wanted by: util.c:1344
configure.ac: warning: missing AC_CHECK_FUNCS([memset]) wanted by: api-example.c
:209
configure.ac: warning: missing AC_CHECK_FUNCS([mkdir]) wanted by: cgminer.c:4788
configure.ac: warning: missing AC_CHECK_FUNCS([select]) wanted by: util.c:1163
configure.ac: warning: missing AC_CHECK_FUNCS([setenv]) wanted by: ccan/opt/test
/run.c:284
configure.ac: warning: missing AC_CHECK_FUNCS([socket]) wanted by: api-example.c
:203
configure.ac: warning: missing AC_CHECK_FUNCS([strcasecmp]) wanted by: util.c:20
1
configure.ac: warning: missing AC_CHECK_FUNCS([strchr]) wanted by: api-example.c
:153
configure.ac: warning: missing AC_CHECK_FUNCS([strcspn]) wanted by: ccan/opt/opt
.c:29
configure.ac: warning: missing AC_CHECK_FUNCS([strdup]) wanted by: util.c:490
configure.ac: warning: missing AC_CHECK_FUNCS([strerror]) wanted by: libztex.c:2
24
configure.ac: warning: missing AC_CHECK_FUNCS([strncasecmp]) wanted by: adl.c:12
61
configure.ac: warning: missing AC_CHECK_FUNCS([strrchr]) wanted by: driver-modmi
ner.c:397
configure.ac: warning: missing AC_CHECK_FUNCS([strspn]) wanted by: ccan/opt/test
/run-helpers.c:339
configure.ac: warning: missing AC_CHECK_FUNCS([strstr]) wanted by: util.c:1096
configure.ac: warning: missing AC_CHECK_FUNCS([strtol]) wanted by: cgminer.c:892
configure.ac: warning: missing AC_CHECK_HEADERS([arpa/inet.h]) wanted by: api-ex
ample.c:32
configure.ac: warning: missing AC_CHECK_HEADERS([fcntl.h]) wanted by: util.c:27
configure.ac: warning: missing AC_CHECK_HEADERS([float.h]) wanted by: driver-bfl
sc.c:11
configure.ac: warning: missing AC_CHECK_HEADERS([limits.h]) wanted by: ocl.c:17
configure.ac: warning: missing AC_CHECK_HEADERS([locale.h]) wanted by: compat/ja
nsson/strconv.c:9
configure.ac: warning: missing AC_CHECK_HEADERS([mach/mach.h]) wanted by: util.c
:1016
configure.ac: warning: missing AC_CHECK_HEADERS([malloc.h]) wanted by: miner.h:6
0
configure.ac: warning: missing AC_CHECK_HEADERS([netdb.h]) wanted by: api-exampl
e.c:33
configure.ac: warning: missing AC_CHECK_HEADERS([netinet/in.h]) wanted by: api-e
xample.c:31
configure.ac: warning: missing AC_CHECK_HEADERS([stddef.h]) wanted by: uthash.h:
28
configure.ac: warning: missing AC_CHECK_HEADERS([sys/ioctl.h]) wanted by: fpgaut
ils.c:23
configure.ac: warning: missing AC_CHECK_HEADERS([sys/socket.h]) wanted by: api-e
xample.c:30
configure.ac: warning: missing AC_CHECK_HEADERS([sys/time.h]) wanted by: compat.
h:9
configure.ac: warning: missing AC_CHECK_HEADERS([termios.h]) wanted by: fpgautil
s.c:22
configure.ac: warning: missing AC_CHECK_HEADERS([wchar.h]) wanted by: lib/string
.in.h:37
configure.ac: warning: missing AC_CHECK_HEADER_STDBOOL wanted by: ocl.h:28
configure.ac: warning: missing AC_CHECK_TYPES([ptrdiff_t]) wanted by: uthash.h:7
79
configure.ac: warning: missing AC_C_INLINE wanted by: compat.h:17
configure.ac: warning: missing AC_C_RESTRICT wanted by: lib/sigaction.c:131
configure.ac: warning: missing AC_FUNC_FORK wanted by: cgminer.c:7290
configure.ac: warning: missing AC_FUNC_MALLOC wanted by: libztex.c:230
configure.ac: warning: missing AC_FUNC_REALLOC wanted by: util.c:132
configure.ac: warning: missing AC_FUNC_STRTOD wanted by: driver-bitforce.c:401
configure.ac: warning: missing AC_TYPE_INT16_T wanted by: libztex.h:49
configure.ac: warning: missing AC_TYPE_INT32_T wanted by: compat/jansson/dump.c:
68
configure.ac: warning: missing AC_TYPE_INT64_T wanted by: driver-bitfury.c:196
configure.ac: warning: missing AC_TYPE_PID_T wanted by: lib/signal.in.h:305
configure.ac: warning: missing AC_TYPE_SSIZE_T wanted by: fpgautils.h:30
configure.ac: warning: missing AC_TYPE_UID_T wanted by: lib/signal.in.h:306
configure.ac: warning: missing AC_TYPE_UINT16_T wanted by: libztex.c:76
configure.ac: warning: missing AC_TYPE_UINT32_T wanted by: findnonce.h:16
configure.ac: warning: missing AC_TYPE_UINT64_T wanted by: usbutils.h:217
configure.ac: warning: missing AC_TYPE_UINT8_T wanted by: libztex.c:105
4

2 回答 2

2

只有当您从头开始创建新包时,才会自动扫描。利用

./configure
make
sudo make install
于 2013-09-28T21:55:39.190 回答
1

你没有错过任何东西。 autoscan除非您是包维护者,否则您不应该运行它,并且检查功能过于冗长。这些警告只是告诉您配置脚本不会检查命名函数、标题或变量类型,但粗略扫描列表不会引起任何真正的问题。维护人员构建了一个configure.ac似乎假设用户正在使用相对现代的系统和识别restrict关键字的 C 编译器的模型。就个人而言,如果我正在维护包,我会添加检查AC_C_RESTRICTAC_C_INLINE可能还有其他一些,但作为用户,您可以放心地忽略这些警告。如果您只是尝试构建包,请不要运行自动工具链;只需获取一个已经构建了必要文件的源包并从中构建它。

于 2013-10-21T07:49:35.487 回答