Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DirectFB emerge failure
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
Solra Bizna
n00b
n00b


Joined: 07 May 2005
Posts: 40

PostPosted: Thu Mar 09, 2006 3:39 pm    Post subject: DirectFB emerge failure Reply with quote

I tried both 0.9.22 and 0.9.24, and neither compiles. Both fail with the same error:
Code:
/usr/include/linux/wait.h: In function `wait_on_bit':
/usr/include/linux/wait.h:380: error: implicit declaration of function `test_bit'
/usr/include/linux/wait.h: In function `wait_on_bit_lock':
/usr/include/linux/wait.h:404: error: implicit declaration of function `test_and_set_bit'

These functions are defined in <asm/bitops.h>, but even manually including it in <linux/wait.h> failed to fix this. (I restored my headers afterwards...)
This was mentioned in another topic, but the solution mentioned there, "don't use DirectFB," isn't an option for me -- I'm developing for this library. :|
-:sigma.SB
Back to top
View user's profile Send private message
hiyuh
n00b
n00b


Joined: 18 Jan 2006
Posts: 11
Location: Japan

PostPosted: Fri Mar 10, 2006 10:13 pm    Post subject: Reply with quote

This issue can be resolved, maybe.
See https://bugs.gentoo.org/show_bug.cgi?id=116711

And then,
ppc and/or ~ppc keyworded packages should be work, IMHO.
So, if you got simply emerge failed like this,
I recommend to search bugzilla.

FYI, DirectFB is nice for me.
If you would like to develop with this libraries,
masking "fusion" as a USE flag by default ppc profile will be a PITA, too.
Back to top
View user's profile Send private message
Solra Bizna
n00b
n00b


Joined: 07 May 2005
Posts: 40

PostPosted: Sat Mar 11, 2006 12:41 am    Post subject: Reply with quote

I thought I'd tried that fix... but it worked this time.
Shouldn't linux-headers-2.6.11-r4 be marked stable then?
-:sigma.SB
Back to top
View user's profile Send private message
hiyuh
n00b
n00b


Joined: 18 Jan 2006
Posts: 11
Location: Japan

PostPosted: Sat Mar 11, 2006 3:08 am    Post subject: Reply with quote

Maybe, no.
In general, when update the kernel headers for userland, we should be more carefully, IMHO.
ATM, when update the headers, it requires to re-compile entire userland apps/libs.

In this case, the compilation problem causes -Werror-implicit-declaration-function have been
used when compiling DirectFB.
Then, -Werror-implicit-declaration-function forces to compile error implicit declaration function
in wait.h as a part of kernel headers, IMHO.
It's not a part of DirectFB.

As you know, the kernel headers for userland may be used our entire userland apps/libs.
So, to update it might affect entire userland apps/libs.
If you had updated it, you had seen some warnings when update it via linux-headers ebuild.
Some strict syntacx chacking is useful for development to prevent implicit bugs, though.
But, sometimese, to use -Werror-* or so instead of -Wall is not usefull for compilation monkey,
like I and you. :P

Anyway,
you can put ~ppc or so (like non-ppc) into /etc/make.conf or /etc/portage/package.keywords
at your own risk.
Then, if it seems quite stable and you want to feedback for gentoo/upstream,
file a bug as "it is stable on ppc!" for a keyword request in bugzilla.
It will be appricated as dev help.
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