LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: younker

firefox 3 (xulrunner) 需要apng支持的libpng,怎么解决?

[复制链接]
发表于 2008-6-19 18:35:18 | 显示全部楼层
configure脚本检查一个库是否存在的原理:
一般就是弄个小程序编译一下连接一下
如果连接不通过,就认为该库不存在
这个小程序可以在log里找到
有时把它截取出来,自己单独编译一下,就可以找到问题所在
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 18:52:54 | 显示全部楼层
configure:12475: checking for BZ2_bzread in -lbz2
configure:12494: i686-pc-linux-gnu-gcc -o conftest -march=pentium4 -mtune=pentium4 -pipe -Wno-return-type -w -fno-strict-aliasing -pthread  -DARON_WAS_HERE  -lpthread -Wl,-O2 conftest.c -lbz2  -ldl -lm  1>&5
configure:12546: checking for png_get_valid in -lpng
configure:12565: i686-pc-linux-gnu-gcc -o conftest  -march=pentium4 -mtune=pentium4 -pipe -Wno-return-type -w -fno-strict-aliasing -pthread  -DARON_WAS_HERE  -lz  -lz -lpthread -Wl,-O2 conftest.c -lpng  -ldl -lm  1>&5
configure:12587: checking for png_get_acTL in -lpng
configure:12606: i686-pc-linux-gnu-gcc -o conftest  -march=pentium4 -mtune=pentium4 -pipe -Wno-return-type -w -fno-strict-aliasing -pthread  -DARON_WAS_HERE  -lz  -lz -lpthread -Wl,-O2 conftest.c -lpng  -ldl -lm  1>&5
/var/tmp/portage/net-libs/xulrunner-1.9/temp/ccFBmEzg.o: In function `main':
conftest.c.text+0x12): undefined reference to `png_get_acTL'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12595 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char png_get_acTL();

int main() {
png_get_acTL()
; return 0; }
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 20:36:53 | 显示全部楼层
给libpng打了个patch,结果png过了,现在出现了这个问题了
checking for jpeg_destroy_compress in -ljpeg... yes
checking for gzread in -lz... yes
checking for BZ2_bzread in -lbz2... yes
checking for png_get_valid in -lpng... yes
checking for png_get_acTL in -lpng... yes
checking for pkg-config... /usr/bin/pkg-config
checking for hunspell... yes
checking MOZ_HUNSPELL_CFLAGS... -I/usr/include/hunspell  
checking MOZ_HUNSPELL_LIBS... -lhunspell-1.2  
configure: error: --enable-application=APP was not specified and is required.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-1.9-r1/work/mozilla/config.log
回复 支持 反对

使用道具 举报

发表于 2008-6-20 01:28:19 | 显示全部楼层
我看到你在 Gentoo 官方论坛的帖子了,上面也说了不要打开 APNG,同时将 xulrunner 的 PNG 支持关闭。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-20 09:24:38 | 显示全部楼层
现在的问题是我的配置好像出了问题,xulrunner在configure的时候不应该查找System-png的,但是在我这里总是要查找system-png。

xulrunner自带的png是满足apng扩展的,所以不知道为什么configure脚本总是要去搜索系统库。
回复 支持 反对

使用道具 举报

发表于 2008-6-20 13:06:19 | 显示全部楼层
估计是USE设置的问题。USE设置的太多了。
回复 支持 反对

使用道具 举报

发表于 2008-6-20 21:37:49 | 显示全部楼层
我用的就是glibc-2.8和gcc-4.3.1,USE="xulrunner" emerge firefox-3, 编译过程没有问题,libpng也是1.2.27
  1. Portage 2.1.5.6 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r3 i686)
  2. =================================================================
  3. System uname: 2.6.25-gentoo-r3 i686 Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz
  4. Timestamp of tree: Wed, 18 Jun 2008 21:45:02 +0000
  5. app-shells/bash:     3.2_p39
  6. dev-java/java-config: 1.3.7, 2.1.3
  7. dev-lang/python:     2.5.2-r4
  8. dev-python/pycrypto: 2.0.1-r5
  9. sys-apps/baselayout: 2.0.0
  10. sys-apps/openrc:     0.2.5
  11. sys-apps/sandbox:    1.2.18.1-r2
  12. sys-devel/autoconf:  2.13, 2.62
  13. sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
  14. sys-devel/binutils:  2.18-r1, 2.18.50.0.7
  15. sys-devel/gcc-config: 1.4.0-r4
  16. sys-devel/libtool:   2.2.4
  17. virtual/os-headers:  2.6.25-r4
  18. ACCEPT_KEYWORDS="x86 ~x86"
  19. CBUILD="i686-pc-linux-gnu"
  20. CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
  21. CHOST="i686-pc-linux-gnu"
  22. CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
  23. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
  24. CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
  25. DISTDIR="/portage/distfiles"
  26. FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
  27. GENTOO_MIRRORS="http://61.135.158.199"
  28. LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -Wl,--as-needed"
  29. LINGUAS="zh_CN"
  30. MAKEOPTS="-j3"
  31. PKGDIR="/usr/portage/packages"
  32. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  33. PORTAGE_TMPDIR="/var/tmp"
  34. PORTDIR="/portage"
  35. PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise"
  36. SYNC="rsync://61.135.158.199/gentoo-portage"
  37. USE="X acpi alsa bash-completion berkdb branding bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus dri dvd dvdr dvdread emboss encode evo fam firefox flac fortran freetype gdbm geoip gif gnome gpm gtk hal iconv ipod isdnlog jpeg jpeg2k kdehiddenvisibility lcms libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses newspr nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssse3 startup-notification svg tcpd tiff tk truetype unicode vim-syntax vorbis win32codecs x86 xinetd xml xorg xprint xv 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" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
  38. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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