MozillaZine

Need help building GTK3 FF

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
geobr
 
Posts: 2
Joined: January 31st, 2015, 12:16 am

Post Posted January 31st, 2015, 12:24 am

Hi, I am attempting to build Firefox 24.8.1 (I know it's an old version, but I do have a reason) using GTK3, but I have hit a snag. I've searched all over Google, but to no avail so far. Below is the error I receive, could anyone give me a few pointers? Build environment is a x64 CentOS 7 VM. I am able to build a GTK2 version in this VM without issues. Any help would be appreciated, thanks in advance!

Code: Select all
/home/geobr/ffsrc/widget/gtk2/nsDeviceContextSpecG.cpp: In member function ‘virtual nsresult nsDeviceContextSpecGTK::EndDocument()’:
/home/geobr/ffsrc/widget/gtk2/nsDeviceContextSpecG.cpp:578:79: error: invalid conversion from ‘void (*)(GtkPrintJob*, gpointer, GError*) {aka void (*)(_GtkPrintJob*, void*, _GError*)}’ to ‘GtkPrintJobCompleteFunc {aka void (*)(_GtkPrintJob*, void*, const _GError*)}’ [-fpermissive]
In file included from ../../dist/system_wrappers/gtk/gtkprintjob.h:3:0,
                 from /usr/include/gtk-3.0/unix-print/gtk/gtkunixprint.h:24,
                 from /home/geobr/ffsrc/widget/gtk2/nsDeviceContextSpecG.h:23,
                 from /home/geobr/ffsrc/widget/gtk2/nsDeviceContextSpecG.cpp:18:
/usr/include/gtk-3.0/unix-print/gtk/gtkprintjob.h:96:26: error:   initializing argument 2 of ‘void gtk_print_job_send(GtkPrintJob*, GtkPrintJobCompleteFunc, gpointer, GDestroyNotify)’ [-fpermissive]
make[6]: *** [nsDeviceContextSpecG.o] Error 1

xunxun1982
 
Posts: 311
Joined: June 20th, 2011, 10:37 am

Post Posted February 2nd, 2015, 10:03 pm

I think you use a gcc compiler newer than 4.6?

So you will come across some compatible issues, you can decrease your gcc edition or add the compiler switch -fpermissive to your compiler flags.

geobr
 
Posts: 2
Joined: January 31st, 2015, 12:16 am

Post Posted February 4th, 2015, 2:28 am

Yes, I'm using GCC 4.7.2 (same as I used with my gtk2 build).
xunxun1982 wrote:add the compiler switch -fpermissive to your compiler flags.

Would adding this to my .mozconfig work?
Code: Select all
export CFLAGS="-fpermissive"
export CXXFLAGS="-fpermissive"

Sorry for the noob question, but I appreciate the help!

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 1 guest