编译gnome 2.26时, 遇到编译firefox的错误, 如何解决?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

编译gnome 2.26时, 遇到编译firefox的错误, 如何解决?

#1

帖子 relaxssl » 2009-09-24 10:07

collect2: ld returned 1 exit status
make[10]: *** [libgklayout.so] Error 1
make[10]: Leaving directory `/home/linux/garnome-2.24.0/bootstrap/firefox/work/main.d/mozilla/layout/build'
make[9]: *** [libs] Error 2
make[9]: Leaving directory `/home/linux/garnome-2.24.0/bootstrap/firefox/work/main.d/mozilla/layout'
make[8]: *** [tier_9] Error 2
make[8]: Leaving directory `/home/linux/garnome-2.24.0/bootstrap/firefox/work/main.d/mozilla'
make[7]: *** [default] Error 2
make[7]: Leaving directory `/home/linux/garnome-2.24.0/bootstrap/firefox/work/main.d/mozilla'
make[6]: *** [build-work/main.d/mozilla/Makefile] Error 2
make[6]: Leaving directory `/home/linux/garnome-2.24.0/bootstrap/firefox'
make[5]: *** [../../bootstrap/firefox/cookies/main.d/install] Error 2
make[5]: Leaving directory `/home/linux/garnome-2.24.0/desktop/librsvg'
make[4]: *** [../../desktop/librsvg/cookies/main.d/install] Error 2
make[4]: Leaving directory `/home/linux/garnome-2.24.0/desktop/nautilus'
make[3]: *** [../../desktop/nautilus/cookies/main.d/install] Error 2
make[3]: Leaving directory `/home/linux/garnome-2.24.0/bindings/gnome-python'
make[2]: *** [../../bindings/gnome-python/cookies/main.d/install] Error 2
make[2]: Leaving directory `/home/linux/garnome-2.24.0/admin/pessulus'
make[1]: *** [paranoid-install] Error 2
make[1]: Leaving directory `/home/linux/garnome-2.24.0/admin'
make: *** [paranoid-install] Error 2
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

Re: 编译gnome 2.26时, 遇到编译firefox的错误, 如何解决?

#2

帖子 relaxssl » 2009-09-24 10:25

修改文件 garnome-2.24.0/bootstrap/firefox/work/main.d/mozilla/layout/build/Makefile.in

将227行的内容由

ifdef MOZ_ENABLE_GTK2
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
$(NULL)
endif

改为

ifdef MOZ_ENABLE_GTK2
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
-lXrender \
-lX11 \

$(NULL)
endif
回复