Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DirectFB compilation error on Tibook G4 400MHz
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
kodi_gda
n00b
n00b


Joined: 09 Dec 2004
Posts: 6

PostPosted: Thu Dec 09, 2004 9:37 am    Post subject: DirectFB compilation error on Tibook G4 400MHz Reply with quote

Hello.

I'm installing gentoo on Tibook. emerged system flawlessly, but now i'm trying to build rest of world. Emerge DirectFB aborts with following messages:

Quote:

Making all in keyboard
make[3]: Entering directory `/var/tmp/portage/DirectFB-0.9.20-r1/work/DirectFB-0.9.20/inputdrivers/keyboard'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O3 -ffast-math -pipe -O2 -mcpu=7400 -maltivec -mabi=altivec -pipe -fsigned-char -mpowerpc-gfxopt -ffast-math -fomit-frame-pointer -DFUSION_FAKE -Werror-implicit-function-declaration -c keyboard.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O3 -ffast-math -pipe -O2 -mcpu=7400 -maltivec -mabi=altivec -pipe -fsigned-char -mpowerpc-gfxopt -ffast-math -fomit-frame-pointer -DFUSION_FAKE -Werror-implicit-function-declaration -c keyboard.c -fPIC -DPIC -o .libs/keyboard.o
In file included from /usr/include/linux/wait.h:12,
from /usr/include/linux/keyboard.h:4,
from keyboard.c:39:
/usr/include/linux/list.h: In function `__list_add_rcu':
/usr/include/linux/list.h:94: error: implicit declaration of function `__memory_barrier'
In file included from /usr/include/linux/thread_info.h:20,
from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/wait.h:15,
from /usr/include/linux/keyboard.h:4,
from keyboard.c:39:
/usr/include/linux/bitops.h: In function `get_bitmask_order':
/usr/include/linux/bitops.h:78: error: implicit declaration of function `fls'
make[3]: *** [keyboard.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20-r1/work/DirectFB-0.9.20/inputdrivers/keyboard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20-r1/work/DirectFB-0.9.20/inputdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20-r1/work/DirectFB-0.9.20'
make: *** [all-recursive-am] Error 2

linux26-headers are 2.6.8-r1.

Please help :cry:
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Dec 09, 2004 7:39 pm    Post subject: Reply with quote

Interesting. I'm getting the exact same error as well. Seeing that DirectFB has not had an official release for over a year now, it is no wonder that it does not work with newer kernel headers as so much stuff has changed. I will try the CVS version which has had some changes made very recently and report back...
Back to top
View user's profile Send private message
kodi_gda
n00b
n00b


Joined: 09 Dec 2004
Posts: 6

PostPosted: Thu Dec 09, 2004 9:08 pm    Post subject: Reply with quote

DiskBreaker wrote:
Interesting. I'm getting the exact same error as well. Seeing that DirectFB has not had an official release for over a year now, it is no wonder that it does not work with newer kernel headers as so much stuff has changed. I will try the CVS version which has had some changes made very recently and report back...


hmm - sorry - i'm rather noob in ppc-linux stuff :) But is directfb support needed for linux on this system?
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Dec 09, 2004 9:21 pm    Post subject: Reply with quote

kodi_gda wrote:
But is directfb support needed for linux on this system?

No, you just need it for some games and apps like qingy. I haven't had any use for it really but it's still too bad that it won't compile. The current CVS version stops with the same compilation error.
Back to top
View user's profile Send private message
kodi_gda
n00b
n00b


Joined: 09 Dec 2004
Posts: 6

PostPosted: Fri Dec 10, 2004 8:31 am    Post subject: Reply with quote

ok, thank you for your help :)
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Sun Mar 06, 2005 5:26 pm    Post subject: Reply with quote

Having the same error withDirectFB-0.9.21 . Has anyone overcome the problem?

Code:

In file included from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from keyboard.c:42:
/usr/include/linux/list.h: In function `__list_add_rcu':
/usr/include/linux/list.h:94: error: implicit declaration of function `__memory_barrier'
In file included from /usr/include/linux/thread_info.h:20,
                 from /usr/include/linux/spinlock.h:12,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from keyboard.c:42:
/usr/include/linux/bitops.h: In function `get_bitmask_order':
/usr/include/linux/bitops.h:78: error: implicit declaration of function `fls'
make[3]: *** [keyboard.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers/keyboard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-libs/DirectFB-0.9.21 failed.
!!! Function src_compile, Line 87, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Mon Mar 07, 2005 7:45 pm    Post subject: Reply with quote

Yeah it's the same with the recently released DirectFB 0.9.22

Someone should post a bugreport...
_________________
There's too much blood in my coffeine system...
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Mon Mar 07, 2005 10:11 pm    Post subject: Reply with quote

I used to have similar problems, but in the meantime they went away without any action on my behalf (sic!). DirectFB 0.9.21 builds fine on my Tibook rev III (Ivory).

This being said, I am getting precisely your errors when attempting to build on my Powermac G5 (dusl 2GHz) with linux26-headers in place. The location of the error suggests however that the problem lies in the kernel headers, so replacing temporarily the headers with linux-headers solves the problem quite nicely. Given as I said the place of the error you may want to try this even if you are not on PPC64.

Hope this helps,
Stefan
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Tue Mar 08, 2005 1:20 am    Post subject: Reply with quote

bruda wrote:
I used to have similar problems, but in the meantime they went away without any action on my behalf (sic!). DirectFB 0.9.21 builds fine on my Tibook rev III (Ivory).

This being said, I am getting precisely your errors when attempting to build on my Powermac G5 (dusl 2GHz) with linux26-headers in place. The location of the error suggests however that the problem lies in the kernel headers, so replacing temporarily the headers with linux-headers solves the problem quite nicely. Given as I said the place of the error you may want to try this even if you are not on PPC64.

Hope this helps,
Stefan


"replacing temporarily the headers with linux-headers solves the problem", OK how do you do that? :?
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Tue Mar 08, 2005 5:36 am    Post subject: Reply with quote

Hei
I had problems recently with directFB and you should be aware of the following portlog-info output..
Quote:
=== 2005-03-03 20:28 ==== DirectFB-0.9.21 ===
= /var/log/portage/3776-DirectFB-0.9.21.log =
...
* All video drivers will be built since you did not specify
* via the VIDEO_CARDS variable what video card you use.
* DirectFB supports: ati128 cle266 cyber5k i810 mach64 matrox neomagic nsc nvidia radeon savage sis315 tdfx unichromeall none
...
for example, if you had a nvidia video card, you could do the following.
# VIDEO_CARDS="nvidia" emerge -u DirectFB
...
* Disabling SDL since libSDL.so is broken
* econf: updating DirectFB-0.9.21/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating DirectFB-0.9.21/config.sub with /usr/share/gnuconfig/config.sub
...

=== 2005-03-03 20:28 ==== DirectFB-0.9.21 ===
= /var/log/portage/3777-DirectFB-0.9.21.log =
...
* Each DirectFB update in the 0.9.xx series
* breaks DirectFB related applications.
* Please run "revdep-rebuild" which can be
* found by emerging the package 'gentoolkit'.

directFB certainly broke things for me and revdep-rebuild produced a lot of output...
mvh

edit: the following are DirectFB's dependencies on my system:
Code:
dev-libs/DirectFB-0.9.21
NEEDED BY:
        * media-libs/libsdl-1.2.7-r3 (W)
        * media-libs/xine-lib-1.0 (W)
        * media-sound/xmms-1.2.10-r13 (W)
        * media-tv/tvtime-0.9.15 (W)
        * media-video/mplayer-1.0_pre6 (W)
        * media-video/xine-ui-0.99.3 (W)

dev-libs/DirectFB-0.9.21
HAS THESE DEPENDENCIES:
        * dev-lang/perl-5.8.5-r4 (S)
        * media-libs/freetype-2.1.9-r1 (WS)
        * media-libs/giflib-4.1.3 (W)
        * media-libs/jpeg-6b-r4 (W)
        * media-libs/libmpeg3-1.5.2 (W)
        * media-libs/libpng-1.2.8 (WS)
        * media-libs/libsdl-1.2.7-r3 (W)
        * sys-devel/gcc-3.4.3.20050110 (S)
        * sys-devel/patch-2.5.9 (S)

_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Tue Mar 08, 2005 2:20 pm    Post subject: Reply with quote

I am aware of the portlog-info output, thanks.
I would like to know how bruda went about "replacing temporarily the headers with linux-headers" to fix this problem. :?
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Tue Mar 08, 2005 2:34 pm    Post subject: Reply with quote

heavyt wrote:
"replacing temporarily the headers with linux-headers solves the problem", OK how do you do that? :?

Err, I meant:
Code:
emerge unmerge linux26-headers
emerge linux-headers
emerge DirectFB
emerge unmerge linux-headers
emerge linux26-headers

_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Tue Mar 08, 2005 3:20 pm    Post subject: Reply with quote

bruda wrote:
heavyt wrote:
"replacing temporarily the headers with linux-headers solves the problem", OK how do you do that? :?

Err, I meant:
Code:
emerge unmerge linux26-headers
emerge linux-headers
emerge DirectFB
emerge unmerge linux-headers
emerge linux26-headers


Yes it dawn on me what you meant after I submited my last post! I did those emerges and all is fine. :D Thanks bruda!
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Tue Sep 20, 2005 7:39 pm    Post subject: Reply with quote

this is also my problem... but there is no more linux-26-headers to solve the problem :-(

has anyone solved it until now??


fr3sh
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Sep 20, 2005 7:42 pm    Post subject: Reply with quote

First, ask yourself if you *really* need DirectFB, it's not very useful. Anyway, the kenrel headers have changed since this was posted, you'll need to emerge a 2.4 kernel headers set instead of linux-headers and then remerge your 2.6 kernel-headers after DirectFB is installed. No guarantee that it works.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Wed Sep 21, 2005 7:14 am    Post subject: Reply with quote

For some reason the DirectFB package is downloaded during the "emerge gnome xscreensaver" ??!!

No idea why... this package is needed...

I've already noticed, that the header changed *g*... i'll try this with the 2.4 one


thanks, fr3sh
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Wed Sep 21, 2005 1:15 pm    Post subject: Reply with quote

fr3sh wrote:
For some reason the DirectFB package is downloaded during the "emerge gnome xscreensaver" ??!!


Check your USE flags. There's one that pulls in DirectFB ("directfb" if I remember correctly).

Erik
_________________
Against stupidity the very gods
Themselves contend in vain.
-Johann Christoph Friedrich von Schiller (1801)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum