Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 246525

Summary: app-office/openoffice-3.0.0 configure fails with "libGL not installed or functional"
Product: Gentoo Linux Reporter: Graham <gman>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
Emerge --info

Description Graham 2008-11-12 19:23:08 UTC
openoffice-3.0.0 does not get past the configure stage.  I have openGL installed correctly (AFAIK) but the configure fails thus:

...
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for main in -lGL... no
configure: error: libGL not installed or functional
make: *** [stamp/build] Error 1
...

Can anyone tell me what it is checking for?

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -u openoffice

Actual Results:  
Configure fails before build starts

Expected Results:  
Compile openoffice
Comment 1 Wormo (RETIRED) gentoo-dev 2008-11-13 06:00:32 UTC
Please post your 'emerge --info' output, and also output of 'eselect opengl list'
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-14 03:09:58 UTC
Also attach the config.log to this bug report.
Comment 3 Filip Pytloun 2008-12-02 21:31:17 UTC
Created attachment 174105 [details]
Build log

Log of building openoffice. Down you can see an error on which it failed.
Comment 4 Filip Pytloun 2008-12-02 21:31:59 UTC
Created attachment 174106 [details]
Emerge --info

Emerge informations
Comment 5 Filip Pytloun 2008-12-02 21:35:01 UTC
Hello,
I have the same problem, I get "configure: error: libGL not installed or functional" and fail.
I gave build.log and emerge --info to an attachments. Please have a look on it.
P.S.: Sorry if I did something wrong, I'm here for the first time.
Comment 6 Graham 2008-12-11 13:46:40 UTC
This seems to be related to nvidia's GLX implementation.  You can work around the problem by selecting the xorg opengl before compiling.  OpenOffice then compiles fine and you can change back to nvidia's opengl and it works fine.

So:

eselect opengl set xorg-x11
emerge -u openoffice
eselect opengl set nvidia
Comment 7 Harrison Metzger 2009-01-03 15:32:46 UTC
The workaround in #6 From Graham works for me. However, I won't be able to "go back" to nvidia because I'm using their beta drivers manually installed. Is this a problem with the nvidia drivers, or a problem with openoffice's ./configure?
Comment 8 Martin 2009-07-12 08:52:17 UTC
I had the same problem. #6 did not work for my situation. Probably a driver/driver building isue on my side. On my system I solved it with:

Shut X down, rmmod nvidia and run nvidia-uninstaller.
This will 'completely' remove the nvidia driver that came directly from the factory website.

Now emerge --sync and emerge nvidia-drivers and emerge nvidia-settings.
Check your xorg.conf you have: Load "glx"
Load the nvidia module and run: eselect opengl set nvidia

Now you can start X again and maybe your openoffice _will_ build.