Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494912 - [enlightenment overlay] dev-libs/efl-1.8.2 - modules/evas/engines/wayland_egl/evas_wl_main.c:7:1: error: unknown type name 'EGLContext'
Summary: [enlightenment overlay] dev-libs/efl-1.8.2 - modules/evas/engines/wayland_egl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: enlightenment+disabled
URL: https://phab.enlightenment.org/T703
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-21 00:12 UTC by Dennis Schridde
Modified: 2013-12-29 13:47 UTC (History)
0 users

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


Attachments
build.log (build.log,737.45 KB, text/x-log)
2013-12-21 00:12 UTC, Dennis Schridde
Details
build.log (build.log,737.45 KB, text/x-log)
2013-12-21 11:15 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-12-21 00:12:09 UTC
modules/evas/engines/wayland_egl/evas_wl_main.c:7:1: error: unknown type name 'EGLContext'
 static EGLContext context = EGL_NO_CONTEXT;
 ^

[ebuild  N     ] dev-libs/efl-1.8.2::enlightenment  USE="audio bmp drm eet egl fontconfig gif gles gstreamer harfbuzz ibus ico jpeg nls opengl physics pixman png ppm psd pulseaudio sdl ssl systemd tiff v4l2 wayland webp xcb -X -debug -doc -fbcon -fribidi -glib -gnutls -jp2k -scim -tga -tslib -xim -xine -xpm" 0 kB
[ebuild   R    ] media-libs/mesa-9.2.5  USE="egl gallium gbm gles1 gles2 llvm llvm-shared-libs nptl opencl osmesa r600-llvm-compiler vdpau wayland xa xvmc -bindist -classic -debug -openvg -pax_kernel -pic (-selinux) -xorg" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="r600 radeon (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware" 0 kB

Reproducible: Always




Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.5-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6107608 total,    508920 free
KiB Swap:    7813116 total,   7687972 free
Timestamp of tree: Fri, 20 Dec 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r2
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
sys-devel/binutils:       2.23.2
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.12 (virtual/os-headers)
sys-libs/glibc:           2.17
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/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/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 gles1 gles2 gmp gpm gstreamer gtk ibus iconv ipv6 jpeg jpeg2k kde kipi latex lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap 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 real 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 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dennis Schridde 2013-12-21 00:12:44 UTC
Created attachment 365776 [details]
build.log
Comment 2 Dennis Schridde 2013-12-21 11:15:40 UTC
Created attachment 365810 [details]
build.log

Similar issue in a 2nd run:
modules/evas/engines/wayland_egl/evas_engine.c: In function 'evgl_symbols':
modules/evas/engines/wayland_egl/evas_engine.c:170:8: error: 'glsym_eglGetProcAddress' undeclared (first use in this function)
    if (glsym_eglGetProcAddress) { \
        ^

Grepping for GL_GLES (which guards the definition of glsym_eglGetProcAddress in src/modules/evas/engines/wayland_egl/evas_engine.c) shows that it is only defined in ./m4/evas_check_engine.m4 within the macro EVAS_CHECK_ENGINE_DEP_GL_XLIB. So I assume that EGL and thus Wayland support needs to depend on USE=X.
Comment 3 Thomas Sachau gentoo-dev 2013-12-24 10:19:38 UTC
As you already noticed, the situation is more complex and just enabling USE=X wont fix the build failures.

Since i dont use/play with wayland, while you already did some debugging in the edevelop irc channel, please continue checking with upstream for bugfixes/workarounds and report back.
Comment 4 Dennis Schridde 2013-12-28 12:23:35 UTC
The problem is this line in the ebuild:
REQUIRED_USE="wayland?    ( egl || ( opengl gles ) )"

Combined with this part:
    use opengl && use gles && {
        einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
        einfo "opengl has been selected for you"
    }

Wayland support apparently requires GLES support. While this requirement is potentially an overlooked corner case inside EFL (whose source code and #ifdefs generally suggests that OpenGL should work as well), the current state needs to be reflected by a different
REQUIRED_USE="wayland?    ( egl gles )"

In addition, this requires
REQUIRED_USE="
  opengl?    ( !gles )
  gles?    ( !opengl )
"

and the autoselection mentioned above to be removed.

I figured this out by setting USE=+wayland,+gles,-opengl (beware of bug #496256!).
Comment 5 Dennis Schridde 2013-12-28 13:17:07 UTC
Upstream bugreport: https://phab.enlightenment.org/T703 (E's Phabricator is not allowed for See-Also, thus I linked it as URL instead)
Comment 6 Dennis Schridde 2013-12-29 13:45:13 UTC
(In reply to Dennis Schridde from comment #4)
> Wayland support apparently requires GLES support.

raster just confirmed this (https://phab.enlightenment.org/T703#6):
> this is by design in the code. egl is bound to glesv2 by design in the code. until wayland started pushing the idea of desktop gl with egl , egl was bound to gles1/2 and never used/seen anywhere else, thus the gl code is built this way.
Comment 7 Thomas Sachau gentoo-dev 2013-12-29 13:47:07 UTC
thanks for your report and your work invested to find out the specific details, the ebuild in the overlay has now been updated.

Please open a new bug when upstream fixes the usage with opengl.