Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416331 - net-libs/webkit-gtk-1.8.1-r{2,3}01 USE=-geoloc - .../work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o:(.data+0x1b8): undefined reference to `webkit_dom_geolocation_get_type'
Summary: net-libs/webkit-gtk-1.8.1-r{2,3}01 USE=-geoloc - .../work/webkit-1.8.1/tmp-in...
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:
 
Reported: 2012-05-16 21:45 UTC by lxg
Modified: 2013-03-24 17:05 UTC (History)
3 users (show)

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


Attachments
build log (build.log,316.84 KB, text/plain)
2012-05-17 06:48 UTC, lxg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lxg 2012-05-16 21:45:07 UTC
The package net-libs/webkit-gtk-1.8.1-r201 was already installed, but I wanted to clean up a bit and decided to rebuild this package without the "geoloc" USE flag.

Apparently, there are references in the code that create dependencies on this feature, as the build failed with "undefined reference to `webkit_dom_geolocation_get_type'".

Reproducible: Always




# tail -n 20 /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/temp/build.log
  GEN    WebKit-1.0.gir
Source/WebKit/gtk/webkit/webkitversion.h:33: Warning: WebKit: symbol='WEBKITGTK_API_VERSION': Unknown namespace for symbol 'WEBKITGTK_API_VERSION'
g-ir-scanner: compile: x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe -I./Source -I./Source/WebKit/gtk -I./DerivedSources -I./DerivedSources/webkit -I./Source/WebKit/gtk -I./Source/JavaScriptCore/ForwardingHeaders -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/atk-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -c -o /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.c
g-ir-scanner: link: bash ./gir-paxctl-lt-wrapper m --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0 -export-dynamic -march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o -L. -lwebkitgtk-1.0 -ljavascriptcoregtk-1.0 -pthread -Wl,--export-dynamic -lgthread-2.0 -lgmodule-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0
./doltlibtool --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0 -export-dynamic -march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o -L. -lwebkitgtk-1.0 -ljavascriptcoregtk-1.0 -pthread -Wl,--export-dynamic -lgthread-2.0 -lgmodule-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/.libs/WebKit-1.0 -march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic  -L. /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/.libs/libwebkitgtk-1.0.so -L/usr/lib64 -lenchant -lgailutil /usr/lib64/libgstapp-0.10.so /usr/lib64/libgstaudio-0.10.so /usr/lib64/libgstfft-0.10.so /usr/lib64/libgstinterfaces-0.10.so /usr/lib64/libgstpbutils-0.10.so /usr/lib64/libgstvideo-0.10.so /usr/lib64/libgstbase-0.10.so /usr/lib64/libgstreamer-0.10.so -lm -ljpeg -lxslt -lxml2 -lGL -ldl -lpng15 -lsqlite3 -lXrender -lXt -lX11 /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/.libs/libjavascriptcoregtk-1.0.so -lpthread -licui18n -licuuc -licudata -lgthread-2.0 -lgmodule-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib64/libfreetype.so -lz -lbz2 -lfontconfig -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o:(.data+0x1b8): undefined reference to `webkit_dom_geolocation_get_type'
collect2: ld returned 1 exit status
PT PaX marking -m 
linking of temporary binary failed: Command '['bash', './gir-paxctl-lt-wrapper', 'm', '--mode=link', '--tag=CC', 'x86_64-pc-linux-gnu-gcc', '-o', '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0', '-export-dynamic', '-march=core2', '-msse4.1', '-mcx16', '-msahf', '-O2', '-pipe', '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/tmp-introspectQjTC0s/WebKit-1.0.o', '-L.', '-lwebkitgtk-1.0', '-ljavascriptcoregtk-1.0', '-pthread', '-Wl,--export-dynamic', '-lgthread-2.0', '-lgmodule-2.0', '-lrt', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lsoup-2.4', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero exit status 1
make: *** [WebKit-1.0.gir] Error 1
 * ERROR: net-libs/webkit-gtk-1.8.1-r201 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-1.8.1-r201'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-1.8.1-r201'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'
 * S: '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'



# emerge -pqv '=net-libs/webkit-gtk-1.8.1-r201'
[ebuild   R   ] net-libs/webkit-gtk-1.8.1-r201  USE="gstreamer introspection jit spell webgl (-aqua) -coverage -debug -geoloc* -test" 



# emerge --info '=net-libs/webkit-gtk-1.8.1-r201'
Portage 2.1.10.60 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r1, 3.2.11-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.11-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_960_@_3.20GHz-with-gentoo-2.1
Timestamp of tree: Wed, 16 May 2012 16:15:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news nodoc noinfo parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 avi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dri2 dts dvb dvd dvdr dvdread emboss encode evo exif fam fame ffmpeg firefox flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 iconv imlib ipv6 jingle jpeg kde lcms libnotify mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ocamlopt ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl subversion svg tcpd telepathy theora tiff truetype udev udisks unicode upnp upower usb userlocales v4l v4l2 vlm vorbis vpx win64codecs wxwidgets x264 xcb xcomposite xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3 php5-4" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

net-libs/webkit-gtk-1.8.1-r201 was built with the following:
USE="geoloc gstreamer introspection jit (multilib) spell webgl (-aqua) -coverage -debug -test"
Comment 1 lxg 2012-05-16 22:06:43 UTC
btw, same happens with net-libs/webkit-gtk-1.8.1-r301
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-17 05:16:34 UTC
Please attach the entire build log to this bug report.
Comment 3 lxg 2012-05-17 06:48:24 UTC
Created attachment 312083 [details]
build log
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-19 07:49:52 UTC
Thanks for reporting. Unfortunately, due to the peculiarities of webkit-gtk's build system and the way it integrates optional geolocation support, I don't see a clean way of enabling USE="geoloc -introspection". Therefore that combination of USE flags is now prohibited by the ebuild.

>  19 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  webkit-gtk-1.8.1-r201.ebuild, webkit-gtk-1.8.1-r301.ebuild,
>  +files/webkit-gtk-1.8.1-gst-required-version.patch, metadata.xml:
>  Fix gstreamer detection with some pkgconfig implementations (bug #416057,
>  thanks to pingouin21). Require USE=geoloc if introspection is enabled (bug
>  #416331, thanks to lxg). jit is now a global flag.
Comment 5 Mart Raudsepp gentoo-dev 2012-07-29 03:38:16 UTC
What about the combination of "-geoloc introspection" which is prohibited now as well?
Comment 6 Maxim Kammerer 2012-10-05 17:36:14 UTC
Hi, has this bug been reported upstream?

Guarding
  WEBKIT_API GType
  webkit_dom_geolocation_get_type (void);
with
  #if (defined ENABLE_GEOLOCATION && ENABLE_GEOLOCATION)
  ...
  #endif
in DerivedSources/webkit/WebKitDOMGeolocation.h seems to fix the issue, but I can't figure where this file is generated.

@leio: that's what's prohibited, the reverse is a typo, apparently.