Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77034 - clanlib 0.6.5-r2 does not compile with DirectFB-0.9.21
Summary: clanlib 0.6.5-r2 does not compile with DirectFB-0.9.21
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 08:25 UTC by Andreas Bulling
Modified: 2005-03-01 17:42 UTC (History)
3 users (show)

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


Attachments
Patch (ClanLib-0.6.5-directfb+ttf.patch,1.94 KB, patch)
2005-02-10 03:37 UTC, Matteo Settenvini
Details | Diff
Corrected patch (ClanLib-0.6.5-directfb+ttf.patch,1.41 KB, patch)
2005-02-10 03:43 UTC, Matteo Settenvini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Bulling 2005-01-07 08:25:10 UTC
compiling clanlib-0.6.5-r2 fails with the following error message:

Compiling Sources/Display/Display/DirectFB/target_directfb.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function `virtual unsigned int CL_Target_DirectFB::get_red_mask() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:150: error: `DSPF_RGB15' undeclared (first use this function)
Sources/Display/Display/DirectFB/target_directfb.cpp:150: error: (Each undeclared identifier is reported only once for each function it appears in.)
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function `virtual unsigned int CL_Target_DirectFB::get_green_mask() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:173: error: `DSPF_RGB15' undeclared (first use this function)
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function `virtual unsigned int CL_Target_DirectFB::get_blue_mask() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:196: error: `DSPF_RGB15' undeclared (first use this function)
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function `virtual unsigned int CL_Target_DirectFB::get_alpha_mask() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:218: error: `DSPF_RGB15' undeclared (first use this function)
make: *** [Libs/Intermediate/target_directfb.o] Error 1
make: *** Waiting for unfinished jobs....
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. 

Reproducible: Always
Steps to Reproduce:
1. emerge pingus (and therefore clanlib-0.6.5-r2)





Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jul 30 2004, 11:38:28)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.6.3, 1.7.9, 1.8.5-r2, 1.9.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://130.230.54.100/gentoo-portage"
USE="x86 3dnow X aalib acl acpi acpi4linux alsa amd apache2 arts avi berkdb
bitmap-fonts cdparanoia cdr clamav crypt cscope cups curl dga dnd dvd emacs
encode ethereal exiscan-acl faad fam fbcon fla flac fltk foomaticdb fortran gd
gdbm gif gimp gphoto2 gtk gtk2 gtkhtml guile imagemagick imap imlib ipv6 java
jpeg kde ldap libclamav libwww lids lirc mad maildir md5sum mikmod mmx motif
mozilla mpeg music mysql mysqlssl nas ncurses nls nptl oggvorbis opengl oss pam
pdflib perl png python qt quicktime quotas readline samba sasl scanner sdl
session slang smime snmp speex spell sse ssl svga tcltk tcpd tetex tiff truetype
usb userlocales v4l v4l2 winbind xfs xine xinerama xml xml2 xmms xv xvid zlib"
Comment 1 Matteo Settenvini 2005-02-10 03:03:40 UTC
I can second this. It appears that DSPF_RGB15 doesn't exist in directfb headers anymore. The most near things that there is left is DSPF_RGB16, so I think that just erasing the lines referring to DSPF_RGB15 will be okay.

If this approach works, I'll submit a patch.
Comment 2 Matteo Settenvini 2005-02-10 03:37:59 UTC
Created attachment 50908 [details, diff]
Patch

Ok, this should fix the issue, but please test it (I mean, test if programs
that make use of ClanLib work thereafter).
As a bonus, fixes also a TTF compilation issue with Freetype2. ;-)
Comment 3 Matteo Settenvini 2005-02-10 03:43:40 UTC
Created attachment 50909 [details, diff]
Corrected patch

Whoops, correcting the patch (it included more diffs than necessary due to
other gentoo patches).
Comment 4 Hans-Christian Armingeon 2005-02-20 02:02:32 UTC
*** Bug 82652 has been marked as a duplicate of this bug. ***
Comment 5 Rubens 2005-02-24 08:15:56 UTC
Scuse me.. I'm not very skilled with patches... What command should I run to patch clanlib emerge?

I tried with
# patch clanlib-0.6.5-r2.ebuild ClanLib-0.6.5-directfb+ttf.patch

but it doesn't work. This is my output:

patching file clanlib-0.6.5-r2.ebuild
Hunk #1 FAILED at 147.
Hunk #2 FAILED at 168.
Hunk #3 FAILED at 189.
Hunk #4 FAILED at 210.
4 out of 4 hunks FAILED -- saving rejects to file clanlib-0.6.5-r2.ebuild.rej
can't find file to patch at input line 41
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -u ClanLib-0.6.5/Sources/TTF/font_ttf.cpp ClanLib-0.6.5.new/Sources/TTF/font_ttf.cpp
|--- ClanLib-0.6.5/Sources/TTF/font_ttf.cpp     2002-01-15 17:18:48.000000000 +0100
|+++ ClanLib-0.6.5.new/Sources/TTF/font_ttf.cpp 2005-02-10 12:25:04.000000000 +0100
--------------------------
File to patch:

bye
Comment 6 Matteo Settenvini 2005-02-24 13:24:27 UTC
Try following these steps:

* unpack the source ( ClanLib-0.6.5-1.tar.gz )
* copy the patch in the sources topdir (ClanLib-0.6.5/)
* "cd" into it ;-)
* patch -p1 < ClanLib-0.6.5-directfb+ttf.patch

Please tell me if it still doesn't work.
Comment 7 SpanKY gentoo-dev 2005-03-01 17:42:47 UTC
the correct fix is to change it from DSPF_RGB15 to DSPF_ARGB1555 instead of just deleting it

see this upstream change:
http://www.directfb.org/index.php/viewcvs.cgi/DirectFB/include/directfb.h.diff?r1=1.194&r2=1.195

added a patch to do exactly that to cvs, thanks !