LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2008, 03:40 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
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.
 
Old 05-10-2008, 07:24 AM   #2
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
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.
 
Old 05-10-2008, 08:55 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox, pango problem after apt-get upgrade rip Debian 6 10-14-2006 11:15 PM
firefox does not stream video after firefox automatic upgrade? kazuya1977 VectorLinux 1 02-12-2006 01:48 PM
Firefox 1.07 Upgrade Problem BDHamp SUSE / openSUSE 6 10-07-2005 02:51 PM
Build firefox on HP-UX Problem montylee Other *NIX 3 03-17-2005 07:10 AM
Mozilla Firefox Build on AIX Problem montylee AIX 1 02-04-2005 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration