Unix Technical Forum

Xscreensaver

This is a discussion on Xscreensaver within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> When I attempt to emerge xscreensaver, gle always bombs out with: checking for shmat... yes checking for IceConnectionNumber in ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:08 AM
cameron
 
Posts: n/a
Default Xscreensaver

When I attempt to emerge xscreensaver, gle always bombs out with:

checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for glGetError in -lGL... no
configure: error: Cannot find required GL library

!!! ERROR: media-libs/gle-3.0.1-r2 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status
message.


So I figured I was just missing some opengl library some where. I
emerged opengl-update, (didn't fix the issue), I did an emerge opengl
and it installed some nvidia driver, (not too sure what the deal is
there but...), didn't fix the issue.

I thought it might be my USE flag,
(http://www.gentoo.org/doc/en/handboo...?part=2&chap=2
has a blurb about opengl), so I tried building gle with:

USE="opengl" emerge gle

but the same error. Does anyone know what library I need here or what I
need to emerge to fix this?

Thanks

-Cam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:08 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Xscreensaver

cameron enlightened us with:
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... yes
> checking for glGetError in -lGL... no
> configure: error: Cannot find required GL library


Check the config.log to see what's going on. You can find it in the
work directory, probably something like /var/tmp/gle-3.0.1-r2/work.

> I thought it might be my USE flag,
> (http://www.gentoo.org/doc/en/handboo...?part=2&chap=2
> has a blurb about opengl), so I tried building gle with:
>
> USE="opengl" emerge gle


Never use that! Read "man portage", and use /etc/portage/package.use.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:08 AM
cameron
 
Posts: n/a
Default Re: Xscreensaver

The config.log has:

..... snip ....
configure:3400: gcc -o conftest -O2 -march=i686 -fomit-frame-pointer
-pipe -Wall conftest.c -lGL -lSM -lICE -L/usr/X11R6/lib -lX11 -
lm 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char glGetError();

int main() {
glGetError()
; return 0; }

Even with this error, still not sure what to do about it....

-Cam


Sybren Stuvel wrote:
> cameron enlightened us with:
>
>>checking for shmat... yes
>>checking for IceConnectionNumber in -lICE... yes
>>checking for glGetError in -lGL... no
>>configure: error: Cannot find required GL library

>
>
> Check the config.log to see what's going on. You can find it in the
> work directory, probably something like /var/tmp/gle-3.0.1-r2/work.
>
>
>>I thought it might be my USE flag,
>>(http://www.gentoo.org/doc/en/handboo...?part=2&chap=2
>>has a blurb about opengl), so I tried building gle with:
>>
>>USE="opengl" emerge gle

>
>
> Never use that! Read "man portage", and use /etc/portage/package.use.
>
> Sybren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:08 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Xscreensaver

cameron enlightened us with:
> cannot find -lGL


Try playing around with opengl-update. XOrg comes with it's own GL
libs if I'm not mistaken.


Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:09 AM
cameron
 
Posts: n/a
Default Re: Xscreensaver

The directory
/usr/lib/opengl/xorg-x11/lib/
only had 1 file in it so I re-emerged xorg-x11 and it added 5 more files
to that dir. The compile then worked fine. I have no idea what
originally happened to those files, but it is all good now.

Thanks

-Cam

Sybren Stuvel wrote:
> cameron enlightened us with:
>
>>cannot find -lGL

>
>
> Try playing around with opengl-update. XOrg comes with it's own GL
> libs if I'm not mistaken.
>
>
> Sybren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 10:44 AM
drnick
 
Posts: n/a
Default Re: Xscreensaver


I found this thread via Google and while my problem was the same, the
conditions were different so I figured I'd post to help anyone else
that has the same issues. I was trying to emerge Gnome, and as part of
that did xscreensaver (the gle package also gives the same error). I
ran into the exact same problems as the original poster, but had a
different solution.

I ran *opengl-update --get-implementation * and found out that even
though I had rebuilt opengl, it was still using an older ATI
implementation that came along with some drivers. (You might see
nvidia if using one of thost cards). I ran *opengl-update xorg-x11 *
which changed me back to the x11 implementation, then tried emerging
gle and it worked fine. I was then able to emerge xscreensaver with no
problems.

Hurrah!


--
drnick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:19 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com