Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499784 - net-libs/webkit-gtk-2.2.2 - Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:117:5: error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG' does not name a type
Summary: net-libs/webkit-gtk-2.2.2 - Source/WebCore/platform/graphics/opengl/Extension...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.10
  Show dependency tree
 
Reported: 2014-01-30 14:35 UTC by Dennis Schridde
Modified: 2014-02-04 08:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,35.33 KB, application/x-xz)
2014-01-30 14:36 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2014-01-30 14:35:06 UTC
In file included from Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:36:0:
Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:117:5: error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG' does not name a type
     PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG m_glFramebufferTexture2DMultisampleIMG;
     ^
Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:118:5: error: 'PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG' does not name a type
     PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG m_glRenderbufferStorageMultisampleIMG;
     ^
Comment 1 Dennis Schridde 2014-01-30 14:36:07 UTC
Created attachment 369118 [details]
build.log.xz
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-01-31 10:05:43 UTC
Please paste the output of emerge --info and emerge -pv webkit-gtk
Comment 3 Attila Tóth 2014-02-01 00:23:07 UTC
Same here.
Comment 4 Attila Tóth 2014-02-01 00:32:36 UTC
Here is the solution for my case (building for gtk and not for qt):

https://gist.github.com/ceyusa/8002563

--- a/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h
+++ b/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h
@@ -37,7 +37,7 @@
#include <GLES2/gl2ext.h>
#endif
-#if OS(QNX) || PLATFORM(QT)
+#if OS(QNX) || PLATFORM(QT) || PLATFORM(GTK)
// See https://bugs.webkit.org/show_bug.cgi?id=91030.
// Newer Khorons headers do define these with a PROC suffix, but older headers don't.
#define PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC

Try that.

Regards:
Dw.
Comment 5 Attila Tóth 2014-02-01 01:01:29 UTC
(In reply to Attila Tóth from comment #4)
> Here is the solution for my case (building for gtk and not for qt):
> 
> https://gist.github.com/ceyusa/8002563
> 
> +#if OS(QNX) || PLATFORM(QT) || PLATFORM(GTK)

However I run into a conflicting declaration:

In file included from /usr/include/GL/gl.h:2085:0,
                 from /usr/include/GL/glx.h:32,
                 from /usr/include/cairo/cairo-gl.h:96,
                 from Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:39:
/usr/include/GL/glext.h:2169:149: error: conflicting declaration ‘typedef void (* GLDEBUGPROC)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, const void*)’
 typedef void (APIENTRY  *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
                                                                                                                                                     ^
In file included from Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:33:0:
/usr/include/GLES2/gl2ext.h:186:28: error: ‘GLDEBUGPROC’ has a previous declaration as ‘typedef void (* GLDEBUGPROC)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*)’
 typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
                            ^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
Source/WebCore/platform/audio/AudioChannel.cpp:1:0: note: this is the location of the previous definition

glext.h gets included by cairo-gl.h, which is not compatible in its current form with gl2ext.h. So sad. Now I try to recompile with -gles2 +opengl. See what happens.
Comment 6 Dennis Schridde 2014-02-01 12:55:30 UTC
(In reply to Gilles Dartiguelongue from comment #2)
> Please paste the output of emerge --info and emerge -pv webkit-gtk

[ebuild     U  ] net-libs/webkit-gtk-2.2.2 [2.0.4] USE="egl%* gles2%* libsecret* -opengl%" 

# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.2, glibc-2.18-r1, 3.13.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.13.0-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6107540 total,    272136 free
KiB Swap:    7813116 total,   7813024 free
Timestamp of tree: Sat, 01 Feb 2014 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo systemd sage-on-gentoo mrueg qt enlightenment x11 local kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check=n --keep-going --nospinner"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/sage-on-gentoo /var/lib/layman/mrueg /var/lib/layman/qt /var/lib/layman/enlightenment /var/lib/layman/x11 /var/cache/portage/local /var/cache/portage/overlays/kde"
[...]
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cjk cli cracklib crypt cups cxx dbus declarative dri dts dvb dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gles gles2 gmp gpm gstreamer gtk ibus iconv ipv6 jpeg jpeg2k kde kipi latex lcms ldap libnotify libsecret lz4 lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses networkmanager nls nptl ogg openal openexr opengl openmp opus pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline samba sdl semantic-desktop session speex spell sse sse2 sse3 ssl startup-notification subversion svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vpx wayland x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xz zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="stage words flow sheets" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs systemd" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Attila Tóth 2014-02-01 14:15:43 UTC
(In reply to Attila Tóth from comment #5)
> (In reply to Attila Tóth from comment #4)
> > Here is the solution for my case (building for gtk and not for qt):
> > 
> > https://gist.github.com/ceyusa/8002563
> > 
> > +#if OS(QNX) || PLATFORM(QT) || PLATFORM(GTK)
> 
> However I run into a conflicting declaration:
> 
> In file included from /usr/include/GL/gl.h:2085:0,

It compiles with +opengl -gles2.

Patch in comment 4 is definitely needed.
However some further tweaking is necessary because of the conflicting inclusions.

Note, that 2.2.3 is out, so that may solve this problem.
https://bugs.gentoo.org/show_bug.cgi?id=495272
Comment 8 Pacho Ramos gentoo-dev 2014-02-02 14:10:20 UTC
Try with 2.2.4 that was just bumped, if still valid, would be better to notify upstream -> bugs.webkit.org
Comment 9 Dennis Schridde 2014-02-04 08:50:56 UTC
(In reply to Pacho Ramos from comment #8)
> Try with 2.2.4 that was just bumped, if still valid, would be better to
> notify upstream -> bugs.webkit.org

Fixed in net-libs/webkit-gtk-2.2.4