Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522838 - [qt overlay] dev-qt/qtopengl-5.4.0_alpha - .obj/qgl.o:qgl.cpp:function QOpenGLFunctions_1_1* QOpenGLContext::versionFunctions<QOpenGLFunctions_1_1>() const: error: undefined reference to 'QOpenGLFunctions_1_1::versionProfile()'
Summary: [qt overlay] dev-qt/qtopengl-5.4.0_alpha - .obj/qgl.o:qgl.cpp:function QOpenG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 07:29 UTC by Franz Trischberger
Modified: 2014-10-08 00:37 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,51.51 KB, text/plain)
2014-09-15 07:29 UTC, Franz Trischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2014-09-15 07:29:46 UTC
Created attachment 384768 [details]
build.log

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -fuse-ld=gold -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5OpenGL.so.5 -o libQt5OpenGL.so.5.4.0 .obj/qgl.o .obj/
qglcolormap.o .obj/qglfunctions.o .obj/qglpixelbuffer.o .obj/qglframebufferobject.o .obj/qglpaintdevice.o .obj/qglbuffer.o .obj/qglshaderprogram.o .obj/qgraphicsshadereffect.o .obj/qglg
radientcache.o .obj/qglengineshadermanager.o .obj/qgl2pexvertexarray.o .obj/qpaintengineex_opengl2.o .obj/qglcustomshaderstage.o .obj/qtextureglyphcache_gl.o .obj/moc_qgl.o .obj/moc_qgl
_p.o .obj/moc_qglshaderprogram.o .obj/moc_qgraphicsshadereffect_p.o .obj/moc_qglengineshadermanager_p.o  -lQt5Widgets -lQt5Gui -lQt5Core -lpthread -lGL 
.obj/qgl.o:qgl.cpp:function QOpenGLFunctions_1_1* QOpenGLContext::versionFunctions<QOpenGLFunctions_1_1>() const: error: undefined reference to 'QOpenGLFunctions_1_1::versionProfile()'
collect2: error: ld returned 1 exit status

Portage 2.2.12 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.15.10-gentoo x86_64)
=================================================================
System uname: Linux-3.15.10-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     3890456 total,    674164 free
KiB Swap:    5242876 total,   5204252 free
Timestamp of tree: Sun, 14 Sep 2014 14:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3::dlang
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo aidecoe dlang enlightenment ff2000 kde local mv qt science sera
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe -ggdb"
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"
CONFIG_PROTECT_MASK="/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="-march=corei7-avx -O2 -pipe -ggdb"
DISTDIR="/var/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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"
PORTDIR="/var/repositories/gentoo"
PORTDIR_OVERLAY="/var/repositories/aidecoe /var/repositories/dlang /var/repositories/enlightenment /var/repositories/ff2000 /var/repositories/kde /var/repositories/local /var/repositories/mv /var/repositories/qt /var/repositories/science /var/repositories/sera"
USE="X a52 aac acl acpi alsa amd64 apm berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus directfb dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm iconv infinality introspection ipv6 jpeg jpeg2k kipi lcdfilter lcms mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openrc pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx x264 xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" 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="krita sheets stage words" 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 ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, SYNC, USE_PYTHON
Comment 1 Franz Trischberger 2014-09-15 07:57:00 UTC
USE="-gles2" emerge -1 qtgui makes qtopengl compile, so I guess there is something wrong with qtdefines.
Comment 2 Luke-Jr 2014-09-30 18:26:24 UTC
Upstream bug: https://bugreports.qt-project.org/browse/QTBUG-41330
Comment 3 Luke-Jr 2014-09-30 19:37:10 UTC
(In reply to Franz Fellner from comment #1)
> USE="-gles2" emerge -1 qtgui makes qtopengl compile, so I guess there is
> something wrong with qtdefines.

Confirmed this workaround succeeds here too.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2014-10-03 00:34:34 UTC
(In reply to Luke-Jr from comment #2)
> Upstream bug: https://bugreports.qt-project.org/browse/QTBUG-41330

Please close it. This is a downstream packaging bug, not an upstream issue.
Comment 5 Luke-Jr 2014-10-03 00:46:52 UTC
Does USE=gles2 for qtgui disable full OpenGL? It's not clear that it should... I'd prefer *both* OpenGL and OpenGLES2 support, but definitely prefer the former over the latter if it's an one-or-the-other option...
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2014-10-03 00:55:52 UTC
Fixed in overlay with https://github.com/gentoo/qt/commit/8cb8b0a9b0b8962590fa4f6ed2c0fbb00e0c4cc0

and backported to 5.3.2 in portage.
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2014-10-03 01:17:31 UTC
(In reply to Luke-Jr from comment #5)
> Does USE=gles2 for qtgui disable full OpenGL? It's not clear that it
> should... I'd prefer *both* OpenGL and OpenGLES2 support, but definitely
> prefer the former over the latter if it's an one-or-the-other option...

It's one-or-the-other (or none if you disable the opengl useflag). I think the flag description is quite clear already but I'm open to suggestions...
Comment 8 Luke-Jr 2014-10-03 01:43:08 UTC
(In reply to Davide Pesavento from comment #7)
> (In reply to Luke-Jr from comment #5)
> > Does USE=gles2 for qtgui disable full OpenGL? It's not clear that it
> > should... I'd prefer *both* OpenGL and OpenGLES2 support, but definitely
> > prefer the former over the latter if it's an one-or-the-other option...
> 
> It's one-or-the-other (or none if you disable the opengl useflag). I think
> the flag description is quite clear already but I'm open to suggestions...

How about USE="-opengl gles2" enable GLES2 (only), USE="opengl -gles2" enable GL (only), and REQUIRED_USE="opengl? ( !gles2 )"?
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2014-10-03 01:54:51 UTC
(In reply to Luke-Jr from comment #8)
> How about USE="-opengl gles2" enable GLES2 (only), USE="opengl -gles2"
> enable GL (only), and REQUIRED_USE="opengl? ( !gles2 )"?

I don't see how that would be an improvement... Furthermore, most packages don't care about which flavor of opengl is being used, they just need opengl support. Your proposal would complicate writing deps for those packages.
Comment 10 Luke-Jr 2014-10-03 02:06:20 UTC
(In reply to Davide Pesavento from comment #9)
> (In reply to Luke-Jr from comment #8)
> > How about USE="-opengl gles2" enable GLES2 (only), USE="opengl -gles2"
> > enable GL (only), and REQUIRED_USE="opengl? ( !gles2 )"?
> 
> I don't see how that would be an improvement... Furthermore, most packages
> don't care about which flavor of opengl is being used, they just need opengl
> support. Your proposal would complicate writing deps for those packages.

Well, it would alert people like myself who have USE="opengl gles2" expecting support for *both*, to the fact that only one can be supported.
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2014-10-03 20:32:47 UTC
You're supposed to read USE flag descriptions, not deduce the meaning from REQUIRED_USE constraints...
Comment 12 Luke-Jr 2014-10-03 20:35:54 UTC
(In reply to Davide Pesavento from comment #11)
> You're supposed to read USE flag descriptions, not deduce the meaning from
> REQUIRED_USE constraints...

You read the particular implementation of every USE flag for every package you install?
USE=gles2 is in *most* packages used to enable OpenGL ES 2.0 support. It is only in Qt packages that it is being used to also *disable* desktop OpenGL support.
Comment 13 Davide Pesavento (RETIRED) gentoo-dev 2014-10-08 00:37:58 UTC
(In reply to Luke-Jr from comment #12)
> You read the particular implementation of every USE flag for every package
> you install?

Most of them, yes, unless the flag name is self-explanatory and I'm sure that I don't need it.

> USE=gles2 is in *most* packages used to enable OpenGL ES 2.0 support. It is
> only in Qt packages that it is being used to also *disable* desktop OpenGL
> support.

I'm not so sure about that. See e.g.

dev-libs/weston:gles2 - Use GLESv2 cairo instead of full GL
media-libs/evas:gles - Enable gles flavor of gl instead of standard
www-plugins/lightspark:gles - Replace default OpenGL renderer with GLESv2
x11-libs/cairo:gles2 - Use OpenGL ES 2 backend for acceleration.
x11-libs/glamor:gles - Build glamor based on gles2

dev-libs/efl supports only one implementation too, but doesn't use REQUIRED_USE, instead it prefers full GL and prints an einfo to inform the user.

media-libs/cogl is unclear, but a comment inside the ebuild says "Prefer gl over gles2 if both are selected".

As you can see, there isn't a clear tree-wide rule (we should probably make it more consistent across packages, but that's another matter).