Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge glib fails-Can't determine values for POLL* constants
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
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Thu Apr 21, 2005 12:28 pm    Post subject: emerge glib fails-Can't determine values for POLL* constants Reply with quote

i'm compiling glib (as part of emerge -avu world). I get this error, i have no clue what it means. I can't find anything anywhere in the forums about this.

Code:

...
...
...
checking byte contents of PTHREAD_MUTEX_INITIALIZER... 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
checking whether to use assembler code for atomic operations... powerpc
checking value of POLLIN...
checking value of POLLOUT... 4
checking value of POLLPRI... 2
checking value of POLLERR... 8
checking value of POLLHUP... 16
checking value of POLLNVAL... 32
configure: error: Could not determine values for POLL* constants

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/glib-2.6.3/work/glib-2.6.3/config.log

!!! ERROR: dev-libs/glib-2.6.3 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

I can post the config.log if needed, but it's pretty big.
I hope somebody out there can help!
Thanks.
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Thu Apr 21, 2005 1:06 pm    Post subject: Reply with quote

I don't have a solution for your problem unfortunately, but I just want to note that the POLL* variables are defined by stuff coming with glibc, so at a first sight something must be wrong with glibc itself. It would be useful to see the last part of the log file to (maybe) pinpoint the problem.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Thu Apr 21, 2005 1:57 pm    Post subject: Reply with quote

Ok, so i shut my ibook down, did something else. Came back, and out of boredom decided to try compiling glib again, and it worked fine. So apparently a reboot was all i needed. However, as a linux user i shouldn't have to reboot! I'd love to know what caused that. I'd updated gettext earlier, and been given this message:
Code:

 * Any package that linked against the previous version
 * of gettext will have to be rebuilt.
 * Please 'emerge gentoolkit' and run:
 * revdep-rebuild --soname libintl.so.2


So i did. Wonder if that had anything to do with it?
Ah well, it's working now, so i'm not too bothered, just don't think a reboot should have been necessary.
Thanks, bruda. :-)
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Thu Apr 21, 2005 3:43 pm    Post subject: Reply with quote

You are welcome, though I did not quite do much. ;-)

As for the reboot being necessary or not, most of the time it is not necesssary but I noticed now and then--especially when rebuilding core packages such as glibc--that sometimes it helps. I am guessing that this is caused by some application that was running previously and still loads the old shared object (that got overwritten on disk in the meantime); since the said old library is loaded other applications will use it, which is out of sync with everything else. So for instance you are linking against a newer pthread but the older one being loaded the runtime system will use that, and hence the conflict. Since most (all!) applications use glibc, this is highly likely to happen when upgrading glibc. In any case, this is nothing more than an educated guess.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Fri Apr 22, 2005 11:08 am    Post subject: Reply with quote

That does make sense. The other thing that may have been the cause was having the pre-emptible kernel option enabled in the kernel. After my delayed success with glib, i had a few other compile errors, which lead me to some threads about kernel pre-emption being pretty broken on ppc. I used the livecd to recompile my kernel without pre-emption, and nothing has gone wrong since (fingers very much crossed!).
Well, either way, seems the problem is solved.
Thanks!
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
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