======= making ./libldap50.a rm -f libldap50.a; /usr/bin/ar cr libldap50.a ./abandon.o ./add.o ./bind.o ./cache.o ./charray.o ./charset.o ./compare.o ./compat.o ./control.o ./countvalues.o ./delete.o ./disptmpl.o ./dsparse.o ./error.o ./extendop.o ./free.o ./freevalues.o ./friendly.o ./getattr.o ./getdn.o ./getdxbyname.o ./getentry.o ./getfilter.o ./getoption.o ./getvalues.o ./memcache.o ./message.o ./modify.o ./open.o ./os-ip.o ./proxyauthctrl.o ./psearch.o ./referral.o ./regex.o ./rename.o ./request.o ./reslist.o ./result.o ./saslbind.o ./sbind.o ./search.o ./setoption.o ./sort.o ./sortctrl.o ./srchpref.o ./tmplout.o ./ufn.o ./unbind.o ./unescape.o ./url.o ./utf8.o ./vlistctrl.o; ranlib libldap50.a ../liblber/./*.a ======= making ./libldap50.so i686-pc-linux-gnu-ld -shared -Wl,-soname -Wl,libldap50.so -o libldap50.so ./abandon.o ./add.o ./bind.o ./cache.o ./charray.o ./charset.o ./compare.o ./compat.o ./control.o ./countvalues.o ./delete.o ./disptmpl.o ./dsparse.o ./error.o ./extendop.o ./free.o ./freevalues.o ./friendly.o ./getattr.o ./getdn.o ./getdxbyname.o ./getentry.o ./getfilter.o ./getoption.o ./getvalues.o ./memcache.o ./message.o ./modify.o ./open.o ./os-ip.o ./proxyauthctrl.o ./psearch.o ./referral.o ./regex.o ./rename.o ./request.o ./reslist.o ./result.o ./saslbind.o ./sbind.o ./search.o ./setoption.o ./sort.o ./sortctrl.o ./srchpref.o ./tmplout.o ./ufn.o ./unbind.o ./unescape.o ./url.o ./utf8.o ./vlistctrl.o -L/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla/dist/lib -llber50 i686-pc-linux-gnu-ld: unrecognized option '-Wl,-soname' i686-pc-linux-gnu-ld: use the --help option for usage information gmake[5]: *** [libldap50.so] Error 1 gmake[5]: Leaving directory `/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla/directory/c-sdk/ldap/libraries/libldap' gmake[4]: *** [export] Error 2 gmake[4]: Leaving directory `/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla/directory/c-sdk/ldap/libraries' gmake[3]: *** [export] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla/directory/c-sdk/ldap' gmake[2]: *** [export] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla/directory/c-sdk' gmake[1]: *** [ldap] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-1.7.5-r1/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-1.7.5-r1 failed. !!! Function src_compile, Line 154, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. amazing ~ # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 17 2005, 16:36:13)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/media/MEDIA1/gentoo/distfiles" FEATURES="autoaddcvs autoconfig buildpkg distlocks prelink sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.CP1251" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags" MAKEOPTS="-j1" PKGDIR="/media/MEDIA1/gentoo/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/media/MEDIA1/gentoo/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acl acpi acpi4linux activefilter alsa apm arts artswrappersuid audiofile avi bash-completion bitmap-fonts bluetooth caps cddb cdparanoia cdr crypt cups curl dga dv dvd dvdr dvdread emboss encode exif fam ffmpeg flac foomaticdb gd gif gnokii gnutls gphoto2 gpm gstreamer gtk2 guile hal howl iconv ieee1394 imagemagick imap imlib innodb jack jack-tmpfs jpeg jpeg2k kde kdeenablefinal kerberos ladcca ladspa ldap libcaca libg++ libwww lirc lm_sensors lmtp logitech-mouse lufsusermount lzo mad maildir mailwrapper matroska mbox mikmod mjpeg mmx mozilla mozsvg mozxmlterm mp3 mpeg mppe-mppc nas ncurses nntp no-old-linux nptl nptlonly ntlm oav odbc ogg oggvorbis openal opengl pam pcmcia pcre pda pdflib pic plotutils png portaudio povray pwdb qt quicktime quotas rdesktop readline real rtc samba sasl scanner silc skey slang slp smartcard socks5 speex spell ssl svg svgz symlink tcltk tcpd tetex theora threads tidy tiff transcode truetype truetype-fonts usb utf8 v4l v4l2 vcdimager vidix wifi wmf xine xml xml2 xv xvid yv12 zeroconf zlib linguas_ru" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL
amazing ~ # emerge -pv mozilla These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/mozilla-1.7.5-r1 +crypt -debug -gnome +java +ldap +mozdevelop -moznomail -moznoxft +mozsvg* +mozxmlterm -postgres +ssl -xinerama -xprint 0 kB
USE=-ldap is worked solution...
Same error here. Except I want to have ldap support so -ldap is not a workable solution.
Pretty strange. Why is it trying to compile the library with gnu-ld intead of gcc? From my 1.7.5 log: gcc -shared -Wl,-soname -Wl,libldap50.so From 1.7.5-r1: i686-pc-linux-gnu-ld -shared -Wl,-soname -Wl,libldap50.so What is going on?
Just remerged mozilla-1.7.5 with no problem. It's the same code with the same patches as 1.7.5-r1, so it really looks like this ld problem is caused by the -r1 ebuild itself.
Removing the various LD="$(tc-getLD)", CC="$(tc-getCC)", and CXX="$(tc-getCXX)" references from the ebuild allowed it to compile properly for me. It looks like what's happening is that in the old ebuild, the configure script was never told what linker to use, so linking was called indirectly through gcc. When you do this, the commands to be passed to the linker (ld) have to be prefixed by -Wl, (so, in this example, -Wl,-soname tells gcc to invoke ld with the -soname option). In the new ebuild, the LD= definition configures make to call ld directly, but the configure script is somehow still set up to prefix linker calls with the -Wl, option. Not sure what the best way to fix the ebuild is (maybe define the variables before calling autoconf?), but hopefully this info will help whoever works on it.
Same problem with 1.7.6-r1. Severity should probably be bunmped to "blocker". Can we get a fix on this?
*** Bug 86447 has been marked as a duplicate of this bug. ***
Fixed in the latest ebuilds in the tree. Sorry this took so long... http://www.gentoo.org/cgi-bin/viewcvs.cgi/www-client/mozilla/mozilla-1.7.5-r1.ebuild?r1=1.2&r2=1.3 http://www.gentoo.org/cgi-bin/viewcvs.cgi/www-client/mozilla/mozilla-1.7.6-r1.ebuild?r1=1.4&r2=1.5