Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540142 - app-emulation/vice-2.4.20 - ../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus': x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
Summary: app-emulation/vice-2.4.20 - ../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o):...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-15 13:18 UTC by Mark Nowiasz
Modified: 2015-07-27 20:53 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,81.29 KB, text/plain)
2015-02-15 13:19 UTC, Mark Nowiasz
Details
build.log for 2.4.20 (build.log.2.4.20,82.55 KB, text/plain)
2015-06-14 08:22 UTC, Mark Nowiasz
Details
config.log vice-2.4.20 (config.log,296.24 KB, text/plain)
2015-07-24 20:15 UTC, bugzilla93443
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Nowiasz 2015-02-15 13:18:47 UTC
When trying to compile vice (with a current version of gtk), vice fails to compile:

x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'

Reproducible: Always

Steps to Reproduce:
1. emerge -uDN @world @system
2.
3.
Actual Results:  
11ui.c:1521:9: warning: ‘gdk_pointer_ungrab’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:100): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations]
         gdk_pointer_ungrab(GDK_CURRENT_TIME);
         ^
Making all in lib/p64
Making all in platform
main.c: In function ‘main_program’:
main.c:230:13: warning: format not a string literal and no format arguments [-Wformat-security]
             log_message(LOG_DEFAULT, tmp);
             ^
main.c:238:13: warning: format not a string literal and no format arguments [-Wformat-security]
             log_message(LOG_DEFAULT, tmp);
             ^
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1748: recipe for target 'vsid' failed
make[3]: *** [vsid] Error 1
make[3]: *** Waiting for unfinished jobs....
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1788: recipe for target 'xvic' failed
make[3]: *** [xvic] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1760: recipe for target 'x64dtv' failed
make[3]: *** [x64dtv] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1752: recipe for target 'x128' failed
make[3]: *** [x128] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1764: recipe for target 'x64sc' failed
make[3]: *** [x64sc] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1756: recipe for target 'x64' failed
make[3]: *** [x64] Error 1
Makefile:1883: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:1638: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:564: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: app-emulation/vice-2.4.16-r1::gentoo failed (compile phase):
 *   emake failed



 emerge --info '=app-emulation/vice-2.4.16-r1::gentoo'
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.17 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r1, 3.18.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16420668 total,   6709452 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sun, 15 Feb 2015 10:15:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.9::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3::gentoo, 1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.5::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

eigenlay
    location: /var/lib/layman/eigenlay
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

owncloud-client
    location: /var/lib/layman/owncloud-client
    masters: gentoo
    priority: 50

scrill
    location: /var/lib/layman/scrill
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi aim alsa amd64 apng audiofile avx bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar cdb cdda cddb cdinstall cdparanoia cdr chromium cli clutter colord consolekit cracklib crypt cryptsetup css cups curl curlwrappers cvs cxx dbus djvu dng dri dts dv dvb dvd dvdr encode enscript evo exif expat fam farstream ffmpeg fftw flac flickr fontconfig foomaticdb fortran ftp gd gdbm gdu geo geoip gif gimp git glut gmp gnuplot gnutls google gphoto2 graphicsmagick graphviz gsl gsm gstreamer gtk gtk3 gtkhtml gudev gzip handbook hbci hddtemp hdf5 iconv icq icu idn imagemagick imap imlib ipv6 jabber jack java java6 javascript jbig jingle jit joystick jpeg jpeg2k kde kdepim lame lapack lash latex lcms ldap libcaca libedit libffi libnotify libsamplerate libwww lm_sensors lua lzma lzo mad maildir matroska memlimit mercurial mhash mikmod milter mime mmap mms mmx mng modplug modules mono mp3 mp4 mpeg mpi mplayer msn mtp multilib musepack musicbrainz mysql mysqli nas ncurses netcdf nls nntp nocd nptl nsplugin ocr odbc offensive ofx ogg openal opencl openexr opengl openmax openmp openvg osc oscar pam pcntl pcre pda pdf pentax php plasma plotutils png policykit portaudio postgres ppds pulseaudio python qt3support qt4 quicktime raw rdesktop readline recode rss samba sasl scanner sdl semantic-desktop session sharedmem shorten slang slp smp sndfile snmp soap sockets sound sox speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion suid svg syslog szip taglib tcpd telepathy themes theora threads tiff timidity tokenizer truetype udev unicode upnp usb v4l vala vcd vdpau video videos vim-syntax vnc vorbis vpn vpnc wavpack webkit win32codecs wmf wxwidgets x264 xa xattr xcb xcomposite xface xft xinerama xml xmlrpc xmp xmpp xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo yaz zeroconf zip zlib" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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
Comment 1 Mark Nowiasz 2015-02-15 13:19:29 UTC
Created attachment 396506 [details]
build.log

VICE's build.log
Comment 2 Martin Dummer 2015-05-02 20:10:42 UTC
I can confirm this compile problem.




emerge --info:

Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 3.18.11-gentoo-nouveau3 x86_64)
=================================================================
System uname: Linux-3.18.11-gentoo-nouveau3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     3899292 total,    649192 free
KiB Swap:    8388604 total,   7402204 free
Timestamp of repository gentoo: Sat, 02 May 2015 15:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.15::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

md-private
    location: /usr/local/portage
    masters: gentoo
    priority: 0

bitcoin
    location: /var/lib/layman/bitcoin
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: 25

vdr-devel
    location: /var/lib/layman/vdr-devel
    sync-uri: https://anongit.gentoo.org/git/proj/vdr/devel.git
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    sync-uri: git://anongit.gentoo.org/proj/vmware.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-11.x googleearth Oracle-BCLA-JavaSE TeamViewer NVIDIA-CUDA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --ask-enter-invalid --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fakeroot fixlafiles merge-sync news parallel-fetch 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://distfiles.gentoo.org"
LANG="C"
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-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi akonadi alsa amd64 ao apache2 apng audiofile bash-completion berkdb bluetooth branding bzip2 cairo captury cardbus cdda cdr cisco cli clucene consolekit cracklib cron crypt css cups curl cxx dbus declarative device-mapper dhcpcd disk-partition dri dts dvb dvd dvdr ebook embedded emboss emerald enca encode exif extras fam ffmpeg firefox flac fontconfig fortran g3dvl gd gdbm geolocation gif gimp git glade glamor glitz gnutls gphoto2 gpm gstreamer gtk httpd hybrid-auth iconv icu id3tag ieee1394 ipod ipv6 java jpeg kde kerberos kipi kvm lame laptop lcms ldap lensfun libass libcaca libkms libnotify libproxy live lm_sensors logrotate lzo macvtap mad mikmod minizip mjpeg mmap mmx mmxext mng mod modules mp3 mp4 mpeg mtp multilib musicbrainz mysql ncurses networkmanager nfsv3 nfsv4 nls nptl nptlonly nsplugin ntlm ntp nvidia ogg old-daemons opencl openconnect openexr opengl openipmi openmp pam pango pcre pdf phonon plasma pm-utils png policykit ppds python qemu qt3support qt4 rdesktop rdp readline real resolvconf rss samba sasl sdl semantic-desktop session smi smp sndfile snmp spell sql sqlite sse sse2 sse3 ssl ssse3 startup-notification stl svg symlink tcpd test-programs threads threadsafe thumbnail tiff truetype udev udisks unicode upcall upower usb usbredir utils v4l v4l2 vaapi vcd vdpau vim-syntax vnc vorbis webkit wifi wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="i386 x86_64 arm" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="vesa nvidia 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2015-06-03 05:46:24 UTC
reopen if you can reproduce the issue with vice-2.4.20
Comment 4 Mark Nowiasz 2015-06-13 13:12:03 UTC
Same with 2.4.20:

x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1776: recipe for target 'vsid' failed
make[3]: *** [vsid] Error 1
make[3]: *** Waiting for unfinished jobs....
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1788: recipe for target 'x64dtv' failed
make[3]: *** [x64dtv] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xb1e): undefined reference to `GDK_WINDOW_XID'
collect2: error: ld returned 1 exit status
Makefile:1780: recipe for target 'x128' failed
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2015-06-13 19:17:13 UTC
please post the full build log for 2.4.20.
Comment 6 Mark Nowiasz 2015-06-14 08:22:17 UTC
Created attachment 405120 [details]
build.log for 2.4.20

Build log for 2.4.20
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2015-06-15 02:42:34 UTC
Also, what's the output from:

emerge --info gtk+:3 | tail -n3
Comment 8 Mark Nowiasz 2015-06-15 17:40:12 UTC
emerge --info gtk+:3 | tail -n3
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
x11-libs/gtk+-3.16.3::gentoo was built with the following:
USE="X colord cups introspection vim-syntax xinerama (-aqua) -broadway -cloudprint -debug -examples -test -wayland" ABI_X86="32 64 -x32"
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2015-06-15 19:00:11 UTC
After talking with upstream I've disabled gtk3 support since it's not really ready.  I'll look into adding it back on a later version.
Comment 10 Mark Nowiasz 2015-06-18 18:02:40 UTC
(In reply to Mr. Bones. from comment #9)
> After talking with upstream I've disabled gtk3 support since it's not really
> ready.  I'll look into adding it back on a later version.

Well, still exactly the same build problem:

x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1776: recipe for target 'vsid' failed
make[3]: *** [vsid] Error 1
make[3]: *** Waiting for unfinished jobs....
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1816: recipe for target 'xvic' failed
make[3]: *** [xvic] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1792: recipe for target 'x64sc' failed
make[3]: *** [x64sc] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1788: recipe for target 'x64dtv' failed
make[3]: *** [x64dtv] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1784: recipe for target 'x64' failed
make[3]: *** [x64] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1780: recipe for target 'x128' failed
make[3]: *** [x128] Error 1
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0x8be): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1804: recipe for target 'xpet' failed
make[3]: *** [xpet] Error 1
Makefile:1911: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:1666: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:579: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2015-06-20 03:20:06 UTC
I can't reproduce this on stable amd64 so you're going to have to put in some work to figure out why it's not working on your system.
Comment 12 Nuno Silva 2015-07-04 06:59:10 UTC
I get GDK_DRAWABLE_XID undefined references with app-emulation/vice-2.4.20 on an amd64 machine, looks similar to comment 10.
Comment 13 Patrick Lauer gentoo-dev 2015-07-05 06:34:37 UTC
 * ERROR: app-emulation/vice-2.4.20::gentoo failed (compile phase):
 *   emake failed

on a ~amd64 system I can easily reproduce this ...
Comment 14 Patrick Lauer gentoo-dev 2015-07-05 06:44:23 UTC
src/arch/unix/x11/gnome/x11ui.c says:

#if !GTK_CHECK_VERSION(3, 0, 0)
/* in gtk3 we should not include these directly */
#include <gtk/gtkgl.h>
#include <gdk/gdkgl.h>
#endif


Anyone who has gtk3 *installed* has a high chance of seeing this failure.

I'm mildly impressed by upstream's ingenuity ...
Comment 15 Mr. Bones. (RETIRED) gentoo-dev 2015-07-14 02:11:49 UTC
I have gtk+-3.14.13 installed.  what version needs to be installed to drive the build failure?
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2015-07-21 04:31:06 UTC
I'm about to close this as WORKSFORME unless someone pipes up with a clear way to demonstrate the issue.  Builds fine for me with USE="gtk2 -sdl" and I have gtk+:3 installed as well but really it shouldn't even be looking at those header files.
Comment 17 Nuno Silva 2015-07-21 04:40:25 UTC
With which version of vice are you trying this with? I can try to collect more information about the involved systems later today, but it seems that at least two people have seen this bug on vice-2.4.20.
Comment 18 Patrick Lauer gentoo-dev 2015-07-21 04:42:56 UTC
To reproduce:

emerge -1u gtk+:3

USE="-sdl gtk2" emerge -1 vice


As shown in previous comments the code detects gtk3, disables some bits wrongly, and then fails hard. This is very easy to reproduce and very obvious when reading the relevant code.
Comment 19 Mr. Bones. (RETIRED) gentoo-dev 2015-07-21 13:08:03 UTC
And I just said: "Builds fine for me with USE="gtk2 -sdl" and I have gtk+:3 installed"  so it's not as simple as you're claiming it is to reproduce the issue.
Comment 20 bugzilla93443 2015-07-21 16:25:08 UTC
I have the same problem when upgrading from an older version. I can reproduce the error:

[ebuild     U ~] app-emulation/vice-2.4.20::gentoo [2.4.16-r1::gentoo] USE="alsa ffmpeg gtk2%* nls png sdlsound%* zlib -Xaw3d -ethernet -fullscreen -ipv6 -lame -oss -pulseaudio -sdl -threads -vte (-gtk%) (-gtk3%) (-readline%*)" 0 KiB


[...]
Making all in gnome
Making all in lib/p64
Making all in platform
platform_linux_runtime_os.c: In function ‘platform_get_linux_runtime_os’:
platform_linux_runtime_os.c:262:19: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
             system("sh ./emultest.sh");
                   ^
main.c: In function ‘main_program’:
main.c:230:13: warning: format not a string literal and no format arguments [-Wformat-security]
             log_message(LOG_DEFAULT, tmp);
             ^
main.c:238:13: warning: format not a string literal and no format arguments [-Wformat-security]
             log_message(LOG_DEFAULT, tmp);
             ^
resources.c: In function ‘resources_set_default_string’:
resources.c:811:22: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
     r->factory_value = value;
                      ^
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xd0e): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1776: recipe for target 'vsid' failed
make[3]: *** [vsid] Error 1
make[3]: *** Waiting for unfinished jobs....
../src/arch/unix/x11/gnome/libgnomeui.a(x11ui.o): In function `ui_restore_focus':
x11ui.c:(.text+0xd0e): undefined reference to `GDK_DRAWABLE_XID'
collect2: error: ld returned 1 exit status
Makefile:1788: recipe for target 'x64dtv' failed
make[3]: *** [x64dtv] Error 1
Makefile:1911: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:1666: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:579: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1



My gtk version:
[I] x11-libs/gtk+
     Available versions:  
     (1)    1.2.10-r12 1.2.10-r13
     (2)    2.24.25 2.24.27 2.24.28-r1
     (3)    3.12.2 3.14.9 3.14.13 ~3.16.4 ~3.16.5
       {X aqua broadway cloudprint colord cups debug examples +introspection nls test vim-syntax wayland xinerama ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl nn no pl pt pt_BR ro ru sk sl sr sv tr uk vi"}
     Installed versions:  2.24.28-r1(2)(04:36:17 PM 06/28/2015)(introspection vim-syntax -aqua -cups -debug -examples -test -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") 3.14.13(3)(04:27:30 PM 06/28/2015)(X introspection vim-syntax -aqua -broadway -cloudprint -colord -cups -debug -examples -test -wayland -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.gtk.org/
     Description:         Gimp ToolKit +
Comment 21 Mr. Bones. (RETIRED) gentoo-dev 2015-07-23 04:27:29 UTC
can you reproduce the error if vice is not already installed?  i.e. emerge -C vice ; emerge -v =vice-2.4.20
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2015-07-23 16:15:02 UTC
Also, if you can reproduce this please attach your config.log file from after the configure stage.
Comment 23 bugzilla93443 2015-07-24 20:15:48 UTC
Created attachment 407552 [details]
config.log vice-2.4.20

Same problem with a clean install. Please see the attached config.log.
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2015-07-24 22:09:18 UTC
comparing your config.log to mine... looks like this is the only major difference:

< VICE_SYNC='openGL_sync.o '
---
> VICE_SYNC=''

and that's because your system fails the check for glXWaitVideoSyncSGI in your opengl lib.  That (along with not having USE=fullscreen) causes USE_XF86_EXTENSIONS to be unset which then leads to the compile failure.

I think if you try building with USE=fullscreen it might work around the bug in the code.

People using the nvidia drivers for their opengl probably won't notice this because the glXWaitVideoSyncSGI check succeeds.
Comment 25 Mr. Bones. (RETIRED) gentoo-dev 2015-07-27 16:03:27 UTC
Added a patch that might work around the issue so sync up and try again.
Comment 26 bugzilla93443 2015-07-27 19:44:14 UTC
Now it compiles fine! Good job!
Comment 27 Mr. Bones. (RETIRED) gentoo-dev 2015-07-27 20:53:52 UTC
goody.  glad we were finally able to nail it down.