Compile error of FireFox 2.0 RC1 on Red Hat 4

Discuss building things with or for the Mozilla Platform.
Post Reply
yinglcs
Posts: 77
Joined: December 19th, 2005, 2:53 pm

Compile error of FireFox 2.0 RC1 on Red Hat 4

Post by yinglcs »

Hi,
I am trying to compile FireFox 2.0 RC1 on Red Hat 4. My environment was able to comile FireFox 1.5.0.7. So I would like to know what are the requirements to compile FireFox 2.0 RC1.

Thank you.

../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0xaef): In function `nsCanvasRenderingContext2D::Destroy()':
/root/build/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:523: undefined reference to `XFreePixmap'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x14ba): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
/root/build/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:766: undefined reference to `XRenderFindStandardFormat'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x14e0):/root/build/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:769: undefined reference to `XListPixmapFormats'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x1507):/root/build/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:776: undefined reference to `XFree'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x153d):/root/build/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:779: undefined reference to `XCreatePixmap'
collect2: ld returned 1 exit status
gmake[4]: *** [libgklayout.so] Error 1
gmake[4]: Leaving directory `/root/build/mozilla/firefox-objdir/layout/build'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/root/build/mozilla/firefox-objdir/layout'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/root/build/mozilla/firefox-objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/build/mozilla/firefox-objdir'
make: *** [build] Error 2
[root@REDHAT100 mozilla]#
jong357
Posts: 21
Joined: May 4th, 2004, 9:11 pm

Post by jong357 »

I get the same error on Firefox 2.0.... 10:1 it's looking for Xorg-7.x includes. Load of crap IMO. I'm on a ppc DIY/LFS build so I there are no binaries available and I have to compile from source. Despite popular belief, Xorg-7.x IS NOT main stream yet so why the Mozilla devs are forcing it as a dependency is beyond me.

Could be wrong but it seems that that is what the error is implying.
yinglcs
Posts: 77
Joined: December 19th, 2005, 2:53 pm

Post by yinglcs »

Hi,

I tried compiling FireFox 2.0 on Fedora 6. I am getting the same error. Does anyone know how to resolve it?

Thank you.
jong357
Posts: 21
Joined: May 4th, 2004, 9:11 pm

Patch

Post by jong357 »

Here is a patch. For some reason it can't find X. I still think this probably wouldn't happen if you were building against X11R7 (unless FC6 uses 7.x)... Anyhoo... Specifying the libs does the trick.

Code: Select all

--- mozilla/layout/build/Makefile.in.orig   2006-12-08 21:30:32.000000000 -0500
+++ mozilla/layout/build/Makefile.in   2006-12-08 21:38:23.000000000 -0500
@@ -225,7 +225,7 @@
 endif
 
 ifdef MOZ_ENABLE_GTK2
-EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
+EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) -L/usr/X11R6/lib -lXrender -lX11 \
           $(NULL)
 endif
 

yinglcs
Posts: 77
Joined: December 19th, 2005, 2:53 pm

Post by yinglcs »

thanks ! You suggestion works!
jong357
Posts: 21
Joined: May 4th, 2004, 9:11 pm

Post by jong357 »

Also, for anyone else, if you already have a ~/.mozila directory, you'll probably have to delete it. Save your bookmarks first.
You'll know if you have to delete your home mozilla folder if you start getting a gtk error box. Something about "error in parsing blah blah".
xul files or something.

Haven't checked to see if any of this is fixed in 2.0.0.1 yet...
Post Reply