Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285226 - Cannot link to OpenGL libraries
Summary: Cannot link to OpenGL libraries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 17:34 UTC by Chris Trenkamp
Modified: 2009-09-17 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Trenkamp 2009-09-16 17:34:29 UTC
I've tried re-emerging mesa, glut, and ati-drivers, but I can't get the proper GL headers and libraries to install.

When ksysguard or plasma-runtime try to emerge, I get a bunch of 'Undefined reference to `insert OpenGL function here`'.

My graphics card is an HD4850.

Also, /usr/include/GL/GL.h doesn't exist.

Is there a quick-fix to this problem?


Reproducible: Didn't try





Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)  
=================================================================                                          
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_CPU_4400_@_2.00GHz-with-gentoo-1.12.11.1    
Timestamp of tree: Tue, 15 Sep 2009 04:00:03 +0000                                                         
app-shells/bash:     4.0_p28                                                                               
dev-java/java-config: 2.1.8-r1                                                                             
dev-lang/python:     2.6.2-r1                                                                              
dev-util/cmake:      2.6.4                                                                                 
sys-apps/baselayout: 1.12.11.1                                                                             
sys-apps/sandbox:    1.6-r2                                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                                         
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                  
sys-devel/binutils:  2.18-r3                                                                               
sys-devel/gcc-config: 1.4.1                                                                                
sys-devel/libtool:   1.5.26                                                                                
virtual/os-headers:  2.6.27-r2                                                                             
ACCEPT_KEYWORDS="amd64"                                                                                    
CBUILD="x86_64-pc-linux-gnu"                                                                               
CFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"                                                             
CHOST="x86_64-pc-linux-gnu"                                                                                
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 apm arts berkdb bzip2 cdinstall cdparanoia cdr cli cracklib crypt css cups dbus dga dri dvd dvdr exif ffmpeg firefox flac fortran ftp gdbm gif gimp glut gpm gzip hal handbook hddtemp iconv ipv6 isdnlog java java6 javascript jpeg kde lame lm_sensors mad mmx mono mozilla mp3 mp4 mpeg mpi mplayer mudflap multilib mysql mysqli ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl php png pppd python qt4 raw readline reflection sdl session smp sockets speex spl sse sse2 ssl sysfs tcpd tiff unicode vorbis xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Chris Trenkamp 2009-09-16 17:42:34 UTC
Sorry, forgot to post some output:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libGL.so.1, needed by /usr/lib64/libplasma.so.3.0.0, not found (try using -rpath or -rpath-link)                              
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetDoublev'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXMakeCurrent'                                   
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glClearDepth'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glClearIndex'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXCreateGLXPixmap'                               
/usr/lib/libGLU.so.1: undefined reference to `glScalef'                                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glMatrixMode'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glHint'                                           
/usr/lib/libGLU.so.1: undefined reference to `glVertex3f'                                                  
/usr/lib64/libplasma.so.3.0.0: undefined reference to `glClearColor'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPopClientAttrib'                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glLineWidth'                                      
/usr/lib/libGLU.so.1: undefined reference to `glEvalPoint2'                                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTranslated'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPushClientAttrib'                               
/usr/lib/libGLU.so.1: undefined reference to `glEvalCoord1f'                                               
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glEndList'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glFlush'                                          
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetTexImage'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glVertexPointer'                                  
/usr/lib/libGLU.so.1: undefined reference to `glMap2f'                                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexImage1D'                                     
/usr/lib/libGLU.so.1: undefined reference to `glEvalPoint1'                                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDepthFunc'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDisableClientState'                             
/usr/lib/libGLU.so.1: undefined reference to `glEvalMesh2'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glLoadIdentity'                                   
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glColorMask'                                      
/usr/lib/libGLU.so.1: undefined reference to `glColor3f'                                                   
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glOrtho'                                          
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glIsEnabled'                                      
/usr/lib/libGLU.so.1: undefined reference to `glTranslatef'                                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXGetConfig'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glVertex2d'                                       
/usr/lib/libGLU.so.1: undefined reference to `glMultMatrixd'                                               
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glColor4ubv'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPointSize'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGenTextures'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPolygonMode'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glViewport'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetString'                                      
/usr/lib/libGLU.so.1: undefined reference to `glVertex2fv'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexGeni'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDepthMask'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPopAttrib'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glVertex2f'                                       
/usr/lib/libGLU.so.1: undefined reference to `glMultMatrixf'                                               
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXUseXFont'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDrawPixels'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexParameterf'                                  
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glEnable'                                         
/usr/lib64/libplasma.so.3.0.0: undefined reference to `glClear'                                            
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glScissor'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXQueryExtensionsString'                         
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glReadPixels'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexCoord2f'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXQueryServerString'                             
/usr/lib/libGLU.so.1: undefined reference to `glMapGrid2d'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glStencilMask'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPushMatrix'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glNewList'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glBitmap'                                         
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDrawBuffer'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXSwapBuffers'                                   
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glStencilFunc'                                    
/usr/lib/libGLU.so.1: undefined reference to `glTexImage3D'                                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXDestroyGLXPixmap'                              
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetFloatv'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexSubImage2D'                                  
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexParameteri'                                  
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glStencilOp'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glEnableClientState'                              
/usr/lib/libGLU.so.1: undefined reference to `glMap1f'                                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glColor4ub'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXIsDirect'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glClearStencil'                                   
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexCoord4f'                                     
/usr/lib/libGLU.so.1: undefined reference to `glEvalMesh1'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glRotatef'                                        
/usr/lib/libGLU.so.1: undefined reference to `glMapGrid2f'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glShadeModel'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetIntegerv'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexEnvf'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glFinish'                                         
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetTexLevelParameteriv'                         
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXChooseVisual'                                  
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glEnd'                                            
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glAlphaFunc'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPushAttrib'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDisable'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glCopyTexSubImage2D'                              
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXWaitX'                                         
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPixelStorei'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glBegin'                                          
/usr/lib/libGLU.so.1: undefined reference to `glEvalCoord2f'                                               
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPopMatrix'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glLoadMatrixd'                                    
/usr/lib/libGLU.so.1: undefined reference to `glVertex3fv'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXCreateContext'                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexCoordPointer'                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDeleteTextures'                                 
/usr/lib/libGLU.so.1: undefined reference to `glNormal3f'                                                  
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glGetError'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexImage2D'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glTexGenfv'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glCopyTexImage2D'                                 
/usr/lib/libGLU.so.1: undefined reference to `glNormal3fv'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glColor4f'                                        
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glBlendFunc'                                      
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glDrawArrays'                                     
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXDestroyContext'                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXQueryExtension'                                
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glLoadMatrixf'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glIndexi'                                         
/usr/lib/libGLU.so.1: undefined reference to `glMapGrid1f'                                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glBindTexture'                                    
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glCullFace'                                       
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glPixelTransferi'                                 
/usr/lib64/qt4/libQtOpenGL.so.4: undefined reference to `glXGetClientString'
Comment 2 Rafał Mużyło 2009-09-16 18:48:41 UTC
What does 'eselect opengl list' prints ?
Comment 3 Chris Trenkamp 2009-09-16 20:55:32 UTC
'eselect opengl list' shows:

[1] ati *
[2] xorg-x11
Comment 4 Rafał Mużyło 2009-09-16 21:20:09 UTC
And what's does 'ls -l /usr/lib/libGL.so' print ?
Comment 5 Chris Trenkamp 2009-09-17 01:48:20 UTC
'ls -l /usr/lib/libGL.so' reports:

lrwxrwxrwx 1 root root 23 2009-09-16 09:25 libGL.so -> opengl/ati/lib/libGL.so
Comment 6 Rafał Mużyło 2009-09-17 08:44:55 UTC
Try resetting it, that is set it to xorg-x11,
then back to ati.
And /usr/include/GL/GL.h shouldn't exist,
/usr/include/GL/gl.h should.

You may also try reemerging qt-opengl.
Comment 7 Chris Trenkamp 2009-09-17 10:40:09 UTC
(In reply to comment #6)
> Try resetting it, that is set it to xorg-x11,
> then back to ati.
> And /usr/include/GL/GL.h shouldn't exist,
> /usr/include/GL/gl.h should.

That's what I meant :D

> You may also try reemerging qt-opengl.
> 

I tried the following:

eselect opengl set xorg-x11
emerge qt-opengl
emerge ksysguard

However, it didn't fix the problem.

I did try installing the official ATI drivers, but removed it shortly later with fglrx-uninstall.sh.  Could that be causing this problem?

I know using the official ATI drivers is not a good idea, was just trying to see if it would fix an unrelated problem I was having at the time.
Comment 8 Rafał Mużyło 2009-09-17 17:16:05 UTC
Don't be too offended, but that was probably the (worst) thing,
you could do. Manual install of ati-driver breaks 'eselect opengl'
scheme so badly, that recovering from that is headache inducing.

There's very little hope.
First, try unmerging eselect-opengl and reemerging it.
If that fails, try *unmerging* both mesa and ati-driver and emerging it again.

It's all in hope, that restores symlinks to the proper state
- that install has overwritten or removed some of files/symlinks
and it's hard to tell, which exactly.
Comment 9 Rafał Mużyło 2009-09-17 17:17:28 UTC
BTW, this most probably marks this bug as INVALID.
Comment 10 Chris Trenkamp 2009-09-17 18:56:59 UTC
No offense taken.

Thanks for the help.