Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536898 - net-libs/webkit-gtk-2.4.8: Source/WebCore/plugins/gtk/.libs/libWebCoreGtk_la-PluginPackageGtk.o: In function `_ZN7WebCore13PluginPackage4loadEv': PluginPackageGtk.cpp: multiple definition of `_ZN7WebCore13PluginPackage4loadEv'
Summary: net-libs/webkit-gtk-2.4.8: Source/WebCore/plugins/gtk/.libs/libWebCoreGtk_la-...
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: CVE-2014-1344
  Show dependency tree
 
Reported: 2015-01-17 20:45 UTC by Reinis Danne
Modified: 2015-01-21 23:24 UTC (History)
2 users (show)

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


Attachments
webkit-gtk-2.4.8-build.log.xz (webkit-gtk-2.4.8-build.log.xz,307.79 KB, application/x-xz)
2015-01-17 20:53 UTC, Reinis Danne
Details
patch from https://bugs.webkit.org/show_bug.cgi?id=140241#c7 (webkit-gtk-2.4.8-multiple-definition.patch,1.92 KB, patch)
2015-01-18 15:24 UTC, Denis Lisov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reinis Danne 2015-01-17 20:45:47 UTC
Build of =net-libs/webkit-gtk-2.4.8 fails because of multiple definitions of symbols.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =net-libs/webkit-gtk-2.4.8

Actual Results:  
...
./.libs/../Source/WebCore/plugins/gtk/.libs/libWebCoreGtk_la-PluginViewGtk.o: In function `_ZN7WebCore10PluginView9setParentEPNS_10ScrollViewE':
PluginViewGtk.cpp:(.text+0x2130): multiple definition of `_ZN7WebCore10PluginView9setParentEPNS_10ScrollViewE'
./.libs/../Source/WebCore/plugins/.libs/libWebCore_la-PluginViewNone.o:PluginViewNone.cpp:(.text+0x60): first defined here
collect2: error: ld returned 1 exit status
GNUmakefile:40213: recipe for target 'libwebkitgtk-3.0.la' failed
make[1]: *** [libwebkitgtk-3.0.la] Error 1



Portage 2.2.15 (python 3.4.2-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.9.2, glibc-2.20-r1, 3.18.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     8077236 total,   2751204 free
KiB Swap:    2047996 total,   1407500 free
Timestamp of tree: Thu, 15 Jan 2015 12:00:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo x11 bumblebee gentoo-haskell science gamerlay local
Installed sets: @gnome-extras, @steam-runtime
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /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/san
dbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FCFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch p
arallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv us
ersandbox usersync"
FFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.tups.lv/source/ "
LANG="lv_LV.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readabl
e --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/bumblebee /var/lib/layman/haskell /var/lib/layman/science /var/lib/layman/gamerlay /usr/local/por
tage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bluetooth branding bzip2 cairo cdda cdio cdr cjk cleartype cli colord cracklib crypt cups cxx dbus dirac
 djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg fftw firefox flac fontconfig fortran gdbm gif glamor gnome gnome-keyring gnome-online-acc
ounts gphoto2 gpm gsm gstreamer gtk gtk3 iconv icu idn introspection ipv6 jpeg kate lcms libcaca libnotify libsecret live lzma mad matroska mmx mng mo
dules mp3 mp4 mpeg mtp multilib musepack nautilus ncurses networkmanager nls nptl ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds
 pulseaudio qt3support qt4 raw readline schroedinger sdl session smp socialweb speex spell sse sse2 sse41 sse4_1 ssl ssse3 startup-notification svg sy
stem-sqlite systemd tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vim-syntax vorbis vpx wayland wmf wxwidgets x264 xcb xml x
mp xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm80
1 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd act
ions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_u
ser 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="kexi words flow pla
n sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES
="caps plymouth syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax m
tk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev syna
ptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console pr
esenter-minimizer" LINGUAS="lv en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7
 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="dummy fbdev i965 intel nouveau nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lsc
an length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-libs/webkit-gtk-2.4.7 was built with the following:
USE="X egl geoloc gstreamer introspection jit libsecret opengl spell wayland webgl (-aqua) -coverage -debug -gles2 -test" ABI_X86="64"
CFLAGS="-march=native -mtune=generic -O2 -pipe"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"


net-libs/webkit-gtk-2.4.8-r200 was built with the following:
USE="X egl geoloc gstreamer introspection jit libsecret opengl spell webgl (-aqua) -coverage -debug -gles2 -test" ABI_X86="64"
CFLAGS="-march=native -mtune=generic -O2 -pipe"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"


net-libs/webkit-gtk-2.6.4 was built with the following:
USE="egl geoloc gstreamer introspection jit libsecret opengl spell webgl -coverage -debug -doc -test" ABI_X86="64"
CFLAGS="-march=native -mtune=generic -O2 -pipe"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
Comment 1 Reinis Danne 2015-01-17 20:53:49 UTC
Created attachment 394218 [details]
webkit-gtk-2.4.8-build.log.xz
Comment 2 Christian Xia 2015-01-18 12:57:03 UTC
Same here...
Comment 3 Denis Lisov 2015-01-18 13:50:21 UTC
Same here with USE="X egl geoloc gstreamer introspection jit opengl spell wayland webgl (-aqua) -coverage -debug -gles2 -libsecret {-test}".

Looks like https://bugs.webkit.org/show_bug.cgi?id=140241 when building with both X11 and Wayland support, so going to try the patch from comment 7 there.
Comment 4 Denis Lisov 2015-01-18 15:24:24 UTC
Created attachment 394272 [details, diff]
patch from https://bugs.webkit.org/show_bug.cgi?id=140241#c7

Builds successfully with the patch from https://bugs.webkit.org/show_bug.cgi?id=140241#c7 (attached)
Comment 5 Pacho Ramos gentoo-dev 2015-01-21 23:24:00 UTC
+  21 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/webkit-gtk-2.4.8-wayland-webkit2.patch,
+  -files/webkit-gtk-2.2.4-unittests-build.patch,
+  -files/webkit-gtk-2.2.5-sparc64-build.patch,
+  -files/webkit-gtk-2.4.6-gstreamer-check.patch, -webkit-gtk-2.2.6-r1.ebuild,
+  -webkit-gtk-2.2.6-r201.ebuild, -webkit-gtk-2.4.4-r1.ebuild,
+  -webkit-gtk-2.4.4-r201.ebuild, webkit-gtk-2.4.8-r200.ebuild,
+  webkit-gtk-2.4.8.ebuild:
+  Fix building with x11+wayland (#536898 by Reinis Danne and Denis Lisov), drop
+  old
+