2013-02-02 28 views
1

我正在用的Scratchbox以下錯誤,使安裝scratchbox2錯誤 - 讓安裝

$ 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 

的錯誤,我得到了使安裝後:---

[email protected]:~/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 

請建議我該如何解決呢。

回答

0

嘗試關閉sb2dctl上的gcc優化,方法是編輯utils/Makefile的第28行,在CFLAGS之後加上-O0(即減去大寫字母 - 零),如下所示。

# 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內聯錯誤引起的。