Bug: /usr/include/X11/extensions/Xrender.h:302:13: error: reference to ‘Glyph’ is ambiguous
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2020-10-19 12:20:10+00:00
Resolved: 2020-10-21 13:21:29+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

While building latest sources on Solaris:

```
gmake[1]: Entering directory '/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/widget/gtk'
widget/gtk/Unified_cpp_widget_gtk2.o
/builds/psumbera/FIREFOX/epoll/g++ -std=gnu++17 -o Unified_cpp_widget_gtk2.o -c  -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/stl_wrappers -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/system_wrappers -include /builds/psumbera/FIREFOX/config/gcc_hidden.h -fstack-protector-strong -DDEBUG=1 -DOS_POSIX=1 -DOS_SOLARIS=1 -DCAIRO_GFX '-DMOZ_APP_NAME="firefox"' -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/builds/psumbera/FIREFOX/widget/gtk -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/widget/gtk -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/ipc/ipdl/_ipdlheaders -I/builds/psumbera/FIREFOX/ipc/chromium/src -I/builds/psumbera/FIREFOX/ipc/glue -I/builds/psumbera/FIREFOX/layout/base -I/builds/psumbera/FIREFOX/layout/forms -I/builds/psumbera/FIREFOX/layout/generic -I/builds/psumbera/FIREFOX/layout/xul -I/builds/psumbera/FIREFOX/other-licenses/atk-1.0 -I/builds/psumbera/FIREFOX/third_party/cups/include -I/builds/psumbera/FIREFOX/widget -I/builds/psumbera/FIREFOX/widget/headless -I/builds/psumbera/FIREFOX/widget/x11 -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/nspr -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/mozilla-config.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-overflow=2 -Werror=implicit-function-declaration -Wno-psabi -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -I/builds/psumbera/FIREFOX/widget/gtk/compat-gtk3 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DFFI_NO_RAW_API -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/amd64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/lib/amd64/libffi-3.2.1/include -I/usr/include/glib-2.0 -I/usr/lib/amd64/glib-2.0/include -I/usr/include/pcre -DFFI_NO_RAW_API -I/usr/include/dbus-1.0 -I/usr/lib/amd64/dbus-1.0/include -I/usr/lib/amd64/libffi-3.2.1/include -I/usr/include/glib-2.0 -I/usr/lib/amd64/glib-2.0/include -I/usr/include/pcre -Wno-error=shadow  -MD -MP -MF .deps/Unified_cpp_widget_gtk2.o.pp   Unified_cpp_widget_gtk2.cpp
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
In file included from Unified_cpp_widget_gtk2.cpp:47:
/builds/psumbera/FIREFOX/widget/gtk/nsSound.cpp:85:13: warning: G_PRIVATE_INIT
   85 |   static GStaticPrivate ctx_static_private = G_STATIC_PRIVATE_INIT;
      |             ^~~~~~~~~~~~~~~~
In file included from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/system_wrappers/X11/extensions/Xrender.h:3,
                 from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/gfx/BorrowedContext.h:13,
                 from /builds/psumbera/FIREFOX/widget/gtk/nsNativeThemeGTK.cpp:37,
                 from Unified_cpp_widget_gtk2.cpp:11:
/usr/include/X11/extensions/Xrender.h:302:13: error: reference to ‘Glyph’ is ambiguous
  302 |     _Xconst Glyph  *gids,
      |             ^~~~~
In file included from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/nsRect.h:15,
                 from /builds/psumbera/FIREFOX/layout/base/Units.h:19,
                 from /builds/psumbera/FIREFOX/widget/nsNativeBasicTheme.h:10,
                 from /builds/psumbera/FIREFOX/widget/gtk/nsNativeBasicThemeGTK.h:10,
                 from /builds/psumbera/FIREFOX/widget/gtk/nsNativeBasicThemeGTK.cpp:6,
                 from Unified_cpp_widget_gtk2.cpp:2:
/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/gfx/2D.h:793:8: note: candidates are: ‘struct mozilla::gfx::Glyph’
  793 | struct Glyph {
      |        ^~~~~
In file included from /usr/include/X11/extensions/Xrender.h:33,
                 from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/system_wrappers/X11/extensions/Xrender.h:3,
                 from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/gfx/BorrowedContext.h:13,
                 from /builds/psumbera/FIREFOX/widget/gtk/nsNativeThemeGTK.cpp:37,
                 from Unified_cpp_widget_gtk2.cpp:11:
/usr/include/X11/extensions/render.h:29:14: note:                 ‘typedef XID Glyph’
   29 | typedef XID  Glyph;
      |              ^~~~~
```