LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Firefox Build Problem after upgrade (https://www.linuxquestions.org/questions/slackware-14/firefox-build-problem-after-upgrade-641243/)

Toods 05-10-2008 03:40 AM

Firefox Build Problem after upgrade
 
I have recently upgraded one of my PCs to Slackware 12.1 and it is not possible to build Firefox without the build aborting with an error.

This occurs whether or not the '.mozconfig' file has the line: 'ac_add_options --enable-canvas'.

This is the terminal output:

Quote:

/usr/src/firefox-2.0.0.14-source/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:2808: instantiated from here
../../../dist/include/xpcom/nsAutoPtr.h:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/firefox-2.0.0.14-source/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp: At global scope:
/usr/src/firefox-2.0.0.14-source/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:198: warning: 'PRBool FloatValidate(double, double, double)' defined but not used
gmake[5]: *** [nsCanvasRenderingContext2D.o] Error 1
gmake[5]: Leaving directory `/usr/src/firefox-2.0.0.14-source/mozilla/ffobjs/content/canvas/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/usr/src/firefox-2.0.0.14-source/mozilla/ffobjs/content/canvas'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/src/firefox-2.0.0.14-source/mozilla/ffobjs/content'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/usr/src/firefox-2.0.0.14-source/mozilla/ffobjs'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/usr/src/firefox-2.0.0.14-source/mozilla/ffobjs'
gmake: *** [build] Error 2
root@kazmo:/usr/src/firefox-2.0.0.14-source/mozilla#

This same Firefox source and 'mozconfig' worked perfectly to build Firefox before the upgrade.

I guess that i probably have a library or something missing, maybe to do with X11?

Any clues would be helpful.

Many thanks,

Bill.

Toods 05-10-2008 07:24 AM

Problem solved:

It now seems that the following line needs to be added to '.mozconfig' to get Firefox to build correctly:

Quote:

ac_add_options --enable-system-cairo
Bill.

jong357 05-10-2008 08:55 AM

I've been using these since 2.x was released:

ac_add_options --prefix=/usr
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --enable-system-cairo
ac_add_options --enable-official-branding
ac_add_options --enable-canvas
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-application=browser
ac_add_options --disable-accessibility
ac_add_options --enable-svg
ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --enable-strip
ac_add_options --enable-cpp-rtti
ac_add_options --enable-ldap


All times are GMT -5. The time now is 01:56 PM.