|
|
#1 | |
|
Registered User
Join Date: Apr 2010
Posts: 3
|
I was porting a C++ program from Solaris Sparc to Solaris 10 x86. The program utilizes OpenGL library and the compilation is performed in a Sun Ultra27 workstation with the default GCC (3.4.3) and OpenGL library come with the machine. The NVIDIA graphic card is Quadro FX380.
However, the following OpenGL API call couldn't found while linking: Code:
Undefined symbol first referenced in file sunOglCurPrimTablePtr ../../lib/libgltt.so sunOglCurrentContext ../../lib/libgltt.so Code:
> nm /usr/lib/libGL.so /usr/lib/libGL.so: Searching on web, SUN or Nvidia didn't lead to any helpful resource. Any clue or helps? Thanks a lot in advance! |
|
|
|
|
|
|
#2 | |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
The NVIDIA libGL only has dynamic symbols, so you have to pass the -D option to nm to make it list those.
As for the sunOgl* symbols, those are not part of the OpenGL standard and sound like SUN OpenGL extensions. I don't know why libgltt would be using those, but that sounds like a bug in that library. A quick search of the GLTT source from http://gltt.sourceforge.net/download.html doesn't show any references to those symbols, and OpenSolaris doesn't seem to have a package for gltt. |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2010
Posts: 3
|
Thanks Aaron!
Understood these sunOgl* symbol are not part of the OpenGL standard. It's included in the libGL.so distributed with Solaris Sparc 8-10. In Solaris Sparc, our application seem to refer to these symbols too (besides GLTT). As you said, checking on GLTT source couldn't find the reference. Do you know how is this "indirect reference/linking" is being done? (sorry for off-topic question) Also, do you have any advice where (in SUN) I could contact to refer to this? Thank you! |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Apr 2010
Posts: 3
|
It turned out that certain standard OpenGL API would be translated into SUN's internal functions. By defining SUN_OGL_NO_VERTEX_MACRO compilation flag, the program wouldn't refer to sunOgl* symbol anymore and the issue resolved.
The information is found at http://java423.vicp.net:8652/infoser...-210284-1.html, item 9: Quote:
![]() |
|
|
|
|
![]() |
| Thread Tools | |
|
|