GNOME Bugzilla – Bug 314610
glib-2.8.1 fails to link on x86_64
Last modified: 2005-09-17 03:51:34 UTC
Distribution/Version: Gentoo amd64 I started a build of gargnome 2.11.92 on my amd64 machine. The build succeeded on my i686 machine, but failed on my similarly configured x86_64 computer. The last little bit of the build: (...) generating symbol list for `libglib-2.0.la' /usr/bin/nm -B .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o .libs/gbacktrace.o .libs/gcache.o .libs/gcompletion.o .libs/gconvert.o .libs/gdataset.o .libs/gdate.o .libs/gdir.o .libs/gerror.o .libs/gfileutils.o .libs/ghash.o .libs/ghook.o .libs/giochannel.o .libs/gkeyfile.o .libs/glist.o .libs/gmain.o .libs/gmappedfile.o .libs/gmarkup.o .libs/gmem.o .libs/gmessages.o .libs/gnode.o .libs/goption.o .libs/gpattern.o .libs/gprimes.o .libs/gqsort.o .libs/gqueue.o .libs/grel.o .libs/grand.o .libs/gscanner.o .libs/gshell.o .libs/gslist.o .libs/gstdio.o .libs/gstrfuncs.o .libs/gstring.o .libs/gthread.o .libs/gthreadpool.o .libs/gtimer.o .libs/gtree.o .libs/guniprop.o .libs/gutf8.o .libs/gunibreak.o .libs/gunicollate.o .libs/gunidecomp.o .libs/gutils.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o libcharset/.libs/libcharset.a | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libglib-2.0.exp grep -E -e "^[^_].*" ".libs/libglib-2.0.exp" > ".libs/libglib-2.0.expT" mv -f ".libs/libglib-2.0.expT" ".libs/libglib-2.0.exp" echo "{ global:" > .libs/libglib-2.0.ver cat .libs/libglib-2.0.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libglib-2.0.ver echo "local: *; };" >> .libs/libglib-2.0.ver cc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o .libs/gbacktrace.o .libs/gcache.o .libs/gcompletion.o .libs/gconvert.o .libs/gdataset.o .libs/gdate.o .libs/gdir.o .libs/gerror.o .libs/gfileutils.o .libs/ghash.o .libs/ghook.o .libs/giochannel.o .libs/gkeyfile.o .libs/glist.o .libs/gmain.o .libs/gmappedfile.o .libs/gmarkup.o .libs/gmem.o .libs/gmessages.o .libs/gnode.o .libs/goption.o .libs/gpattern.o .libs/gprimes.o .libs/gqsort.o .libs/gqueue.o .libs/grel.o .libs/grand.o .libs/gscanner.o .libs/gshell.o .libs/gslist.o .libs/gstdio.o .libs/gstrfuncs.o .libs/gstring.o .libs/gthread.o .libs/gthreadpool.o .libs/gtimer.o .libs/gtree.o .libs/guniprop.o .libs/gutf8.o .libs/gunibreak.o .libs/gunicollate.o .libs/gunidecomp.o .libs/gutils.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive libcharset/.libs/libcharset.a -Wl,--no-whole-archive -L/opt/garnome/lib -Wl,--export-dynamic -Wl,-soname -Wl,libglib-2.0.so.0 -Wl,-version-script -Wl,.libs/libglib-2.0.ver -o .libs/libglib-2.0.so.0.800.1 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gconvert.o: relocation R_X86_64_PC32 against `_g_charset_get_aliases' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[8]: *** [libglib-2.0.la] Error 1 make[8]: Leaving directory `/home/pat/garnome-2.11.92/platform/glib/work/main.d/glib-2.8.1/glib' make[7]: *** [all-recursive] Error 1 make[7]: Leaving directory `/home/pat/garnome-2.11.92/platform/glib/work/main.d/glib-2.8.1/glib' make[6]: *** [all] Error 2 make[6]: Leaving directory `/home/pat/garnome-2.11.92/platform/glib/work/main.d/glib-2.8.1/glib' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/pat/garnome-2.11.92/platform/glib/work/main.d/glib-2.8.1' I will test any suggestions that are made.
Does this still happen with garnome-2.12.0?
No, this no longer happens with 2.12.0. However, I recently upgraded my whole system to Gnome 2.12 so any libtool discrepancies or whatnot could have been fixed on a system level. Regardless, I no longer see this.