LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 880|回复: 7

不能升级cairo-1.6.4(已解决)

[复制链接]
发表于 2008-6-21 22:36:16 | 显示全部楼层 |阅读模式
出错信息:
[PHP]cairo-xlib-screen.c: In function '_cairo_xlib_init_screen_font_options':
cairo-xlib-screen.c:192: error: 'FC_LCD_DEFAULT' undeclared (first use in this function)
cairo-xlib-screen.c:192: error: (Each undeclared identifier is reported only once
cairo-xlib-screen.c:192: error: for each function it appears in.)
cairo-xlib-screen.c:235: error: 'FC_LCD_NONE' undeclared (first use in this function)
cairo-xlib-screen.c:238: error: 'FC_LCD_LIGHT' undeclared (first use in this function)
cairo-xlib-screen.c:241: error: 'FC_LCD_LEGACY' undeclared (first use in this function)
make[2]: *** [libcairo_la-cairo-xlib-screen.lo] 错误 1
make[2]: *** 正在等待未完成的任务....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -march=k8 -msse3 -O2 -pipe -fomit-frame-pointer -finline-limit=1200 -MT libcairo_la-cairo-xlib-visual.lo -MD -MP -MF .deps/libcairo_la-cairo-xlib-visual.Tpo -c cairo-xlib-visual.c  -fPIC -DPIC -o .libs/libcairo_la-cairo-xlib-visual.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -march=k8 -msse3 -O2 -pipe -fomit-frame-pointer -finline-limit=1200 -MT libcairo_la-cairo-xlib-visual.lo -MD -MP -MF .deps/libcairo_la-cairo-xlib-visual.Tpo -c cairo-xlib-visual.c -o libcairo_la-cairo-xlib-visual.o >/dev/null 2>&1
mv -f .deps/libcairo_la-cairo-xlib-visual.Tpo .deps/libcairo_la-cairo-xlib-visual.Plo
make[2]: Leaving directory `/mnt/debian/tmp/portage/x11-libs/cairo-1.6.4/work/cairo-1.6.4/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/mnt/debian/tmp/portage/x11-libs/cairo-1.6.4/work/cairo-1.6.4'
make: *** [all] 错误 2
*
* ERROR: x11-libs/cairo-1.6.4 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2647:  Called die
* The specific snippet of code:
*       emake || die "compile failed"
*  The die message:
*   compile failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/log/portage/x11-libs:cairo-1.6.4:20080621-140821.log'.
* The ebuild environment file is located at '/mnt/debian/tmp/portage/x11-libs/cairo-1.6.4/temp/environment'.
[/PHP]
emerge --info
[PHP]Portage 2.1.4.4 (!../usr/portage/profiles/default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Sat, 21 Jun 2008 13:03:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/debian/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo                ftp://mirror.pacific.net.au/linux/Gentoo                http://mirror.pacific.net.au/gentoo "
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN"
MAKEOPTS="-j2"
PKGDIR="/mnt/debian/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/debian/tmp"
PORTDIR="/mnt/debian/portage"
PORTDIR_OVERLAY="/mnt/debian/portage/local/layman/gentoo-china"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apache2 arts avahi avi berkdb bzip2 cairo cjk cli cracklib crypt curl dbus dri dvd eds encode esd ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk hal iconv imagemagick ipv6 isdnlog java java6 jpeg jpeg2k kde kerberos ldap mad midi mmx modplug motif mp3 mpeg mudflap ncurses newspr nls nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pcre perl png postgres pppd python qt3 quicktime readline real reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype unicode vcd vorbis win32codecs x86 xcomposite xml xml2 xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS[/PHP]
发表于 2008-6-21 22:56:10 | 显示全部楼层
我最近编译好多东西失败
scim-pinyin-0.5.91-r1
mono-1.9.1

scim-setup 段错误,郁闷。不知道哪里出了问题,改用fcitx 好了。
回复 支持 反对

使用道具 举报

发表于 2008-6-21 23:07:06 | 显示全部楼层
Post by wd_afei;1865549
我最近编译好多东西失败
scim-pinyin-0.5.91-r1
mono-1.9.1

scim-setup 段错误,郁闷。不知道哪里出了问题,改用fcitx 好了。
看看scim-pinyin-0.5.91-r2是不是解决你这个问题的。
回复 支持 反对

使用道具 举报

发表于 2008-6-21 23:51:02 | 显示全部楼层
那个段错误我也遇到了,期待有人出来解决一下啊……郁闷中……
回复 支持 反对

使用道具 举报

发表于 2008-6-22 02:50:28 | 显示全部楼层

可能是你的fontconfig版本不够,fontconfig需要2.6.0以上,需要用gentoo-china overlay中的,因为它相应地打了ubuntu的补丁。

  1. SpiritSoaring src # grep FC_LCD /usr/include/fontconfig/fontconfig.h
  2. #define FC_LCD_FILTER            "lcdfilter"                /* Int */
  3. #define FC_LCD_NONE            0
  4. #define FC_LCD_DEFAULT            1
  5. #define FC_LCD_LIGHT            2
  6. #define FC_LCD_LEGACY            3
复制代码

已经将fontconfig-2.6.0作为DEPEND了,但keywords也相应变为~arch了。
回复 支持 反对

使用道具 举报

发表于 2008-6-22 09:13:01 | 显示全部楼层
Post by zhoukb;1865555
看看scim-pinyin-0.5.91-r2是不是解决你这个问题的。


scim-*都被我干掉啦,还是用 fcitx 算了。唉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-22 20:00:34 | 显示全部楼层
Post by acevery;1865640
可能是你的fontconfig版本不够,fontconfig需要2.6.0以上,需要用gentoo-china overlay中的,因为它相应地打了ubuntu的补丁。
已经将fontconfig-2.6.0作为DEPEND了,但keywords也相应变为~arch了。

谢谢,确实是这样。
回复 支持 反对

使用道具 举报

发表于 2008-6-24 08:59:44 | 显示全部楼层
Post by Second;1865950
谢谢,确实是这样。


刚刚update一下,2.6.0-r1
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表