FreeBSD5.4上面编译安装Firefox1.0.6之后,总是运行出错,为啥?
             两次安装都是这样:(
机器: p4 3.0G(prescott)+1G ram+120G hd...
直接装的最小系统,然后编译安装world和kernel到release-p6,这都正常。
接着xorg也没问题,然后我就开始编译firefox,编译没有问题,但是到了install的时候发现出了两个segment fault的错误(见下面),startx之后root直接运行firefox,(据说第一次运行firefox必须是root?)也segment fault.尝试改变locale等环境变量到默认C也没啥反映,删除.mozilla目录之后错误依旧....
不知道到底怎么回事,郁闷ing...
我的make.conf里面打开了p4-prescott的编译优化选项,和这个有关系么?记得好像这里的一个贴子提到过说编译gtk2的时候不能打开p4的优化,只能用i686?
如果现在要重新编译firefox以及他所依赖的所有包,例如
gtk+2之类的话,用啥比较方便?直接运行portupgrade firefox可以么?
这个是我的make.conf:
。
  
    
这个是当时出现的错误
  
    
这个是我的环境变量:
  
    
            
            机器: p4 3.0G(prescott)+1G ram+120G hd...
直接装的最小系统,然后编译安装world和kernel到release-p6,这都正常。
接着xorg也没问题,然后我就开始编译firefox,编译没有问题,但是到了install的时候发现出了两个segment fault的错误(见下面),startx之后root直接运行firefox,(据说第一次运行firefox必须是root?)也segment fault.尝试改变locale等环境变量到默认C也没啥反映,删除.mozilla目录之后错误依旧....
不知道到底怎么回事,郁闷ing...
我的make.conf里面打开了p4-prescott的编译优化选项,和这个有关系么?记得好像这里的一个贴子提到过说编译gtk2的时候不能打开p4的优化,只能用i686?
如果现在要重新编译firefox以及他所依赖的所有包,例如
gtk+2之类的话,用啥比较方便?直接运行portupgrade firefox可以么?
这个是我的make.conf:
。
    引用:
  
  | 
        CPUTYPE?=prescott CFLAGS= -O2 -pipe -march=prescott -fno-strict-aliasing CXXFLAGS+=-fomit-frame-pointer COPTFLAGS= -O2 -pipe -march=prescott -fomit-frame-pointer -fno-strict-aliasing # To enable installing ssh(1) with the setuid bit turned on ENABLE_SUID_SSH= true # To enable installing newgrp(1) with the setuid bit turned on. # Without the setuid bit, newgrp cannot change users' groups. ENABLE_SUID_NEWGRP= true COMPAT3X= yes COMPAT4X= yes PERL_VER=5.8.7 PERL_VERSION=5.8.7 WITH_CJK=yes NO_FORTRAN= true NO_BLUETOOTH= true NO_I4B= true NO_INET6= true NO_PROFILE= true #BOOTWAIT=30000 DOC_LANG= en_US.ISO8859-1 FETCH_CMD=proz -r -k=2 DISABLE_SIZE=yes NO_ATM=true NO_SENDMAIL=true NO_GAMES=true NO_PROFILE=true NO_IPFILTER=true NO_LPR=yes BATCH=yes ## WITH_SETUID_LUIT=yes WITH_GTK2=yes USE_X86_ASM=yes USE_MMX_ASM=yes #USE_3DNOW_ASM=yes #WITHOUT_KDE_MENUS=yes ## Multimedia Options WITH_CDPARANOIA=yes WITH_AALIB=yes WITH_ESOUND=yes WITH_FAAD=yes WITH_FLAC=yes WITH_FREETYPE=yes WITH_GDKPIXBUF=yes WITH_GSM=yes WITH_HERMES=yes WITH_JPEG=yes WITH_LADSPA=yes WITH_LAME=yes WITH_LIBA52=yes WITH_LIBAUDIOFILE=yes WITH_LIBCACA=yes WITH_LIBFAME=yes WITH_LIBMIKMOD=yes WITH_LIBMPEG2=yes WITH_LIBMUSICBRAINZ=yes WITH_LIBSHOUT=yes WITH_LIBSIDPLAY=yes WITH_LIBSNDFILE=yes WITH_LIBTHEORA=yes WITH_MAD=yes WITH_NAS=yes WITH_PANGO=yes WITH_PNG=yes WITH_SDL=yes WITH_SMOOTHWAVE=yes WITH_SPEEX=yes WITH_SWFDEC=yes WITH_VORBIS=yes WITH_VORBISIDEC=yes WITH_XINE=yes WITH_XVID=yes WITH_SVGALIB=yes WITH_REALPLAYER=yes ## Application Options WANT_HUGE_STACK_SIZE=yes WITH_GDM=yes WITHOUT_MAILNEWS=yes WITHOUT_COMPOSER=yes WITHOUT_LDAP=yes WITHOUT_CHATZILLA=yes WITHOUT_XMLTERM=yes WITH_GLX=yes WITH_TTF_BYTECODE_ENABLED=yes WITH_OPTIMIZED_CFLAGS=yes WITH_OPTIMIZED_CXXFLAGS=yes WITH_OPTIMIZE=yes WITHOUT_RUNTIME_CPUDETECTION=yes CUPS_OVERWRITE_BASE=yes WITH_GNUTLS=yes # added by use.perl 2005-08-06 15:11:16 PERL_VER=5.8.7 PERL_VERSION=5.8.7 WITH_SMB=yes  | 
    
这个是当时出现的错误
    引用:
  
  | 
         install -o root -g wheel -m 555 /usr/ports/www/firefox/work/fake/bin/firefox-co if [ ! -d /usr/X11R6/lib/browser_plugins ]; then /bin/mkdir -p /usr/X11R6/lib/b /usr/bin/touch -f /usr/X11R6/lib/browser_plugins/.firefox.keep^M if [ ! -L /usr/X11R6/lib/browser_plugins/libjavaplugin_oji.so ]; then for jpi i for pcfile in firefox-gtkmozembed firefox-js firefox-xpcom firefox-nspr firefox /bin/rm -fr /usr/X11R6/include/firefox^M /bin/mkdir -p /usr/X11R6/include/firefox^M /bin/chmod 755 /usr/X11R6/include/firefox^M cd /usr/ports/www/firefox/work/fake/include/firefox-1.0.6 && /usr/bin/find . | 25682 blocks^M cd /usr/ports/www/firefox/work/fake/lib/firefox-1.0.6 && /usr/bin/find . | /usr 60697 blocks^M /bin/mkdir -p /usr/X11R6/share/idl/firefox^M cd /usr/ports/www/firefox/work/fake/share/idl/firefox-1.0.6 && /usr/bin/find . | 6216 blocks^M ===> Building Chrome's registry...^M Segmentation fault^M Segmentation fault^M install -o root -g wheel -m 555 /usr/ports/www/firefox/files/firefox.rb /usr/X1 /bin/mkdir -p /usr/X11R6/share/applications^M install -o root -g wheel -m 444 /usr/ports/www/firefox/work/firefox.desktop /us install -o root -g wheel -m 444 /usr/ports/www/firefox/work/mozilla/other-licen ===> Registering installation for firefox-1.0.6_1,1^M ===> SECURITY REPORT: ^M This port has installed the following files which may act as network^M servers and may therefore pose a remote security risk to the system.^M /usr/X11R6/lib/firefox/libnspr4.so^M ^M If there are vulnerabilities in these programs there may be a security^M risk to the system. FreeBSD makes no guarantee about the security of^M ^M If there are vulnerabilities in these programs there may be a security^M risk to the system. FreeBSD makes no guarantee about the security of^M ports included in the Ports Collection. Please type 'make deinstall'^M to deinstall the port if this is a concern.^M ^M For more information, and contact details about the security^M status of this software, see the following webpage: ^M http://www.mozilla.org/products/firefox/^M ===> Cleaning for atk-1.9.1^M ===> Cleaning for unzip-5.52_1^M ===> Cleaning for zip-2.3_2^M ===> Cleaning for cdparanoia-3.9.8_7^M ===> Cleaning for libiconv-1.9.2_1^M ===> Cleaning for ORBit2-2.12.2^M ===> Cleaning for autoconf-2.53_3^M ===> Cleaning for automake-1.5_2,1^M ===> Cleaning for bison-1.75_2^M ...  | 
    
    引用:
  
  | 
         # $FreeBSD: src/etc/root/dot.profile,v 1.20 1999/08/27 23:24:09 peter Exp $ # ulimit -c 0 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin export PATH HOME=/root export HOME TERM=${TERM:-cons25} export TERM PAGER=more export PAGER export LSCOLORS='ExGxFxdxCxDxDxBxBxExEx' alias ls='gnuls --color=auto --show-control-chars' alias df='df -H' export G_BROKEN_FILENAMES=1 export LC_ALL=zh_CN.GBK export XMODIFIERS="@im=fcitx" export XIM=fcitx export XIM_PROGRAM=fcitx alias vi='env LC_CTYPE=en_US.ISO8859-1 vi' bind 'set convert-meta off' bind 'set meta-flag on' bind 'set out-meta on'  | 
    
作者: dlbird 发布时间: 2005-08-06
             搞定了,原来是CXXFLAGS+=-fomit-frame-pointer
搞得,看来这个还真是害人...
            搞得,看来这个还真是害人...
作者: dlbird 发布时间: 2005-08-06