LinuxSir.cn,穿越时空的Linuxsir!

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

比较郁闷。emerge amule 失败。可是偶运行 configure make却可以编译成功。

[复制链接]
发表于 2006-12-13 20:52:37 | 显示全部楼层 |阅读模式
RT。难道偶人品不够?


出错信息:collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.1.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  amule-2.1.2.ebuild, line 102:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.




emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 13 Dec 2006 09:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -finline-functions"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -finline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo http://ftp.twaren.net/Linux/Gentoo http://mirror.gentoo.gr.jp http://gentoo.osuosl.org"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acpi alsa apm arts avi berkdb bitmap-fonts blas bonobo breakme cairo cdr cjk cli cracklib crypt cscope cups dbus directfb divx4linux dlloader dri dvb dvdr dvdread elibc_glibc encode esd faad ffmpeg flac foomaticdb fortran gcj gdbm gif glitz gnome gnome2 gpm gstreamer gtk gtk2 gtkhtml hal iconv ieee1394 imagemagick imlib immqt-bc input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kernel_linux ldap libcaca libg++ libwww mad mikmod mmx mono motfi mp3 mpeg mysql nas ncurses nls nptl nptlonly nvidia-card oggvoribs opengl oss pam pcre pdf pdflib perl png ppds pppd python qt3 quicktime readline reflection ruby samba scanner sdl session slang sockets spell spl ssl stats svg svga tcltk tcpd tetex truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis win32coders wxwindows x86 xine xinerama xml2 xorg xv xvid zlib"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
 楼主| 发表于 2006-12-13 22:26:29 | 显示全部楼层
啊。。。。。啥就没人理呢?难道没有人遇到这种事?
回复 支持 反对

使用道具 举报

发表于 2006-12-13 22:46:47 | 显示全部楼层
我编译安装amule正常
回复 支持 反对

使用道具 举报

发表于 2006-12-14 00:20:36 | 显示全部楼层
注释掉LDFLAGS="-Wl,-O1"试试。
回复 支持 反对

使用道具 举报

发表于 2006-12-14 10:02:20 | 显示全部楼层
出错信息给的不少,不过有效信息没贴。错误信息里大概从下面这一行开始,都是无效信息
collect2: ld returned 1 exit status
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 21:56:13 | 显示全部楼层
Post by torres
注释掉LDFLAGS="-Wl,-O1"试试。

试过了,没有效果。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 22:01:52 | 显示全部楼层
Post by zhllg
出错信息给的不少,不过有效信息没贴。错误信息里大概从下面这一行开始,都是无效信息
collect2: ld returned 1 exit status



编译过程中不断出现类似如下 的警告:
/usr/include/wx-2.6/wx/clntdata.h: In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.6/wx/clntdata.h:26: warning: dereferencing type-punned pointer will break strict-aliasing rules

google搜了一下,好像是和GCC的-O2选项有关,-O2应该是安全滴啊


截了最后的一段:
amule-ClientCreditsList.o: In function `CryptoPP::AlignedAllocator<unsigned int>::pointer CryptoPP::StandardReallocate<unsigned int, CryptoPP::AlignedAllocator<unsigned int> >(CryptoPP::AlignedAllocator<unsigned int>&, unsigned int*, CryptoPP::AlignedAllocator<unsigned int>::size_type, CryptoPP::AlignedAllocator<unsigned int>::size_type, bool)':
ClientCreditsList.cpp.text._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[CryptoPP::AlignedAllocator<unsigned int>::pointer CryptoPP::StandardReallocate<unsigned int, CryptoPP::AlignedAllocator<unsigned int> >(CryptoPP::AlignedAllocator<unsigned int>&, unsigned int*, CryptoPP::AlignedAllocator<unsigned int>::size_type, CryptoPP::AlignedAllocator<unsigned int>::size_type, bool)]+0x69): undefined reference to `CryptoPP::AlignedAllocator<unsigned int>::deallocate(void*, unsigned int)'
ClientCreditsList.cpp.text._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[CryptoPP::AlignedAllocator<unsigned int>::pointer CryptoPP::StandardReallocate<unsigned int, CryptoPP::AlignedAllocator<unsigned int> >(CryptoPP::AlignedAllocator<unsigned int>&, unsigned int*, CryptoPP::AlignedAllocator<unsigned int>::size_type, CryptoPP::AlignedAllocator<unsigned int>::size_type, bool)]+0x85): undefined reference to `CryptoPP::AlignedAllocator<unsigned int>::deallocate(void*, unsigned int)'
amule-ClientCreditsList.o: In function `CryptoPP::Integer::~Integer()':
ClientCreditsList.cpp.text._ZN8CryptoPP7IntegerD1Ev[CryptoPP::Integer::~Integer()]+0x25): undefined reference to `CryptoPP::AlignedAllocator<unsigned int>::deallocate(void*, unsigned int)'
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.2/work/aMule-2.1.2'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.1.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  amule-2.1.2.ebuild, line 102:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
回复 支持 反对

使用道具 举报

发表于 2006-12-14 23:56:24 | 显示全部楼层
portage里最新的amule是2.1.3,我这正用,你试试unmask它装装试试(如果你用的是x86)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-15 00:00:51 | 显示全部楼层
Post by daqie
portage里最新的amule是2.1.3,我这正用,你试试unmask它装装试试(如果你用的是x86)。

                                      偶编译amule-cvs也是这个老样子的问题
回复 支持 反对

使用道具 举报

发表于 2006-12-15 09:17:24 | 显示全部楼层
首先,你搜bugs.gentoo.org了么?

其次,警告在这里不用理会。undefined reference一般都是因为库文件和程序不匹配。
既然有人提议2.1.3你就试试,cvs出问题不代表2.1.3出问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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