Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181993 - x11-libs/cairo-1.4.8 fails to compile with directfb flag
Summary: x11-libs/cairo-1.4.8 fails to compile with directfb flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
: 182004 182158 182162 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-14 07:11 UTC by R Bar-On
Modified: 2007-06-15 19:33 UTC (History)
9 users (show)

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


Attachments
seems to do the job and be what was intended to be (directfb.patch,438 bytes, patch)
2007-06-14 18:26 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description R Bar-On 2007-06-14 07:11:38 UTC
Last output from emerge:

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/directfb -DPNG_NO_MMX_CODE -I/usr/include/libpng12 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -fno-strict-aliasing -O2 -march=prescott -pipe -fomit-frame-pointer -finline-limit=1200 -MT cairo-xlib-surface.lo -MD -MP -MF .deps/cairo-xlib-surface.Tpo -c cairo-xlib-surface.c -o cairo-xlib-surface.o >/dev/null 2>&1
In file included from /usr/include/directfb/direct/debug.h:39,
                 from cairo-directfb-surface.c:45:
/usr/include/directfb/direct/system.h:33: warning: function declaration isn't a prototype
/usr/include/directfb/direct/system.h:34: warning: function declaration isn't a prototype
In file included from cairo-directfb-surface.c:46:
/usr/include/directfb/direct/memcpy.h:35: warning: function declaration isn't a prototype
/usr/include/directfb/direct/memcpy.h:36: warning: function declaration isn't a prototype
cairo-directfb-surface.c: In function '_directfb_format_to_content':
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_UNKNOWN' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_ARGB1555' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_RGB16' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_RGB24' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_YUY2' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_RGB332' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_UYVY' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_I420' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_YV12' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_LUT8' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_ALUT44' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_AiRGB' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_NV12' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_NV16' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_ARGB2554' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_ARGB4444' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_NV21' not handled in switch
cairo-directfb-surface.c:159: warning: enumeration value 'DSPF_AYUV' not handled in switch
cairo-directfb-surface.c: In function 'directfb_to_cairo_format':
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_UNKNOWN' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_ARGB1555' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_RGB16' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_RGB24' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_YUY2' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_RGB332' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_UYVY' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_I420' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_YV12' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_LUT8' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_ALUT44' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_AiRGB' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_NV12' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_NV16' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_ARGB2554' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_ARGB4444' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_NV21' not handled in switch
cairo-directfb-surface.c:195: warning: enumeration value 'DSPF_AYUV' not handled in switch
cairo-directfb-surface.c: In function '_directfb_acquire_font_cache':
cairo-directfb-surface.c:1272: warning: enumeration value 'CAIRO_FORMAT_ARGB32' not handled in switch
cairo-directfb-surface.c:1272: warning: enumeration value 'CAIRO_FORMAT_RGB24' not handled in switch
cairo-directfb-surface.c: At top level:
cairo-directfb-surface.c:1575: error: '_cairo_directfb_is_similar' undeclared here (not in a function)
make[2]: *** [cairo-directfb-surface.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.4.8/work/cairo-1.4.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.4.8/work/cairo-1.4.8'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.4.8 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  cairo-1.4.8.ebuild, line 61:   Called die

Compiling works fine without the directfb flag.

Reproducible: Always

Steps to Reproduce:
1. add directfb flag to /etc/make.conf
2. emerge =x11-libs/cairo-1.4.8
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 11:30:17 UTC
*** Bug 182004 has been marked as a duplicate of this bug. ***
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2007-06-14 13:59:28 UTC
Does this work with cairo 1.4.6? Which version of directfb headers and such? What's your emerge info?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 14:23:22 UTC
(In reply to comment #2)
> Does this work with cairo 1.4.6? Which version of directfb headers and such?
> What's your emerge info?

Yeah, it worked just fine w/ lots of previous versions... 

[ebuild   R   ] dev-libs/DirectFB-1.0.0  USE="-debug fbcon -fusion gif jpeg mmx png sdl sse sysfs truetype v4l v4l2 zlib" 0 kB 

Portage 2.1.2.10 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r3 i686)
=================================================================
System uname: 2.6.21-gentoo-r3 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System release 1.13.0_alpha12
Timestamp of tree: Thu, 14 Jun 2007 12:00:08 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17, 2.17.50.0.15, 2.17.50.0.16
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /usr/share/X11/xkb"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.osuosl.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="cs en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/beryl /usr/local/overlays/enlightenment"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X X509 a52 aac aalib acl acpi alsa amr ao asf audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdparanoia cdr chroot cli cpudetection cracklib crypt cscope css cups curl curlwrappers daap dbus dbx dga directfb dri dts dv dvb dvd dvdr dvdread encode exif expat fam fame fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb ftp fuse gd gdbm ggi gif gimp glibc-omitfp glitz glut gmp gphoto2 gpm graphviz gs gstreamer gtk hal ical iconv icq idn imagemagick imap imlib inifile ipv6 irda jack javascript jbig joystick jpeg jpeg2k kdeenablefinal kdehiddenvisibility kipi lame lcms libcaca libg++ libnotify libsamplerate lirc live lm_sensors logrotate lzo mad maildir matroska midi mikmod mime mjpeg mmap mmx mmxext mng modplug moznopango mp3 mp4 mpeg mplayer mudflap multiuser musepack musicbrainz ncurses network network-cron nfs nls no-old-linux nodrm nptl nptlonly nsplugin nvidia offensive ogg openal opengl openmp pam pcre pdf perl png portaudio ppds python qt3 qt3support quicktime rar readline real reflection rle ruby samba sdl sdl-image session skey sms sndfile speex spell spl sqlite sqlite3 sse ssl startup-notification subtitles svg symlink syslog tcpd theora threads threadsafe thumbnail tiff truetype unicode urandom usb v4l v4l2 vcd vim-syntax vim-with-x vorbis wavpack win32codecs wmf x264 x86 xattr xcomposite xine xinerama xinetd xml xmlrpc xorg xosd xpm xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="emu10k1 bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="joystick keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" LIRC_DEVICES="cph06x" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidiUnset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 R Bar-On 2007-06-14 14:33:33 UTC
(In reply to comment #2)

yep, it worked with 1.4.6.

emerge --info:
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-kamikaze5 i686)
=================================================================
System uname: 2.6.21-kamikaze5 i686 Genuine Intel(R) CPU T2050 @ 1.60GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 14 Jun 2007 12:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/"
LC_ALL="en_US.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa arts bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus directfb dri dvd dvdr dvdread eds emboss encode esd evo fam fbcon firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libg++ mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tetex tiff truetype truetype-fonts type1 type1-fonts unicode vorbis win32codecs x86 xcomposite xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga fbdev i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Alexis Ballier gentoo-dev 2007-06-14 18:26:48 UTC
Created attachment 122058 [details, diff]
seems to do the job and be what was intended to be

this patch should do what was intended...
it doesn't seem to have something to do with directfb version but rather upstream not even trying to compile it before releasing :/
Comment 6 R Bar-On 2007-06-14 19:17:10 UTC
confirmed working with patch.

Thanks :)
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2007-06-15 16:30:20 UTC
upstream doesn't use directfb. upstream goes off of what directfb developers provide. The directfb developers provided a bad patch.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2007-06-15 16:36:52 UTC
Fixed. the ebuild is currently masked so didn't rev bump.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-06-15 17:41:45 UTC
*** Bug 182158 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-06-15 19:33:02 UTC
*** Bug 182162 has been marked as a duplicate of this bug. ***