Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503388 - media-libs/gst-plugins-bad-1.2.3 - ./.libs/libgstegl-1.0.so: undefined reference to `eglDestroyImageKHR'
Summary: media-libs/gst-plugins-bad-1.2.3 - ./.libs/libgstegl-1.0.so: undefined refere...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
: 505632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-04 08:15 UTC by renato gallo
Modified: 2016-02-28 16:15 UTC (History)
5 users (show)

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


Attachments
media-libs/gst-plugins-bad-1.2.3 build.log (build.log,107.45 KB, text/plain)
2014-03-04 08:16 UTC, renato gallo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description renato gallo 2014-03-04 08:15:08 UTC
libtool: link: gcc -o /var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst/egl/tmp-introspectaZTJKY/.libs/GstEGL-1.0 -O2 -pipe -Wl,-O1 -Wl,--as-needed /var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst/egl/tmp-introspectaZTJKY/GstEGL-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L. ./.libs/libgstegl-1.0.so -lgio-2.0 -lgmodule-2.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -pthread
./.libs/libgstegl-1.0.so: undefined reference to `eglDestroyImageKHR'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['../../../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst/egl/tmp-introspectaZTJKY/GstEGL-1.0', '-export-dynamic', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst/egl/tmp-introspectaZTJKY/GstEGL-1.0.o', '-L.', 'libgstegl-1.0.la', '-lgio-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lgstvideo-1.0', '-lgstbase-1.0', '-lgstreamer-1.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero exit status 1
Makefile:1066: recipe for target 'GstEGL-1.0.gir' failed
make[4]: *** [GstEGL-1.0.gir] Error 1
make[4]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst/egl'
Makefile:716: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs/gst'
Makefile:707: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3/gst-libs'
Makefile:873: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-bad-1.2.3/work/gst-plugins-bad-1.2.3'
Makefile:801: recipe for target 'all' failed
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1. emerge =media-libs/gst-plugins-bad-1.2.3
Actual Results:  
it fails

Expected Results:  
it emerges

emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.18-r1, 3.13.3-gentoo x86_64)
=================================================================
System uname: Linux-3.13.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.2
KiB Mem:     3908868 total,    921408 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Mon, 03 Mar 2014 09:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.9, 2.7.6, 3.3.4
dev-util/cmake:           2.8.12.2
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.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 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.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo x11 viprea-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ rsync://ftp.heanet.ie/pub/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/viprea-overlay"
SYNC="rsync://rsync.ie.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 atmo autoipd avahi berkdb bidi bluetooth bluray branding bzip2 cairo cdda cddb cdr chromaprint cli colord cracklib crypt cups curl cxx dbus dc1394 dcc_video dirac directfb dos dri dts dvb dvd dvdr eds egl emboss encode evo exif faad fam fdk firefox flac fluidsynth fontconfig fortran gbm gd gdbm gif gimp gme gnome gnome-keyring gnome-online-accounts gphoto2 gpm growl gsm gstreamer gtk gtk3 html httpd iconv icu introspection ipv6 java jemalloc jpeg jpeg2k kate laptop lcms ldap libass libcaca libkms libnotify libsamplerate libsecret libtar libtiger linsys lirc live lua mad matroska minizip mmx mng modemmanager modplug modules mp3 mp4 mpeg mtp multilib musepack mysql mysqli nautilus ncurses netapi nls nptl nsplugin odbc odbcmanual odk ogg omxil openal opencv opengl openmp optimisememory opus pam pango pcre pdf png policykit postscript ppds projectm pulseaudio python qt3support qt4 rdp readline rtsp run-as-root samba scanner schroedinger sdl sdl-image session sftp shout sid skins smp soap socialweb speex spell sse sse2 ssl startup-notification svg systemd taglib tcpd telepathy theora tiff tremor truetype twolame udev udisks unicode upnp upower usb v4l vaapi vcdx vdpau vlm vorbis webkit wifi wimax wma-fixed wmf wps wxwidgets x264 xa xcb xcomposite xinerama xml xmlreader xmlrpc xmlwriter xpm xv xvid zip zlib zvbi" 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" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" 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 renato gallo 2014-03-04 08:16:33 UTC
Created attachment 371708 [details]
media-libs/gst-plugins-bad-1.2.3 build.log
Comment 2 renato gallo 2014-03-04 08:17:45 UTC
emerge --info '=media-libs/gst-plugins-bad-1.2.3::gentoo'
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.18-r1, 3.13.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.2
KiB Mem:     3908868 total,    921836 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Mon, 03 Mar 2014 09:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.9, 2.7.6, 3.3.4
dev-util/cmake:           2.8.12.2
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.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 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.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo x11 viprea-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ rsync://ftp.heanet.ie/pub/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/viprea-overlay"
SYNC="rsync://rsync.ie.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 atmo autoipd avahi berkdb bidi bluetooth bluray branding bzip2 cairo cdda cddb cdr chromaprint cli colord cracklib crypt cups curl cxx dbus dc1394 dcc_video dirac directfb dos dri dts dvb dvd dvdr eds egl emboss encode evo exif faad fam fdk firefox flac fluidsynth fontconfig fortran gbm gd gdbm gif gimp gme gnome gnome-keyring gnome-online-accounts gphoto2 gpm growl gsm gstreamer gtk gtk3 html httpd iconv icu introspection ipv6 java jemalloc jpeg jpeg2k kate laptop lcms ldap libass libcaca libkms libnotify libsamplerate libsecret libtar libtiger linsys lirc live lua mad matroska minizip mmx mng modemmanager modplug modules mp3 mp4 mpeg mtp multilib musepack mysql mysqli nautilus ncurses netapi nls nptl nsplugin odbc odbcmanual odk ogg omxil openal opencv opengl openmp optimisememory opus pam pango pcre pdf png policykit postscript ppds projectm pulseaudio python qt3support qt4 rdp readline rtsp run-as-root samba scanner schroedinger sdl sdl-image session sftp shout sid skins smp soap socialweb speex spell sse sse2 ssl startup-notification svg systemd taglib tcpd telepathy theora tiff tremor truetype twolame udev udisks unicode upnp upower usb v4l vaapi vcdx vdpau vlm vorbis webkit wifi wimax wma-fixed wmf wps wxwidgets x264 xa xcb xcomposite xinerama xml xmlreader xmlrpc xmlwriter xpm xv xvid zip zlib zvbi" 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" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" 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 3 renato gallo 2014-03-04 08:19:20 UTC
emerge -pqv '=media-libs/gst-plugins-bad-1.2.3::gentoo'
[ebuild     U ] media-libs/gst-plugins-bad-1.2.3 [1.2.0-r1] USE="egl introspection nls orc -vnc"
Comment 4 Pacho Ramos gentoo-dev 2014-03-25 20:50:24 UTC
*** Bug 505632 has been marked as a duplicate of this bug. ***
Comment 5 Charlie Gehlin 2014-07-15 09:01:03 UTC
Confirming that same error also applies to =media-libs/gst-plugins-bad-1.2.4-r1

It has to do with USE="egl"

Seems that x11-drivers/nvidia-drivers ships a "dirty" libEGL.so:
https://devtalk.nvidia.com/default/topic/685409/334-16-if-install-libegl-so-x-y-z-stop-build-mesa-libs/

So, doing a 'eselect opengl list;eselect opengl set [insert xorg-x11# here]' "fixes" this issue. I dont know however, if even possible, how to make an ebuild switch opengl-implementation prior to building, and then switch back again after (if needed). Or some other solution :)

Same problem/fix is also present for =media-libs/mesa-10.2.2 on my system, but that might just be another bug# ;)
Comment 6 Mart Raudsepp gentoo-dev 2014-07-15 09:29:40 UTC
Yeah, not quite sure why we have a USE=egl on there yet.
For 1.4.0 all that code changes again with the kind of merge of gst-plugins-gl into gst-plugins-bad. Currently messing with figuring out all that story for Raspberry Pi on top of 1.3.91.
EGL doesn't tend to be all that useful over OpenGL until you enter the ARM world without mesa, or perhaps until you work with wayland.
1.4.0 is likely to be released this week.
Comment 7 Mart Raudsepp gentoo-dev 2014-07-15 09:42:40 UTC
Just to clarify. EGL is very useful as a more or less windowing independent way to get going with OpenGL or OpenGL ES APIs, but historically most things in our world have implementations from long time of windowing independent GLX + OpenGL, so EGL becomes interesting for Wayland (where there is no GLX) or GLES2 (mostly for ARM devices which do not provide a full OpenGL desktop profile level of support)
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-16 13:59:52 UTC
(In reply to Charlie Gehlin from comment #5)
> Confirming that same error also applies to
> =media-libs/gst-plugins-bad-1.2.4-r1
> 
> It has to do with USE="egl"
> 
> Seems that x11-drivers/nvidia-drivers ships a "dirty" libEGL.so:
> https://devtalk.nvidia.com/default/topic/685409/334-16-if-install-libegl-so-
> x-y-z-stop-build-mesa-libs/

No, media-libs/mesa builds and installs a libEGL.so that has the extra symbols. Which is truly the "dirty" one, then?
Comment 9 Mart Raudsepp gentoo-dev 2014-08-13 18:33:42 UTC
I will probably remove egl USE flag for the time being until things are figured out. I might not touch it for 1.2.x, but will add 1.4.x without it for starters, as everything changed there and needs to be figured out, and it would delay the bump too much.
Speak up if for some reason you really need it in 1.2.x or 1.4.x at this point of time, so I prioritize it more for 1.4.x or not touch it for 1.2.x
Comment 10 Pacho Ramos gentoo-dev 2016-02-28 16:15:23 UTC
looks fixed in 1.6.3