Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187761 - Build of x11-plugins/enigmail-0.95.2-r1 fails with link failure
Summary: Build of x11-plugins/enigmail-0.95.2-r1 fails with link failure
Status: VERIFIED 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-04 22:02 UTC by Vladimir G. Ivanovic
Modified: 2007-08-10 11:15 UTC (History)
0 users

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


Attachments
gzipped build log file (build.log.gz,136.50 KB, text/plain)
2007-08-04 22:09 UTC, Vladimir G. Ivanovic
Details
emerge --info (emerge.info,12.79 KB, text/plain)
2007-08-04 22:13 UTC, Vladimir G. Ivanovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir G. Ivanovic 2007-08-04 22:02:52 UTC
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=native -mtune=native -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'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/x11-plugins/enigmail-0.95.2-r1/work/mozilla/mailnews/extensions/enigmail'
make: *** [all] Error 2
make: Leaving directory `/var/tmp/portage/x11-plugins/enigmail-0.95.2-r1/work/mozilla/mailnews/extensions/enigmail'
 * 
 * ERROR: x11-plugins/enigmail-0.95.2-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1648:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   enigmail-0.95.2-r1.ebuild, line 161:   Called die
 * 
 * make enigmail failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-plugins/enigmail-0.95.2-r1/temp/build.log'.
 *
Comment 1 Vladimir G. Ivanovic 2007-08-04 22:09:51 UTC
Created attachment 126883 [details]
gzipped build log file

Note: I am using gcc-4.2.0.

# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.2.0 (Gentoo 4.2.0 p1.4)
Comment 2 Vladimir G. Ivanovic 2007-08-04 22:13:37 UTC
Created attachment 126884 [details]
emerge --info

Note: I added '-fPIC' to CFLAGS, before I noticed that it's already part of the options to libenigmime.so.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 05:53:48 UTC
Please search before reporting bugs.

*** This bug has been marked as a duplicate of bug 186089 ***
Comment 4 Vladimir G. Ivanovic 2007-08-10 02:19:14 UTC
I *DID* search before filing this bug, as I do for EVERY bug I file. 

Pray tell me, what reasonable search string would match "[4.2/bad code] non-PIC code generation" Not "-fPIC". Not "recompile with -fPIC" In fact , not for EVERY search string I tried.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 11:15:44 UTC
ust paste the error into the 'Comment' field in search:

http://tinyurl.com/3cmejw