Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497124 - dev-libs/DirectFB-1.7.1[egl]: egl_system.c:75:6: error: unknown type name ‘EGL_DISPMANX_WINDOW_T’
Summary: dev-libs/DirectFB-1.7.1[egl]: egl_system.c:75:6: error: unknown type name ‘EG...
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 Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-05 09:37 UTC by Juergen Rose
Modified: 2014-10-18 21:59 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,259.88 KB, text/plain)
2014-01-05 09:37 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2014-01-05 09:37:08 UTC
Created attachment 367058 [details]
build.log

'emerge DirectFB' fails with:
...
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -I/usr/include/libdrm -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -ffast-math -march=amdfam10 -O2 -pipe -D_GNU_SOURCE -std=gnu99 -c egl_primary.c  -fPIC -DPIC -o .libs/egl_primary.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -I/usr/include/libdrm -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -ffast-math -march=amdfam10 -O2 -pipe -D_GNU_SOURCE -std=gnu99 -c egl_surface_pool.c  -fPIC -DPIC -o .libs/egl_surface_pool.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -I/usr/include/libdrm -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -ffast-math -march=amdfam10 -O2 -pipe -D_GNU_SOURCE -std=gnu99 -c egl_system.c  -fPIC -DPIC -o .libs/egl_system.o
egl_system.c: In function ‘InitEGL’:
egl_system.c:75:6: error: unknown type name ‘EGL_DISPMANX_WINDOW_T’
      static EGL_DISPMANX_WINDOW_T nativewindow;
      ^
egl_system.c:76:6: error: unknown type name ‘DISPMANX_ELEMENT_HANDLE_T’
      DISPMANX_ELEMENT_HANDLE_T dispman_element;
      ^
...
egl_system.c:142:61: error: ‘DISPMANX_PROTECTION_NONE’ undeclared (first use in this function)
                                                  &src_rect, DISPMANX_PROTECTION_NONE, 0, 0, 0);
...
egl_surface_pool.c:566:1: warning: ‘eglWrite’ defined but not used [-Wunused-function]
 eglWrite( CoreSurfacePool       *pool,
 ^
Makefile:612: recipe for target 'egl_system.lo' failed
make[3]: *** [egl_system.lo] Error 1




root@impala:/root(15)# emerge --info '=dev-libs/DirectFB-1.7.1::gentoo'
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.12.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     8165224 total,   1248728 free
KiB Swap:   50331640 total,  50092556 free
Timestamp of tree: Sun, 05 Jan 2014 05:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
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.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24
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 x11 science sunrise sage-on-gentoo x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -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="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
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"
PORTDIR="/usr/portage_impala"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/sage-on-gentoo /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac accessibility acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid 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 void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON




root@impala:/root(16)# emerge -pqv '=dev-libs/DirectFB-1.7.1::gentoo'
[ebuild     U ] dev-libs/DirectFB-1.7.1 [1.6.3-r1] USE="X alsa%* cddb%* doc egl%* gif gstreamer%* jpeg jpeg2k mad%* mmx mng opengl png sdl sse svg tiff%* truetype v4l vdpau vorbis%* xine%* zlib -bmp -debug -divine% -drmkms% -dynload -fbcon -fusiondale% -fusionsound% -gles2 -imlib2 -input_hub -mpeg2 -mpeg3% -multicore -oss% -pnm -sawman% -static-libs -swfdec% -timidity% -tremor% -webp%" INPUT_DEVICES="evdev keyboard mouse -dynapro -elo2300 -joystick -lirc -mutouch -tslib" VIDEO_CARDS="-intel -mach64 -mga -neomagic (-nsc) -nvidia -r128 -radeon -s3 -sis -tdfx -via -vmware"
Comment 1 Rafał Mużyło 2014-01-05 11:08:06 UTC
There's something interesting a bit earlier:
checking for MESA... no
configure: WARNING:
*** gl egl libdrm gbm packages not found -- Building without MESA support.

So, what does config.log say about this ? What does pkg-config say about these packages ?
Comment 2 PaX Team 2014-01-05 12:57:39 UTC
systems/egl/egl_system.c seems to define RASPBERRY_PI unconditionally which in turn enables code that refers to EGL_DISPMANX_WINDOW_T and results in compile failure presumably for any target that's not an rpi (at least that typedef is nowhere to be found here). commenting out the #define is not enough as at around line 151 there's a reference to nativewindow outside of the rpi ifdef. fixing that will then result in compile errors elsewhere for me:

idirectfbvideoprovider_xine_vdpau.c:64:34: fatal error: xine/video_out_vdpau.h: No such file or directory

so it looks like this release is bleeding from several wounds...
Comment 3 Julian Ospald 2014-01-08 12:56:04 UTC
according to the homepage, 1.8.0 will be out "shortly"

maybe report this upstream?
Comment 4 Billy DeVincentis 2014-01-15 21:42:31 UTC
Why is this package not getting masked? If it doesn't emerge, why is it there?
Comment 5 Julian Ospald 2014-01-15 22:06:36 UTC
(In reply to Billy DeVincentis from comment #4)
> Why is this package not getting masked? If it doesn't emerge, why is it
> there?

we don't hardmask packages, just because there is a bug in ~arch (which means unstable branch)

It emerges perfectly fine with egl useflag disabled. If you have a fix, please share it.
Comment 6 Juergen Rose 2014-02-13 15:46:47 UTC
(In reply to Julian Ospald (hasufell) from comment #5)
> (In reply to Billy DeVincentis from comment #4)
> > Why is this package not getting masked? If it doesn't emerge, why is it
> > there?
> 
> we don't hardmask packages, just because there is a bug in ~arch (which
> means unstable branch)
> 
> It emerges perfectly fine with egl useflag disabled. If you have a fix,
> please share it.

Only set USE=-egl does not help, 'USE=-egl emerge -uvDN DirectFB' fails with:

root@leopard:/home/rose/Txt/Configurations/usr/src/linux(45)# USE=-egl emerge -uvDN DirectFB

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! The ebuild selected to satisfy "media-libs/mesa[gbm,egl?,gles2?]" has unmet requirements.
- media-libs/mesa-9.2.5::gentoo USE="classic gallium gbm llvm llvm-shared-libs nptl openvg vdpau xa xvmc -bindist -debug -egl -gles1 -gles2 -opencl -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -wayland -xorg" ABI_X86="64 -32 -x32" VIDEO_CARDS="nouveau -freedreno -i915 -i965 -ilo -intel -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"

  The following REQUIRED_USE flag constraints are unsatisfied:
    openvg? ( egl )

  The above constraints are a subset of the following complete expression:
    llvm? ( gallium ) openvg? ( egl gallium ) opencl? ( gallium llvm-shared-libs video_cards_r600? ( r600-llvm-compiler ) video_cards_radeon? ( r600-llvm-compiler ) video_cards_radeonsi? ( r600-llvm-compiler ) ) gles1? ( egl ) gles2? ( egl ) r600-llvm-compiler? ( gallium llvm any-of ( video_cards_r600 video_cards_radeonsi video_cards_radeon ) ) wayland? ( egl ) xa? ( gallium ) xorg? ( gallium ) video_cards_freedreno? ( gallium ) video_cards_intel? ( any-of ( classic gallium ) ) video_cards_i915? ( any-of ( classic gallium ) ) video_cards_i965? ( classic ) video_cards_ilo? ( gallium ) video_cards_nouveau? ( any-of ( classic gallium ) ) video_cards_radeon? ( any-of ( classic gallium ) ) video_cards_r100? ( classic ) video_cards_r200? ( classic ) video_cards_r300? ( gallium ) video_cards_r600? ( gallium ) video_cards_radeonsi? ( gallium llvm ) video_cards_vmware? ( gallium )


And 'USE="-openvg -egl" emerge -uvN DirectFB' fails either:
...
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../lib/fusionsound -I../../include -I../../lib -I../../lib/fusionsound -I../../src -I../../systems -DDATADIR=\"/usr/share/directfb-1.7.1\" -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DHAVE_GSTREAMER_1_0_API -DDATADIR=\"/usr/share/directfb-1.7.1\" -I../../lib/dvc -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -ffast-math -march=native -O2 -pipe -D_GNU_SOURCE -std=gnu99 -c idirectfbvideoprovider_gif.c  -fPIC -DPIC -o .libs/idirectfbvideoprovider_gif.o
idirectfbvideoprovider_xine.c:170:1: warning: no previous prototype for 'BufferThread' [-Wmissing-prototypes]
 BufferThread( DirectThread *self, void *arg )
 ^
idirectfbvideoprovider_xine.c: In function 'event_listener':
idirectfbvideoprovider_xine.c:1468:21: warning: 'xine_mrl_reference_data_t' is deprecated (declared at /usr/include/xine.h:1983) [-Wdeprecated-declarations]
                     xine_mrl_reference_data_t *ref = event->data;
                     ^
idirectfbvideoprovider_xine.c: In function 'BufferThread':
idirectfbvideoprovider_xine.c:191:21: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
                write( fd, buf, len );
                     ^
idirectfbvideoprovider_xine_vdpau.c:64:34: fatal error: xine/video_out_vdpau.h: No such file or directory
 #include <xine/video_out_vdpau.h>
                                  ^
compilation terminated.
Makefile:1031: recipe for target 'idirectfbvideoprovider_xine_vdpau.lo' failed
make[4]: *** [idirectfbvideoprovider_xine_vdpau.lo] Error 1


Is there not any workaround, which enables the installation of DirectFB-1.7.1 on ~amd64 systems?
Comment 7 Julian Ospald 2014-02-13 15:57:34 UTC
see bug 499740
Comment 8 Juergen Rose 2014-02-14 09:18:45 UTC
(In reply to Julian Ospald (hasufell) from comment #7)
> see bug 499740

'USE="-xine -egl" emerge -v1 DirectFB' worked.
Comment 9 Julian Ospald 2014-04-05 16:15:08 UTC
no fix since 4 months, no idea how to report bugs upstream

+  05 Apr 2014; Julian Ospald <hasufell@gentoo.org> package.mask:
+  mask >=dev-libs/DirectFB-1.7.1 wrt #499740 and #497124
Comment 10 SpanKY gentoo-dev 2014-10-18 21:46:54 UTC
looks like the egl logic is specific to the Raspberry Pi rather than sticking to the standard OpenGLES API
Comment 11 SpanKY gentoo-dev 2014-10-18 21:59:40 UTC
should be all set now in the tree; thanks for the report!

Commit message: Do not hard define raspberry pi support for egl targets
http://sources.gentoo.org/dev-libs/DirectFB/DirectFB-1.7.1.ebuild?r1=1.3&r2=1.4