Closed
Bug 901880
Opened 13 years ago
Closed 13 years ago
Compile failure in nsColorPicker.cpp: error: ‘gtk_color_selection_dialog_get_color_selection’ was not declared in this scope
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: mcsmurf, Assigned: mcsmurf)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
|
948 bytes,
patch
|
karlt
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Since Bug 875753 was checked in, the SeaMonkey build fails on the official SeaMonkey Linux boxen with this error:
/usr/bin/ccache /tools/gcc-4.5/bin/g++ -o nsColorPicker.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /builds/slave/c-cen-t-lnx-ntly/build/mozilla/config/gcc_hidden.h -DNATIVE_THEME_SUPPORT -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -DMOZ_SUITE=1 -DNO_NSPR_10_SUPPORT -DOS_POSIX=1 -DOS_LINUX=1 -DCAIRO_GFX -DMOZ_APP_NAME='"seamonkey"' -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/ipc/chromium/src -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/ipc/glue -I../../ipc/ipdl/_ipdlheaders -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2 -I. -I../../dist/include -I/builds/slave/c-cen-t-lnx-ntly/build/objdir/mozilla/dist/include/nspr -I/builds/slave/c-cen-t-lnx-ntly/build/objdir/mozilla/dist/include/nss -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2/../xpwidgets -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2/../shared -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/layout/generic -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/layout/xul/base/src -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/other-licenses/atk-1.0 -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2/../shared/x11 -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -gdwarf-2 -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -fno-tree-vrp -pthread -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -Os -freorder-blocks -fomit-frame-pointer -I/builds/slave/c-cen-t-lnx-ntly/build/objdir/mozilla/dist/include/cairo -I/builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2/compat -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-unix-print-2.0 -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/nsColorPicker.o.pp /builds/slave/c-cen-t-lnx-ntly/build/mozilla/widget/gtk2/nsColorPicker.cpp
nsFilePicker.cpp
../../../../mozilla/widget/gtk2/nsColorPicker.cpp: In member function ‘virtual nsresult nsColorPicker::Open(nsIColorPickerShownCallback*)’:
../../../../mozilla/widget/gtk2/nsColorPicker.cpp:82:266: error: ‘gtk_color_selection_dialog_get_color_selection’ was not declared in this scope
../../../../mozilla/widget/gtk2/nsColorPicker.cpp: In member function ‘void nsColorPicker::ReadValueFromColorChooser(GtkWidget*)’:
../../../../mozilla/widget/gtk2/nsColorPicker.cpp:153:264: error: ‘gtk_color_selection_dialog_get_color_selection’ was not declared in this scope
From what I see a workaround has been implemented for old GTK versions like used on this Linux box (thanks for the workaround :). Somehow the definition from gtkcolorselectiondialog.h does not seem to get used though. I've noticed that the gtkcolorselectiondialog.h file does not get included anywhere. Should it get included? I'm not really sure as other compat files like for example gtkplug.h also do not get explicitly included.
Comment 1•13 years ago
|
||
I'm not sure either how that works exactly as, indeed, other compat files aren't included elsewhere.
Karl, do you have more information about how this works? And do you think I missed something in my patch?
Flags: needinfo?(karlt)
Comment 2•13 years ago
|
||
The filename of the header needs to match that used by gtk.h.
In this case it needs to be gtkcolorseldialog.h not gtkcolorselectiondialog.h.
Flags: needinfo?(karlt)
Comment 3•13 years ago
|
||
OK, thanks for the clarification.
I can take care of the fix if you want?
Comment 5•13 years ago
|
||
Comment on attachment 786524 [details] [diff] [review]
Proposed patch
Yes.
Attachment #786524 -
Flags: review?(karlt) → review+
Updated•13 years ago
|
Updated•13 years ago
|
Status: ASSIGNED → NEW
| Assignee | ||
Comment 6•13 years ago
|
||
Pushed to mozilla-central directly: https://hg.mozilla.org/mozilla-central/rev/2fcbc0a619f2
Patch is also needed on aurora (Bug 875753 landed before uplift).
Comment 7•13 years ago
|
||
(In reply to Frank Wein [:mcsmurf] from comment #6)
> Pushed to mozilla-central directly:
> https://hg.mozilla.org/mozilla-central/rev/2fcbc0a619f2
> Patch is also needed on aurora (Bug 875753 landed before uplift).
Hey Frank, had to backout this change in https://hg.mozilla.org/mozilla-central/rev/47bd850cb89b since this caused on mozilla-central a bustage on the linux builders like https://tbpl.mozilla.org/php/getParsedLog.php?id=26251851&tree=Mozilla-Central
| Assignee | ||
Comment 8•13 years ago
|
||
I think this one should fix the problem, wrong include was used. Currently I'm testing it on try server.
| Assignee | ||
Comment 9•13 years ago
|
||
Attachment #786800 -
Attachment is obsolete: true
Updated•13 years ago
|
Attachment #786802 -
Flags: review+
Updated•13 years ago
|
Attachment #786524 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•13 years ago
|
||
Assignee: arnaud.bienner → bugzilla
Whiteboard: [leave open]
Comment 11•13 years ago
|
||
| Assignee | ||
Comment 12•13 years ago
|
||
Comment on attachment 786802 [details] [diff] [review]
Better patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 875753
User impact if declined: Users with older GTK versions cannot compile Gecko anymore
Testing completed (on m-c, etc.): Works fine on mozilla-central
Risk to taking this patch (and alternatives if risky): almost zero risk
String or IDL/UUID changes made by this patch: -
Attachment #786802 -
Flags: approval-mozilla-aurora?
Updated•13 years ago
|
Attachment #786802 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 13•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
status-firefox25:
--- → fixed
Resolution: --- → FIXED
| Assignee | ||
Updated•13 years ago
|
Whiteboard: [leave open]
Updated•13 years ago
|
status-firefox26:
--- → fixed
Comment 14•13 years ago
|
||
Assuming no QA needed here. Please remove [qa-] from the whiteboard and add the verifyme keyword if this needs QA.
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•