在群集

时间:2018-06-13 08:55:56

标签: compiler-errors guile

我正在尝试在群集上本地安装Guile-2.2.2。我安装(本地)自述文件中提到的guile的所有先决条件。当我使用下面的命令运行configure时,我没有收到任何错误。

./configure --prefix=/home/acusers/pbalaji/install/guile_new --with-libltdl-prefix=/home/acusers/pbalaji/install/libtool-2.4 --with-libunistring-prefix=/home/acusers/pbalaji/install/libunistring-0.9.10 CFLAGS="-I/home/acusers/pbalaji/install/libtool-2.4/include -I/home/acusers/pbalaji/install/libunistring-0.9.10/include -I/home/acusers/pbalaji/install/libiconv-1.15/include" LDFLAGS="-L/home/acusers/pbalaji/install/libtool-2.4/lib -L/home/acusers/pbalaji/install/libunistring-0.9.10/lib -L/home/acusers/pbalaji/install/libiconv-1.15/lib" LIBFFI_LIBS="-L/home/acusers/pbalaji/install/libffi_new/lib64" LIBFFI_CFLAGS="-I/home/acusers/pbalaji/install/libffi_new/lib/libffi-3.2.1/include/" BDW_GC_CFLAGS="-I/home/acusers/pbalaji/install/bdw_gc/include" BDW_GC_LIBS="-L/home/acusers/pbalaji/install/bdw_gc/lib" --with-libiconv-prefix=/home/acusers/pbalaji/install/libiconv-1.15 --with-libgmp-prefix=/home/acusers/pbalaji/install/gmp-6.1.2/

当我尝试运行make时,编译停止并出现以下错误:

CC       libguile_2.2_la-foreign-object.lo
CC       libguile_2.2_la-fports.lo
fports.c: In function 'fport_input_waiting':
fports.c:455:10: error: variable 'pollfd' has initializer but incomplete    type 
struct pollfd pollfd = { fdes, POLLIN, 0 };
      ^
fports.c:455:28: warning: excess elements in struct initializer
struct pollfd pollfd = { fdes, POLLIN, 0 };
                        ^
fports.c:455:28: note: (near initialization for 'pollfd')
fports.c:455:34: error: 'POLLIN' undeclared (first use in this function)
struct pollfd pollfd = { fdes, POLLIN, 0 };
                              ^
fports.c:455:34: note: each undeclared identifier is reported only once     for each function it appears in
fports.c:455:34: warning: excess elements in struct initializer
fports.c:455:34: note: (near initialization for 'pollfd')
fports.c:455:42: warning: excess elements in struct initializer
struct pollfd pollfd = { fdes, POLLIN, 0 };
                                      ^
fports.c:455:42: note: (near initialization for 'pollfd')
fports.c:455:17: error: storage size of 'pollfd' isn't known
struct pollfd pollfd = { fdes, POLLIN, 0 };
             ^
fports.c:457:7: warning: implicit declaration of function 'poll'  [-Wimplicit-function-declaration]
if (poll (&pollfd, 1, 0) < 0)
   ^
fports.c:455:17: warning: unused variable 'pollfd' [-Wunused-variable]
struct pollfd pollfd = { fdes, POLLIN, 0 };
             ^
fports.c:461:1: warning: control reaches end of non-void function [-Wreturn-type]}
make[3]: *** [libguile_2.2_la-fports.lo] Error 1
make[3]: Leaving directory `/home/acusers/pbalaji/install/guile-    2.2.2/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/acusers/pbalaji/install/guile-2.2.2/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/acusers/pbalaji/install/guile-2.2.2'
make: *** [all] Error 2

我正在使用gcc-5.5.0编译器和所有最新版本的先决条件。

请提出一种解决此问题的方法。

感谢。

1 个答案:

答案 0 :(得分:0)

在libguile / fports.c中它可能找不到poll.h我发现在互联网上的引用表明sys / poll.h应该在某些平台上使用,尝试更改源文件并查看是否存在收据工作,如果能解决您的问题,请提交诡计的错误报告