Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500966 - >=net-libs/webkit-gtk-2.2.4 USE=-webgl - ./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'
Summary: >=net-libs/webkit-gtk-2.2.4 USE=-webgl - ./.libs/libwebkitgtk-1.0.so: undefin...
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: https://bugs.webkit.org/show_bug.cgi?...
Whiteboard:
Keywords:
: 501310 505176 512844 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2014-02-11 08:52 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2014-10-25 16:15 UTC (History)
13 users (show)

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


Attachments
net-libs:webkit-gtk-2.2.4-r200:20140211-003023.log.gz (net-libs:webkit-gtk-2.2.4-r200:20140211-003023.log.gz,976.43 KB, application/gzip)
2014-02-11 08:52 UTC, Diego Elio Pettenò (RETIRED)
Details
webkit-gtk-2.4.4-20140717-235911.log.xz (webkit-gtk-2.4.4-20140717-235911.log.xz,297.71 KB, application/x-xz)
2014-07-18 09:14 UTC, Vladimir
Details
Fix compilation with --disable-webgl (webkit-gtk-2.4.6-disable-webgl.patch,581 bytes, patch)
2014-10-13 13:45 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2014-02-11 08:52:28 UTC
Created attachment 370134 [details]
net-libs:webkit-gtk-2.2.4-r200:20140211-003023.log.gz

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.0-rc7 x86_64)
=================================================================
System uname: Linux-3.13.0-rc7-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.2
KiB Mem:     8166680 total,   3617016 free
KiB Swap:    3145724 total,   2845216 free
Timestamp of tree: Mon, 10 Feb 2014 20: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.2.5-r3, 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.13.4, 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 flameeyes-overlay emacs
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula AdobeFlash-11.x google-talkplugin skype-4.0.0.7-copyright Oracle-BCLA-JavaSE FraunhoferFDK Google-TOS TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/Visual-Paradigm/Visual_Paradigm_for_UML/resources/product_edition.properties /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=corei7 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,-z,now"
MAKEOPTS="-j12"
PKGDIR="/usr/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="/tmp"
PORTDIR="/var/cache/portage/tree"
PORTDIR_OVERLAY="/home/flame/devel/repos/flameeyes-overlay /var/lib/layman/emacs"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi amd64 berkdb bzip2 caps cli consolekit crypt cups dri fortran gdbm gmp gnome-keyring gnome-online-accounts gtk3 ibus iconv idn introspection ipv6 libnotify mmx mmxext modules multicall multilib ncurses networkmanager nls nptl openexr openmp pam pcre policykit pulseaudio qt3support readline semantic-desktop session sse sse2 sse3 sse4 sse4_1 ssl ssse3 unicode xattr xcb xinerama zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="flow plan braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="nmea" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="nouveau" 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


Error output #2 (USE="{some}")
libtool: link: x86_64-pc-linux-gnu-g++ -fno-rtti -fno-strict-aliasing -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=corei7 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -pthread -std=c++11 -Wno-c++11-compat -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,-z -Wl,now -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--no-demangle -o Programs/DumpRenderTree Source/WebCore/platform/gtk/Programs_DumpRenderTree-GtkVersioning.o Tools/DumpRenderTree/Programs_DumpRenderTree-DumpRenderTreeCommon.o Tools/DumpRenderTree/Programs_DumpRenderTree-AccessibilityController.o Tools/DumpRenderTree/Programs_DumpRenderTree-AccessibilityTextMarker.o Tools/DumpRenderTree/Programs_DumpRenderTree-AccessibilityUIElement.o Tools/DumpRenderTree/Programs_DumpRenderTree-CyclicRedundancyCheck.o Tools/DumpRenderTree/Programs_DumpRenderTree-GCController.o Tools/DumpRenderTree/Programs_DumpRenderTree-TestRunner.o Tools/DumpRenderTree/Programs_DumpRenderTree-PixelDumpSupport.o Tools/DumpRenderTree/Programs_DumpRenderTree-WorkQueue.o Tools/DumpRenderTree/atk/Programs_DumpRenderTree-AccessibilityCallbacksAtk.o Tools/DumpRenderTree/atk/Programs_DumpRenderTree-AccessibilityControllerAtk.o Tools/DumpRenderTree/atk/Programs_DumpRenderTree-AccessibilityUIElementAtk.o Tools/DumpRenderTree/cairo/Programs_DumpRenderTree-PixelDumpSupportCairo.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-AccessibilityControllerGtk.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-AccessibilityUIElementGtk.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-DumpRenderTree.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-EditingCallbacks.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-EventSender.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-GCControllerGtk.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-TestRunnerGtk.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-PixelDumpSupportGtk.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-SelfScrollingWebKitWebView.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-TextInputController.o Tools/DumpRenderTree/gtk/Programs_DumpRenderTree-WorkQueueItemGtk.o -Wl,--export-dynamic -pthread -pthread  -Wl,--as-needed ./.libs/libjavascriptcoregtk-1.0.so ./.libs/libwebkitgtk-1.0.so -L/usr/lib64 /var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/.libs/libjavascriptcoregtk-1.0.so -lpthread -lgeoclue -ldbus-glib-1 -ldbus-1 -lgstapp-1.0 -lgstaudio-1.0 -lgstfft-1.0 -lgstpbutils-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ljpeg -lxslt -lxml2 -lGL -lEGL -ldl -lpng16 -lsqlite3 -licui18n -licuuc -licudata -lwebp -lXcomposite -lXdamage -lXfixes -lz ./.libs/libPlatform.a ./.libs/libPlatformGtk.a ./.libs/libWebCorePlatform.a ./.libs/libWebCoreModules.a ./.libs/libWebCoreInternals.a -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lgmodule-2.0 -lgthread-2.0 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lfontconfig -lfreetype -lharfbuzz-icu -lharfbuzz -lXrender -lXt -lX11 -pthread -Wl,-rpath -Wl,/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/.libs
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore19openGLFunctionTableEv'
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore21initializeOpenGLShimsEv'
collect2: error: ld returned 1 exit status
GNUmakefile:38493: recipe for target 'Programs/GtkLauncher' failed
make[1]: *** [Programs/GtkLauncher] Error 1
make[1]: *** Waiting for unfinished jobs....
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore19openGLFunctionTableEv'
./.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore21initializeOpenGLShimsEv'
collect2: error: ld returned 1 exit status
GNUmakefile:38477: recipe for target 'Programs/DumpRenderTree' failed
make[1]: *** [Programs/DumpRenderTree] Error 1
Source/WebKit/gtk/webkit/webkitversion.h:37: Warning: WebKit: symbol='WEBKITGTK_API_VERSION': Unknown namespace for symbol 'WEBKITGTK_API_VERSION'
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/tmp-introspectzbeo3n/WebKit-1.0.c:1:0: note: this is the location of the previous definition
 /* This file is generated, do not edit */
 ^
/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'
/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore19openGLFunctionTableEv'
/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/.libs/libwebkitgtk-1.0.so: undefined reference to `_ZN7WebCore21initializeOpenGLShimsEv'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', './libtool', '--mode=link', '--tag=CC', '--silent', 'x86_64-pc-linux-gnu-gcc', '-o', '/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/tmp-introspectzbeo3n/WebKit-1.0', '-export-dynamic', '-march=corei7', '-O2', '-pipe', '-fomit-frame-pointer', '-pthread', '-std=c99', '-D_FORTIFY_SOURCE=2', '-Wno-deprecated-declarations', '-Wl,--as-needed', '-Wl,-O1', '-Wl,--hash-style=gnu', '-Wl,-z,now', '-Wl,--no-keep-memory', '-Wl,--reduce-memory-overheads', '-Wl,--no-demangle', '/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4/tmp-introspectzbeo3n/WebKit-1.0.o', '-L.', '-lwebkitgtk-1.0', '-ljavascriptcoregtk-1.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lfontconfig', '-lfreetype', '-lsoup-2.4', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero exit status 1
GNUmakefile:78921: recipe for target 'WebKit-1.0.gir' failed
make[1]: *** [WebKit-1.0.gir] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/webkit-gtk-2.2.4-r200/work/webkitgtk-2.2.4'
GNUmakefile:24225: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-libs/webkit-gtk-2.2.4-r200::gentoo failed (compile phase):
 *   emake failed
Comment 1 Pacho Ramos gentoo-dev 2014-02-11 21:32:44 UTC
Is this with forced as-needed? The problem is that it looks to build ok for me with "default as-needed" on Gentoo... then, I would need a way for asking upstream to reproduce the problem and likely fix it
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2014-02-12 21:50:47 UTC
No it is not forced --as-needed (you would see that in the gcc listing).
Comment 3 Pacho Ramos gentoo-dev 2014-02-15 09:29:17 UTC
*** Bug 501310 has been marked as a duplicate of this bug. ***
Comment 4 Ulf Dambacher 2014-02-25 15:45:30 UTC
by the way: 
webkit-gtk-2.2.5 suffers from the same problem
Comment 5 Ulf Dambacher 2014-02-28 12:47:51 UTC
I found the missing reference about GenericTypedArrayView.create in an object file from the web-audio part.

after manual configuring with --disable-web-audio i was able to compile, install, qmerge webkit-gtk-2.2.5 and webkit-gtk-2.2.5-r200
Comment 6 Johannes Hirte 2014-03-02 14:33:30 UTC
Are you sure this is the same as https://bugs.gentoo.org/show_bug.cgi?id=501310?

This one is about:

./.libs/libwebkitgtk-1.0.so: error: undefined reference to '_ZN7WebCore19openGLFunctionTableEv'
./.libs/libwebkitgtk-1.0.so: error: undefined reference to '_ZN7WebCore21initializeOpenGLShimsEv'
collect2: error: ld returned 1 exit statu

https://bugs.gentoo.org/show_bug.cgi?id=501310 is

var/tmp/portage/net-libs/webkit-gtk-2.2.4/work/webkitgtk-2.2.4/.libs/libwebkitgtk-3.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'

So the workaround for https://bugs.gentoo.org/show_bug.cgi?id=501310 with --disable-web-audio doesn't help here.
Comment 7 Ulf Dambacher 2014-03-02 18:42:25 UTC
i filed bug 501310, but somebody resolved it duplicate to this bug, so i'm reporting here!
Comment 9 Lars 2014-03-17 16:08:04 UTC
(In reply to Johannes Hirte from comment #6)
> Are you sure this is the same as
> https://bugs.gentoo.org/show_bug.cgi?id=501310?
> 
> This one is about:
> 
> ./.libs/libwebkitgtk-1.0.so: error: undefined reference to
> '_ZN7WebCore19openGLFunctionTableEv'
> ./.libs/libwebkitgtk-1.0.so: error: undefined reference to
> '_ZN7WebCore21initializeOpenGLShimsEv'
> collect2: error: ld returned 1 exit status

I was able to resolve this by enabling the webgl use flag.
Comment 10 Johannes Hirte 2014-03-17 18:32:47 UTC
(In reply to Lars from comment #9)
> (In reply to Johannes Hirte from comment #6)
> > Are you sure this is the same as
> > https://bugs.gentoo.org/show_bug.cgi?id=501310?
> > 
> > This one is about:
> > 
> > ./.libs/libwebkitgtk-1.0.so: error: undefined reference to
> > '_ZN7WebCore19openGLFunctionTableEv'
> > ./.libs/libwebkitgtk-1.0.so: error: undefined reference to
> > '_ZN7WebCore21initializeOpenGLShimsEv'
> > collect2: error: ld returned 1 exit status
> 
> I was able to resolve this by enabling the webgl use flag.

This needs mesa with egl-useflag enabled. That didn't work with my ironlake chipset so it's no opinion for me.
Comment 11 Pacho Ramos gentoo-dev 2014-03-20 21:31:18 UTC
*** Bug 505176 has been marked as a duplicate of this bug. ***
Comment 12 Alex Efros 2014-03-21 13:27:47 UTC
I've got same issue:

./.libs/libwebkitgtk-3.0.so: undefined reference to `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'
./.libs/libwebkitgtk-3.0.so: undefined reference to `_ZN7WebCore19openGLFunctionTableEv'
./.libs/libwebkitgtk-3.0.so: undefined reference to `_ZN7WebCore21initializeOpenGLShimsEv'
collect2: error: ld returned 1 exit status

Is it possible to solve it without enabling USE flag [webgl]?
I use hardened with nvidia-drivers, so all apps which use opengl are linked to nvidia's lib, which doesn't work with hardened unless I weaken hardened protection using `paxctl-ng -m`. The webkit-gtk-2.2.5 with [webgl] require cairo with [opengl], which in turn result in needs to weaken hardened for apps like pidgin and perl (because some perl libs like RRDs.pm use cairo), which isn't acceptable tradeoff.
Comment 13 Vladimir 2014-04-04 17:45:39 UTC
This problem is there for net-libs/webkit-gtk-2.2.6 also.
Is it really necessary to enable webgl?
Comment 14 Vladimir 2014-06-03 15:21:50 UTC
I experience this problem with the new net-libs/webkit-gtk-2.4.3 version as well.
Comment 15 Pacho Ramos gentoo-dev 2014-06-12 09:19:09 UTC
*** Bug 512844 has been marked as a duplicate of this bug. ***
Comment 16 Vladimir 2014-06-16 15:56:35 UTC
Is it possible to apply the patch from the upstream bugreport?
https://bugs.webkit.org/show_bug.cgi?id=131267
Comment 17 Sergiusz M 2014-06-30 14:52:46 UTC
(In reply to Vladimir from comment #16)
> Is it possible to apply the patch from the upstream bugreport?
> https://bugs.webkit.org/show_bug.cgi?id=131267

I have the same bug, can I please someone to reply Vladimir comment?
Comment 18 Sergiusz M 2014-06-30 14:56:36 UTC
(In reply to Sergiusz from comment #17)
> (In reply to Vladimir from comment #16)
> > Is it possible to apply the patch from the upstream bugreport?
> > https://bugs.webkit.org/show_bug.cgi?id=131267
> 
> I have the same bug, can I please someone to reply Vladimir comment?

/var/tmp/portage/net-libs/webkit-gtk-2.4.3/work/webkitgtk-2.4.3/.libs/libwebkitgtk-3.0.so: undefined reference to `_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'
collect2: error: ld returned 1 exit status
Comment 19 Sergiusz M 2014-06-30 15:28:28 UTC
Sorry, false alarm. I have forgotten to change gcc version from 4.7 to 4.8 :(
Comment 20 parafin 2014-07-12 09:56:00 UTC
I can confirm that net-libs/webkit-gtk-2.4.3-r200 USE="X egl jit opengl spell" fails to emerge with error about missing symbols (something about opengl) and builds fine with USE="X egl jit opengl spell webgl".
Comment 21 Pacho Ramos gentoo-dev 2014-07-16 09:04:33 UTC
2.4.4 changelog reports this as solved
Comment 22 Vladimir 2014-07-18 09:14:58 UTC
Created attachment 380948 [details]
webkit-gtk-2.4.4-20140717-235911.log.xz

(In reply to Pacho Ramos from comment #21)
> 2.4.4 changelog reports this as solved

It still refuses to build on my system. Attached is the complete build log containing the error message similar to the one we had before (webkit-gtk-2.4.4-20140717-235911.log is about 62MB when unpacked).
Comment 23 Pacho Ramos gentoo-dev 2014-07-18 09:23:17 UTC
Umm, the fix from https://bugs.webkit.org/show_bug.cgi?id=131267 was included for sure. Will try to get the upstream bug reopened
Comment 24 Pacho Ramos gentoo-dev 2014-07-18 09:25:59 UTC
Please ensure you don't have a mix of gcc slots like in bug 513386
Comment 25 Vladimir 2014-07-18 10:07:38 UTC
(In reply to Pacho Ramos from comment #24)
> Please ensure you don't have a mix of gcc slots like in bug 513386
Currently I have only one GCC version installed. And, according to genlop, I have been using the 4.8 branch for several months already:

genlop gcc
 * sys-devel/gcc

     Wed Sep 25 16:27:46 2013 >>> sys-devel/gcc-4.7.3-r1
     Tue Oct 29 05:00:52 2013 >>> sys-devel/gcc-4.8.1-r1
     Thu Dec 12 00:28:07 2013 >>> sys-devel/gcc-4.8.2
     Mon Dec 30 19:41:03 2013 >>> sys-devel/gcc-4.8.2
     Thu Feb 20 18:12:41 2014 >>> sys-devel/gcc-4.8.2
     Sat Jun 28 02:40:33 2014 >>> sys-devel/gcc-4.8.3
Comment 26 Pacho Ramos gentoo-dev 2014-07-18 10:13:18 UTC
It's not a good idea to compile some thins with newer gcc and, later, revert to old :|
Comment 27 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-09-25 01:36:08 UTC
I can actually reproduce this with net-libs/webkit-gtk-2.4.4-r200 and gcc-4.8

I've tried both with webkit-gtk installed before and not installed.
Comment 28 Anthony Basile gentoo-dev 2014-10-12 13:49:10 UTC
(In reply to Paweł Hajdan, Jr. from comment #27)
> I can actually reproduce this with net-libs/webkit-gtk-2.4.4-r200 and gcc-4.8
> 
> I've tried both with webkit-gtk installed before and not installed.

This is probably a c++11 abi issue.  I haven't played with this, so my conjecture could be wrong, but here's one way to test.  If you are hitting hitting this issue, pass -std=c++98 to revert to the older abi and see if it fixes the problem.  We're going to have to face this problem in gentoo since we don't want everyone to recompile their system to upgrade to c++11 for those few libraries that need it.  We'll probably need a USE flag and reverse depend on libraries that are >=c++11 vs <c++11 sensitive.
Comment 29 Alexander Tsoy 2014-10-13 13:45:45 UTC
Created attachment 386608 [details, diff]
Fix compilation with --disable-webgl

(In reply to Diego Elio Pettenò from comment #0)

> ./.libs/libwebkitgtk-1.0.so: undefined reference to
> `_ZN3JSC21GenericTypedArrayViewINS_14Float32AdaptorEE6createEj'

The above error is already fixed upstream.

> ./.libs/libwebkitgtk-1.0.so: undefined reference to
> `_ZN7WebCore19openGLFunctionTableEv'
> ./.libs/libwebkitgtk-1.0.so: undefined reference to
> `_ZN7WebCore21initializeOpenGLShimsEv'

Note that I'm not familiar with webkit-gtk internals, but for me the above errors looks like a result of incorrect preprocessor logic. The attached patch fixes compilation of webkit-gtk-2.4.6:3 with --disable-webgl for me. Would be nice if somebody review the patch and recheck that it actually fixes the problem for him too. Then I'll attach it to an upstream bug report.

Also note that for webkit-gtk-2.4.6 you also need to apply the patch from bug 525072.
Comment 30 Alexander Tsoy 2014-10-13 14:26:30 UTC
And a little explanation.

"OpenGLShims.cpp" contains definition for functions initializeOpenGLShims() and openGLFunctionTable(), but they gets stripped out when webgl is disabled (note the "#if USE(3D_GRAPHICS)" macro).

"OpenGLShims.h" contains prototypes for these functions and it is included in several sources even if webgl is disabled. E.g.:

Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
.. etc
Comment 31 Alexander Tsoy 2014-10-16 14:22:28 UTC
This bug should not block gcc-4.8 tracker. It is reporoducible on a stable system with gcc-4.7.

Also it is unlikely to be --as-needed related (see my patch).
Comment 32 Anthony Basile gentoo-dev 2014-10-18 16:44:32 UTC
(In reply to Alexander Tsoy from comment #31)
> This bug should not block gcc-4.8 tracker. It is reporoducible on a stable
> system with gcc-4.7.
> 
> Also it is unlikely to be --as-needed related (see my patch).

Thanks!
Comment 33 Pacho Ramos gentoo-dev 2014-10-25 16:15:23 UTC
+*webkit-gtk-2.4.7 (25 Oct 2014)
+*webkit-gtk-2.4.7-r200 (25 Oct 2014)
+
+  25 Oct 2014; Pacho Ramos <pacho@gentoo.org>
+  +files/webkit-gtk-2.4.7-disable-accelerated-compositing.patch,
+  +files/webkit-gtk-2.4.7-disable-webgl.patch, +webkit-gtk-2.4.7-r200.ebuild,
+  +webkit-gtk-2.4.7.ebuild:
+  Version bump, fix building when disabling accelerated compositing and webgl
+  (#525072 and #500966 by Alexander Tsoy)
+