[TriLUG] Gasp, OpenGL library problems!

Randall Barlow rpbarlow at eos.ncsu.edu
Fri Dec 9 00:39:16 EST 2005


Further developments...  Turns out there was a problem with the glx 
extensions, so I (using Gentoo) unmerged nvidia-glx and then emerged it 
again.  After this I ran:

 opengl-update nvidia

Then I got a segmentation fault when I tried to run my program, so I 
tried to compile it again.  Interestingly, I don't need to use the -L 
flag anymore, but I get new compiler errors that Google can't seem to 
help me with:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001138gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001124gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001164gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001122gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001149gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001104gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001106gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001160gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001141gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001108gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001140gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001134gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001113gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001165gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001177gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001096gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001111gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001179gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001145gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001100gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001098gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001151gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001186gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001130gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001188gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001112gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001101gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001146gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001159gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001097gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001156gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001191gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001123gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001144gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001109gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001168gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001187gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001166gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001115gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001135gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001169gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001183gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001126gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001133gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001099gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001128gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001189gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001142gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001157gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001174gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001180gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001125gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001117gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001131gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001137gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001184gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001163gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001143gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001171gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001162gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001114gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001176gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001148gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001103gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001095gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001105gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001120gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001185gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001175gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001094gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001154gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001121gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001158gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001132gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001153gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001147gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001102gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001116gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001150gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001139gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001118gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001167gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001127gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001107gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001173gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001181gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001161gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001129gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001170gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001110gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001136gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001182gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001119gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001190gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001155gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001172gl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libGL.so: undefined 
reference to `_nv001152gl'
collect2: ld returned 1 exit status

The command I used to compile was:

g++ -o opengltest opengltest.cpp -lglut -lGL -lGLU -lXmu -lXi -lXext -lX11

Thanks!  And sorry for so many posts!

Randy



More information about the TriLUG mailing list