Re: Probs with 2.12.2.1



On 12/9/05, Joseph E. Sacco, PhD <joseph_sacco comcast net> wrote:
> Adam,
>
> This particular build problem arises when the linker picks up the wrong
> set of firefox libs. Looking at the trace you posted, I see include
> files being used that are not from the GARNOME firefox build. So
> something is amiss.

OK, I've tracked it down a bit further. At that point in the build,
firefox is trying to link (amongst other things) libnss3.so.

Fifefox has already created that lib, and it lives here:

work/firefox/main.d/mozilla/dist/lib/libnss3.so
work/firefox/main.d/mozilla/security/nss/lib/nss/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnss3.so

But it that's not indicated by any -L entries, so the linker picks up
an old one from my base OS in /usr/lib64.

I've just hacked around it by adding the lib that contains libnss3.so
to LDFLAGS, but that's a bit ugly.


Incidentally, I have made one change to gar.conf.mk:

    #LDFLAGS += -Wl,--export-dynamic -L$(libdir)
    LDFLAGS += -L$(libdir)

If I don't do this, the firefox build dies much earlier. I think this
is only relevant to x86_64 builds. The error message is below, in case
someone else has already resolved it ...

Thanks,

 - Adam

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/ita/gar65/lib
-L/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/usr/X11R6/lib64 -lXtst 
-march=athlon64 -msse2 -mfpmath=sse -Wl,-O1 -Wl,-O1
-Wl,--export-dynamic -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.4
/usr/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/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]