QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2874|回复: 8

cvs编译错误

[复制链接]
发表于 2006-3-22 22:27:22 | 显示全部楼层 |阅读模式
make[3]: Entering directory `/tmp/2/eva/src'
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common    -o eva -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib64 -L/usr/lib64 -L/usr/qt/3/lib -L/usr/kde/3.5/lib  main.o evachatwindowmanager.o evamain.o evasystemtray.o evaidt.o evachatwindowmanager.moc.o evaidt.moc.o evasystemtray.moc.o evamain.moc.o  ../src/ui/libevaui.la ../src/libeva/libeva.la ../src/api/libevaapi.la ../src/api/filetrans/libapi_ft.la -lkdeui -lXext -lXss
/usr/kde/3.5/lib64/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1'
collect2: ld returned 1 exit status
make[3]: *** [eva] 错误 1
make[3]: Leaving directory `/tmp/2/eva/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/tmp/2/eva/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/2/eva'
make: *** [all] 错误 2
发表于 2006-3-23 10:13:21 | 显示全部楼层
I have no idea.  
Trying to provide some more information about your system so that someone here might get some idea.
回复

使用道具 举报

WeiMingzhi 该用户已被删除
发表于 2006-3-23 10:46:36 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 发表于 2006-3-23 18:47:06 | 显示全部楼层
emerge --info
Portage 2.1_pre6-r6 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.139pay.com/ http://ftp.gentoo.or.kr/  http://gentoo.gg3.net http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="zh_CN.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh_CN.utf8 zh_TW en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/chinese-beautify-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X aac aalib acpi alsa amd64 apache2 arts asf authdaemond automount avi berkdb bidi bitmap-fonts browserplugin bzip2 cairo cdr cjk clamav cli crypt ctype cups dba dbus dga directfb divx4linux dri dts dvd dvdr dvdread eds emboss encode esd exif expat fam fastbuild fbcon ffmpeg fglrx firefox font-server foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp glc glut glx gnome gnutls gpm gstreamer gtk gtk2 hal imagemagick imap imlib immqt ipv6 java jpeg jpeg2k kde kqemu lame libg++ libwww live lm_sensors lzw lzw-tiff mad maildir memlimit mjpeg mozilla mp3 mpeg mplayer multislot nas ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png posix python qt quicktime radeon rar readline real rplay ruby samba scanner sdl session simplexml slang slp soap sockets spell spl ssl stroke subtitles svg syslog tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts unicode usb valias vcd vhosts video_cards_radeon videos vim-with-x wmf x264 xcomposite xgl xine xml xml2 xmms xpm xprint xscreensaver xsl xv xvid zh_CN zh_TW zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_zh_CN linguas_zh_CN.utf8 linguas_zh_TW linguas_en userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS
回复

使用道具 举报

 楼主| 发表于 2006-3-23 18:48:49 | 显示全部楼层
[quote:39ffc32de3="WeiMingzhi"]是不是在混用 libstdc++5 与 libstdc++6 ?[/quote]
怎么查看是否在混用?
回复

使用道具 举报

 楼主| 发表于 2006-3-23 18:51:14 | 显示全部楼层
./configure --prefix=`kde-config --prefix`
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
checking whether g++ supports -Wl,--no-undefined... yes
checking whether g++ supports -Wl,--allow-shlib-undefined... yes
not using lib directory suffix
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking if C++ programs can be compiled... yes
checking for strlcat... no
checking if strlcat needs custom prototype... yes - in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes - in libkdefakes
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking if res_init is available... yes
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for char *... yes
checking size of char *... 8
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 8
checking for unsigned long... yes
checking size of unsigned long... 8
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries /usr/lib64, headers .
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /usr/qt/3/lib, headers /usr/qt/3/include using -mt
checking for moc... /usr/qt/3/bin/moc
checking for uic... /usr/qt/3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /usr/kde/3.5/lib, headers /usr/kde/3.5/include
checking if UIC has KDE plugins available... yes
checking for KDE paths... defaults
checking for dcopidl... /usr/kde/3.5/bin/dcopidl
checking for dcopidl2cpp... /usr/kde/3.5/bin/dcopidl2cpp
checking for mcopidl... /usr/kde/3.5/bin/mcopidl
checking for artsc-config... /usr/kde/3.5/bin/artsc-config
checking for kde-config... /usr/kde/3.5/bin/kde-config
checking for meinproc... /usr/kde/3.5/bin/meinproc
checking for xmllint... /usr/bin/xmllint
checking whether byte ordering is bigendian... no
checking for MAXPATHLEN... 4096
checking for XScreenSaverAllocInfo in -lXss... yes
checking if doc should be compiled... yes
checking if po should be compiled... yes
checking if src should be compiled... yes
configure: creating ./config.status
fast creating Makefile
fast creating doc/Makefile
fast creating doc/en/Makefile
fast creating po/Makefile
fast creating po/zh_CN/Makefile
fast creating src/Makefile
fast creating src/api/Makefile
fast creating src/api/filetrans/Makefile
fast creating src/image/Makefile
fast creating src/image/face/Makefile
fast creating src/image/smiley/Makefile
fast creating src/image/theme/Makefile
fast creating src/libeva/Makefile
fast creating src/libeva/libcustompic/Makefile
fast creating src/libeva/libft/Makefile
fast creating src/libeva/libuh/Makefile
fast creating src/sound/Makefile
fast creating src/ui/Makefile
config.pl: fast created 18 file(s).
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Good - your configure finished. Start make now
回复

使用道具 举报

 楼主| 发表于 2006-3-23 21:30:48 | 显示全部楼层
另外:这个版的置顶和公告也太多了些
回复

使用道具 举报

发表于 2006-3-23 21:48:19 | 显示全部楼层
你这个问题很难讲, 我google了一下,也没有明确答案, 大概的原因可能是你的kde(至少是khtml.so)编译使用的GCC版本 和你机器现在使用的GCC版本不同, 所导致的链接问题。
回复

使用道具 举报

发表于 2006-6-12 22:07:54 | 显示全部楼层
也不一定是 kdelibs, 可能是别的什么库用的是老版本的 gcc编译的。一般这个问题的解决方法是:

fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 00:38 , Processed in 0.056530 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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