Guile在Linux上构建错误
Guile build error on linux
我在构建Guile时会收到以下错误。错误是版本,版本2.2.2,版本2.2.0和版本2.0.14
fports.c: In function 'fport_input_waiting':
fports.c:626:10: error: variable 'pollfd' has initializer but incomplete type
struct pollfd pollfd = { fdes, POLLIN, 0 };
fports.c:626:34: error: 'POLLIN' undeclared (first use in this function)
struct pollfd pollfd = { fdes, POLLIN, 0 };
fports.c:626:17: error: storage size of 'pollfd' isn't known
struct pollfd pollfd = { fdes, POLLIN, 0 };
我通过以下步骤构建包裹:
$ wget "$DOWNLOAD_URL"
$ tar xzf guile-{$VERSION}.tar.gz
$ cd guile-${VERSION}
$ ./configure --prefix=$HOME/.local --disable-static --disable-networking
$ make -j 12
[UPDATE> 我已将libunistring-0.9.7
和gc-7.6.0
安装到$HOME/.local
,因此我使用了以下./configure
命令,但没有更好的结果。
$ ./configure --prefix=$HOME/.local
--with-libunistring-prefix=$HOME/.local
--with-sysroot=$HOME/.local
--with-libgmp-prefix=$HOME/.local
--with-threads ## updated configure command
config.log
说
451 configure:8023: checking for poll.h
452 configure:8023: gcc -c -g -O2 conftest.c >&5
453 configure:8023: $? = 0
454 configure:8023: result: yes
看起来更深一些,我看到所需的文件poll.h
似乎是在lib/poll.h
,但我在/usr/include/poll.h
中也有一个poll.h
重定向到/usr/include/x86_64-linux-gnu/sys/poll.h
也有libguile/poll.h
重定向到libguile/__scm.h
这是__scm.h
struct pollfd
配置软件包时似乎有问题。
我正在使用Ubuntu服务器。Sysadmin路线可能会采用比平时更重要。因此,我更喜欢建造和安装本地软件包。
我试图用gcc-4.8
有人知道如何使其编译吗?
我在CentOS 7上也有相同的问题。我将#include <sys/poll.h>
添加到源文件fports.c
,该文件有问题。
然后,./configure CFLAGS="-std=gnu11"
相关文章:
- Agora.io 虚幻引擎插件构建错误
- 尝试将 boost::stacktrace 添加到 CMake 项目时出现构建错误
- Arch Linux.AUR 包 mysql 不能用 makepkg 构建.错误:构建 () 中出现故障
- 组件上的虚幻引擎可蓝图UFUNCTION会导致构建错误
- 尝试构建 xerces c++ 解析器。Netbeans 和命令行构建错误未定义对"xercesc_3_2..."的引用
- pair的两个构造函数几乎相同,为什么不生成构建错误?
- 发生 Qt5.11 应用插件构建错误:信号和插槽参数不兼容
- Visual Studio 2017 中的 Tesseract 3.05 构建错误
- Eclipse 构建错误在默认的 hello world 上
- C++ CMake 构建错误:未定义对"boost::throw_exception(std::exception const&)"的引用
- 在 solaris 上增加 1.64 构建错误
- xgboost 构建错误:参数包未扩展为"..":
- 使用GCC 4.8构建错误:数组用作初始化器
- 编译 Java TD 客户端时出现构建错误
- 如何修复安卓工作室中的NDK构建错误
- C++ Cassandra 构建错误
- 我在 MinGW 和 VS 代码"g++ not recognized as a cmdlet..."时遇到构建错误
- Microsoft Visual Studio 2008,版本9.0.30739.1 SP,DLL构建错误
- 使用PPConsul(C 的领事客户端)构建错误的C 项目
- WURFL nginx 构建错误