Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435560 - dev-games/ogre-1.8.0[gles2] fails to build: ogre_src_v1-8-0/RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgramPipeline.cpp:132:20: error: ‘mGLHandle’ was not declared in this scope
Summary: dev-games/ogre-1.8.0[gles2] fails to build: ogre_src_v1-8-0/RenderSystems/GLE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 450784 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-19 23:27 UTC by Dennis Schridde
Modified: 2013-01-09 17:27 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,477.56 KB, text/plain)
2012-09-19 23:27 UTC, Dennis Schridde
Details
build.log (build.log,477.42 KB, text/plain)
2012-10-31 19:26 UTC, Dennis Schridde
Details
Patch for the broken file (OgreGLSLESProgramPipeline.patch,796 bytes, patch)
2013-01-08 17:22 UTC, Ian T. Jacobsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-09-19 23:27:20 UTC
Created attachment 324330 [details]
build.log

/var/tmp/portage/dev-games/ogre-1.8.0/work/ogre_src_v1-8-0/RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgramPipeline.cpp: In member function ‘virtual void Ogre::GLSLESProgramPipeline::compileAndLink()’:
/var/tmp/portage/dev-games/ogre-1.8.0/work/ogre_src_v1-8-0/RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgramPipeline.cpp:132:20: error: ‘mGLHandle’ was not declared in this scope
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/GLSLES/src/OgreGLSLESProgramPipeline.cpp.o] Error 1


Portage 2.2.0_alpha124 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.1, glibc-2
.15-r2, 3.5.4-gentoo x86_64)
=================================================================
System uname: Linux-3.5.4-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor
_5000+-with-gentoo-2.2
Timestamp of tree: Wed, 19 Sep 2012 19:45:01 +0000
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo systemd enlightenment ambro-cross local kde sunrise g-ctan
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
/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-
gtk/gtk-3.0 /var/lib/neatx/home"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /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/te
xmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check n --with-bdeps y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if
-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs pr
otect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-or
phans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://linux.rz.
ruhr-uni-bochum.de/gentoo-mirror/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/systemd /var/cache/portage/layman/enl
ightenment /var/cache/portage/layman/ambro-cross /var/cache/portage/local /var/c
ache/portage/overlays/kde /var/cache/portage/overlays/sunrise /var/lib/g-ctan"
[…]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAG
E_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Denis M. (Phr33d0m) 2012-10-28 22:50:23 UTC
I'm unable to reproduce this. Also, why have you removed your USE flags from your `emerge --info` output? Please include them, always.
Btw, could you upload or paste the output of `emerge -pv mesa` or `equery u mesa`?
Comment 2 Dennis Schridde 2012-10-31 19:26:04 UTC
Created attachment 327884 [details]
build.log

(In reply to comment #1)
> I'm unable to reproduce this.
Can still reproduce.

> Also, why have you removed your USE flags from your `emerge --info` output?
Because they are useless. The party takes place in package.use, which leaves the global useflags being just noise without any meaning. The USE flags that are actually active for this package are included in the build.log.

> Btw, could you upload or paste the output of `emerge -pv mesa` or `equery u
> mesa`?
[ebuild   R    ] media-libs/mesa-9.0  USE="egl g3dvl gallium gles1 gles2 llvm nptl osmesa shared-glapi vdpau wayland xa xorg xvmc -bindist -classic -debug -gbm -openvg -pax_kernel -pic -r600-llvm-compiler (-selinux)" VIDEO_CARDS="r600 radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware" 0 kB
[ebuild   R    ] dev-games/ogre-1.8.0  USE="boost freeimage gles2* ois opengl threads zip -cg -doc -double-precision -examples -poco -profile -tbb -tools" 0 kB
Comment 3 Julian Ospald 2012-11-01 18:34:46 UTC
(In reply to comment #2)
> > Also, why have you removed your USE flags from your `emerge --info` output?
> Because they are useless.

Provide all of "emerge --info". Global useflags can give us hints on what your system looks like, although that information is not precise.

also: cannot reproduce, even with gcc-4.7.1

could you try with stable mesa? Might be incompatible with 9.0 (otherwise I'll test that in a chroot later)
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2012-11-01 20:04:09 UTC
still fails with 1.8.1?
Comment 5 Sergio Perez 2012-11-02 21:06:51 UTC
still fails for me with mesa-9999
with 9.0 too;
boost-1.51

Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.6.2-gentoo x86_64)
=================================================================
System uname: Linux-3.6.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.2
Timestamp of tree: Fri, 02 Nov 2012 19:00:02 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x11 gamerlay-stable F-U-N-Overlay-by-Sharaka-and-Anagromataf bibletime java-overlay sunrise hasufell bircoph
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize -mavx -maes"
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="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /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="-O2 -pipe -march=native -ftree-vectorize -mavx -maes"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j8"
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="/var/lib/layman/x11 /var/lib/layman/gamerlay /var/lib/layman/F.U.N. /var/lib/layman/bibletime /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/hasufell /var/lib/layman/bircoph"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aacs aalib acl acpi adns alsa amd64 apm avx bash-completion bazaar berkdb bluetooth bluray branding btrfs bzip2 cairo cdda cdr cli colorpicker consolekit cpuload cracklib crypt cups cvs cxx darcs dbus declarative dri drm dts dv dvd dvdr egl emboss emovix encode eselect exif extensions fam fat ffmpeg firefox flac fluidsynth fortran gallium game game-engine games gbm gdbm gif git gles1 gles2 gnutls gold gpm gstreamer gtk3 icc iconv icq icu idn imagemagick ipv6 irrlicht java jce jfs jpeg kde kipi lame lcms lenovo less libnotify link llvm lua lzma mad matroska md5 md5sum melt mercurial metalink midi minizip mjpeg mmx mng modules mp3 mp4 mpeg msn mudflap multilib ncurses networkmanager networkmonitor nls nptl nsplugin ntfs ogg ogre ois opencl opengl openmp openvg oscar osmesa otr pam pango pch pcre pdf phonon plasma png policykit postscript ppds pppd pulseaudio python3 qt qt3support qt4 quicktime rar readline rtmp rtsp samba schroedinger sdl sdl-image sdl-sound sdlaudio secure-delete security sensors session shared-glapi smbclient smbsharemodes sna spell sse sse2 sse2_4way sse3 sse4 sse4_1 sse4a ssh ssl ssse3 startup-notification subversion svg symlink syslog system-boost system-cxx-headers system-libCg system-libs system-sqlite tbb tcpd theora threads tiff tinyxml truetype udev udisks unicode unlock-notify upnp upower usb v4l vaapi vcd vlc vorbis wifi winbind wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xv xvid xz zlib" 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" 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="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="braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="i965 intel 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 6 Julian Ospald 2012-11-02 21:07:49 UTC
works for me with mesa-8.0.4-r1 and ogre-1.8.1
Comment 7 Dennis Schridde 2012-11-04 18:18:42 UTC
(In reply to comment #4)
> still fails with 1.8.1?
Still fails.

[ebuild   R    ] media-libs/mesa-9.0  USE="egl g3dvl gallium gles1 gles2 llvm nptl osmesa shared-glapi vdpau wayland xa xorg xvmc -bindist -classic -debug -gbm -openvg -pax_kernel -pic -r600-llvm-compiler (-selinux)" VIDEO_CARDS="r600 radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware" 0 kB
[ebuild   R    ] dev-games/ogre-1.8.1  USE="boost freeimage gles2* ois opengl threads zip -cg -doc -double-precision -examples -poco -profile -tbb -tools" 0 kB

I did not test with media-libs/mesa-8.0.4-r1.
Comment 8 Charo del Genio 2012-12-15 14:03:38 UTC
Same problem here.
Can reproduce exactly with ogre-1.8.1, gcc-4.5.4 or gcc-4.6.0 (tried both), and mesa-9.0. Incidentally, as far as I know, mesa 9.0 is stable.

USE flags for ogre are USE="boost double-precision freeimage gles2 ois opengl threads zip -cg -doc -examples -poco -profile -tbb -tools"

USE flags for mesa are USE="classic egl g3dvl gallium gles1 gles2 llvm nptl osmesa shared-glapi xa xorg xvmc -bindist -debug -gbm -openvg -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau (-wayland)" VIDEO_CARDS="-i915 -i965 -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"




Output of emerge --info follows


 Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.0, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.1
Timestamp of tree: Sat, 15 Dec 2012 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.0
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Broadcom skype-eula AdobeFlash-10.1 Oracle-BCLA-JavaSE AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=generic -msse4.1 -msse4.2 -msse4 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=generic -msse4.1 -msse4.2 -msse4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/var/lib/layman/steam-overlay"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus declarative dga dri dts dv dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran gif gimp gnutls gphoto2 gpm handbook iconv icu idn imagemagick jpeg kde kerberos kipi lame lapack lcms libass libnotify lm_sensors mad mmap mmx mng modules mp3 mp4 mpeg msn mtp mudflap multilib musepack musicbrainz mysql ncurses nls nptl nsplugin offensive ogg openal openexr opengl oss pam pango pcre pdf phonon plasma png policykit postscript ppds pppd pulseaudio qt4 quicktime raw readline rss samba sdl semantic-desktop smp sound sqlite sse sse2 ssl startup-notification svg szip taglib tcpd threads tiff truetype udev udisks unicode upower usb vorbis wmf wxwidgets x264 xcb xcomposite xine xml xmp xv xvid yahoo zlib" 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" 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="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" CAMERAS="fuji" 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 pdfimport" LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 9 Julian Ospald 2013-01-08 16:22:55 UTC
*** Bug 450784 has been marked as a duplicate of this bug. ***
Comment 10 Ian T. Jacobsen 2013-01-08 17:22:38 UTC
Created attachment 334828 [details, diff]
Patch for the broken file

I found the issue to be that when compiling with the gles2 flag, the wrong name for a variable is used inside two #ifdef
The name used is mGLHandle, the name I changed it to is mGLProgramHandle.
The file changed is OgreGLSLESProgramPipeline.cpp, mGLProgramHandle is defined in OgreGLSLESProgram.h.
Comment 11 Julian Ospald 2013-01-08 17:27:20 UTC
(In reply to comment #10)

does that raise the minimum media-libs/mesa version?
Comment 12 Ian T. Jacobsen 2013-01-08 17:59:06 UTC
(In reply to comment #11)
> (In reply to comment #10)
> 
> does that raise the minimum media-libs/mesa version?

I'm not sure, I'm on mesa 9.0.1 and I only tried compiling it with this version of mesa.
Comment 13 Dennis Schridde 2013-01-08 18:11:25 UTC
(In reply to comment #11)
> does that raise the minimum media-libs/mesa version?
Looking at the sourcecode, I doubt it.

Since mGLShaderHandle does not come out of Mesa, but is the name of a member of an Ogre class, we only have to look at the Ogre headers. And RenderSystems/GLES2/src/GLSLES/include/OgreGLSLESProgram.h defines GLSLESProgram::mGLProgramHandle and GLSLESProgram::mGLShaderHandle unconditionally, i.e. independent of the GL or Mesa version.
Comment 15 Dennis Schridde 2013-01-09 16:54:02 UTC
(In reply to comment #14)
> https://bitbucket.org/sinbad/ogre/pull-request/50/fix-error-mglhandle-was-
> not-declared-in/diff
"Declined" - with which reason?

"The source repository has been deleted." ?
Comment 16 Julian Ospald 2013-01-09 17:05:14 UTC
meh, used the wrong branch

let's try this https://bitbucket.org/sinbad/ogre/pull-request/51/fix-gles2-build/diff
Comment 17 Julian Ospald 2013-01-09 17:26:59 UTC
+  09 Jan 2013; Julian Ospald <hasufell@gentoo.org> ogre-1.8.1.ebuild,
+  +files/ogre-1.8.1-gles2.patch:
+  fix build with USE=gles2 wrt #435560


thanks for your reports and the patch, accepted upstream