compiling firefox under RHEL4 -- libmozz.so issue

Justin Gedge gedgezilla at gmail.com
Fri Aug 4 16:40:31 MDT 2006


On 7/27/06, plug.org at 2nerds.com <plug.org at 2nerds.com> wrote:
>
> On Thu, 27 Jul 2006, Justin Gedge wrote:
> > rm -f libmozz.so
> > c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
> > -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
> > -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
> > -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-h
> > -Wl,libmozz.so -o libmozz.so  adler32.o compress.o crc32.o deflate.o
> gzio.o
> > infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
> > -ldl -lm
> > /usr/bin/ld: deflate.o: relocation R_X86_64_PC32 against
> > `memcpy@@GLIBC_2.2.5' can not be used when making a shared object;
> recompile
> > with -fPIC
> > /usr/bin/ld: final link failed: Bad value
> .
> .
> .
> > Kind of interesting- it complains about libmozz.so not being there- but
> a
> > few lines earlier- it [rm -f libmozz.so].  Not sure why it's going
> through
> > torching a file it needs seconds later in the compile.  Any ideas?
>
> It's removing libmozz.so because the c++ command-line is attempting to
> re-create it.  (see the "-o libmozz.so"?).
>
> My only guess at the linker error is that deflate.o was compiled without
> -fPIC.  Does your make log file show the command-line which was used to
> compile deflate.o?
>
> Chris
>
>
>

only place deflate.o shows up is a few lines earlier.  Stuffing a few
previous log lines in here:

/home/gedge/programs/firefox/mozilla/config/nsinstall -R -m 644
libmozjpeg.a../dist/lib
gmake[2]: Leaving directory `/home/gedge/programs/firefox/mozilla/jpeg'
gmake[2]: Entering directory
`/home/gedge/programs/firefox/mozilla/modules/zlib'
gmake[3]: Entering directory
`/home/gedge/programs/firefox/mozilla/modules/zlib/src'
rm -f libmozz.so
c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-h
-Wl,libmozz.so -o libmozz.so  adler32.o compress.o crc32.o deflate.o gzio.o
infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
-ldl -lm
/usr/bin/ld: deflate.o: relocation R_X86_64_PC32 against
`memcpy@@GLIBC_2.2.5' 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
gmake[3]: *** [libmozz.so] Error 1
gmake[3]: Leaving directory
`/home/gedge/programs/firefox/mozilla/modules/zlib/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory
`/home/gedge/programs/firefox/mozilla/modules/zlib'
gmake[1]: *** [tier_1] Error 2
gmake[1]: Leaving directory `/home/gedge/programs/firefox/mozilla'
gmake: *** [default] Error 2



More information about the PLUG mailing list