Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188101 - x11-plugins/enigmail-0.95.2-r1 build fails with gcc-4.2 (on amd64)
Summary: x11-plugins/enigmail-0.95.2-r1 build fails with gcc-4.2 (on amd64)
Status: RESOLVED DUPLICATE of bug 186089
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 12:51 UTC by Bernhard Frauendienst
Modified: 2007-08-08 12:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Frauendienst 2007-08-08 12:51:18 UTC
enigmail (currently 0.95.2-r1) fails to build when gcc-4.2 is selected (on my amd64 system). It builds fine when gcc-4.1.2 is active.

The build error output is:

rm -f libenigmime.so
c++  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=nocona -pipe -fPIC -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -fPIC -shared -Wl,-z,defs -Wl,-rpath,'$ORIGIN:$ORIGIN/..' -Wl,-h,libenigmime.so -o libenigmime.so  nsEnigModule.o      -Wl,-rpath,'$ORIGIN:$ORIGIN/..'  -Wl,--whole-archive ../src/libenigmime_s.a ../ipc/src/libipc_s.a  -Wl,--no-whole-archive -L../../../../dist/bin -L../../../../dist/lib -L../../../../dist/bin -lxpcom -lxpcom_core  -L../../../../dist/lib -lxpcom_compat -Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -Wl,--version-script -Wl,../../../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nsEnigModule.o: relocation R_X86_64_PC32 against `NS_NewGenericModule2(nsModuleInfo const*, nsIModule**)' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[2]: *** [libenigmime.so] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/x11-plugins/enigmail-0.95.2-r1/work/mozilla/mailnews/extensions/enigmail/build'


This seems to be a problem that should be fixed by upstream, but I though I'd post it anyway ;) Maybe this can be fixed with a simple patch.
Comment 1 Bernhard Frauendienst 2007-08-08 12:53:03 UTC
Here is my emerge --info, if relevant.

Portage 2.1.3.3 (default-linux/amd64/2006.1, gcc-4.2.0, glibc-2.6-r0, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 08 Aug 2007 11:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LINGUAS="de en en_US en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/java-overlay /usr/portage/local/layman/vmware /usr/portage/local/layman/xeffects /usr/portage/local"
SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bzip2 cairo cddb cli cracklib crypt css cups curl dga dri dts dvd dvdr dvdread emacs encode exif fbcon ffmpeg firefox flac fortran gdbm gif gimp gmp gnome gnutls gpm gstreamer hal hbci iconv imagemagick imap ipv6 isdnlog jack java jpeg kde ladspa lcms libcaca libg++ libsamplerate lirc lm_sensors logitech-mouse matroska midi mng mozbranding mp3 mpeg mplayer msn mudflap musepack ncurses nls no-old-linux nptl nptlonly nsplugin nvidia odbc ogg openal opengl openmp oss pam pcre pdf perl pertty png postgres ppds pppd python qt3 qt4 quicktime rar readline reflection rtc sasl sdl session smp sndfile socks5 source spell spl ssl ssse3 svg sysfs tcpd tetex theora threads transparency truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis wxwindows x264 xcomposite xine xinerama xml xorg xosd xprint xscreensaver xv xvid 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US en_GB" LIRC_DEVICES="asusdh" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-08-08 12:53:43 UTC
Please search before reporting bugs.


*** This bug has been marked as a duplicate of bug 186089 ***

*** This bug has been marked as a duplicate of bug 186089 ***
Comment 3 Bernhard Frauendienst 2007-08-08 12:55:40 UTC
(In reply to comment #2)
> Please search before reporting bugs.

Guess I shouldn't have searched for enigmail, but instead have gone through the gcc-bugs. My bad.