首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >scratchbox2错误--进行安装

scratchbox2错误--进行安装
EN

Stack Overflow用户
提问于 2013-02-03 02:57:29
回答 1查看 315关注 0票数 1

我得到以下关于scratchbox的错误,make install

代码语言:javascript
复制
$ cd $HOME/sbox2/src
$ git clone git://gitorious.org/scratchbox2/scratchbox2.git
$ cd scratchbox2
$ git checkout 2.3.90 -b devel_env
$ ./autogen.sh
$ ./configure --prefix=$HOME/sbox2/bin/scratchbox
$ make install

在make install之后出现错误:

代码语言:javascript
复制
ignite@ignite:~/sbox2/src/scratchbox2$ make install
make[1]: Entering directory `/home/ignite/sbox2/src/scratchbox2'
echo "/* Automatically generated file. Do not edit. */" >include/scratchbox2_version.h
echo '#define SCRATCHBOX2_VERSION "'`cat .version`'"' >>include/scratchbox2_version.h
echo '#define LIBSB2_SONAME "'"libsb2.so.1"'"' >>include/scratchbox2_version.h
[CC] sblib/sb_log.o
[ARCHIVE] sblib/libsblib.a
[SHLIB] preload/libsb2.so
[CC] utils/sb2dctl.o
In file included from /usr/include/i386-linux-gnu/sys/socket.h:251:0,
                 from /usr/include/netinet/in.h:25,
                 from utils/sb2dctl.c:25:
utils/sb2dctl.c: In function ‘recvfrom_nomap_nolog’:
/usr/include/i386-linux-gnu/bits/socket2.h:65:1: error: inlining failed in call to always_inline ‘recvfrom’: mismatched arguments
utils/sb2dctl.c:166:2: error: called from here
make[1]: *** [utils/sb2dctl.o] Error 1
make[1]: Leaving directory `/home/ignite/sbox2/src/scratchbox2'
make: *** [regular] Error 2

请建议我如何解决这个问题。

EN

回答 1

Stack Overflow用户

发布于 2013-02-12 04:21:05

尝试通过编辑utils/Makefile的第28行,在CFLAGS之后添加-O0 (这是减去大写-哦,零)来关闭sb2dctl上的gcc优化,如下所示。

代码语言:javascript
复制
# sb2dctl, a tool for communicating with sb2d
$(D)/sb2dctl: override CFLAGS := $(CFLAGS) -O0 -Wall -W -Werror \

在Ubuntu 12.10 64位的时候也有类似的错误,使用的是gcc 4.7.2及以上版本。可能是由一个gcc的内联错误引起的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14665309

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档