LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2005, 08:26 PM   #1
bad_gui
LQ Newbie
 
Registered: Mar 2003
Distribution: vector, Debian
Posts: 17

Rep: Reputation: 0
libgtkgl undefined reference to nvidia libGL


A configure script for a new version of a package I built prreviously keeps failing and I
have made some test code called "conftest.c" to reproduce the error:

int
main ()
{
char gtk_gl_area_new(); gtk_gl_area_new();
;
return 0;
}


~/test$ gcc -o conftest conftest.c /usr/lib/libGL.so /usr/local/lib/libgtkgl.so

/usr/local/lib/libgtkgl.so: undefined reference to `glXQueryExtension@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXSwapBuffers@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXCreateGLXPixmap@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXWaitX@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glFlush@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXDestroyGLXPixmap@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXMakeCurrent@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXGetClientString@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXChooseVisual@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXCreateContext@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXWaitGL@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXGetCurrentContext@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXDestroyContext@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXGetConfig@LIBGL'
/usr/local/lib/libgtkgl.so: undefined reference to `glXUseXFont@LIBGL'
collect2: ld returned 1 exit status


~/test$ nm -D /usr/lib/libGL.so shows a long list of symbols including:
...
0002b60c T glXCreateGLXPixmap
....
0002b7d4 T glXQueryExtension
...
00029410 T glXSwapBuffers
...


Why aren't these symbols recognized????

GtkGLArea is an OpenGL widget for GTK+ GUI toolkit. It was built with the previous
nvidia provided libGL. I have since upgraded the nvidia driver and now have

/usr/lib/libGL.la
/usr/lib/libGLcore.so.1.0.6629
/usr/lib/libGLcore.so.1
/usr/lib/libGL.so.1.0.6629
/usr/lib/libGL.so
/usr/lib/libGL.so.1


/etc/ld.so.conf has

/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/usr/lib/qt/lib
/usr/lib

Should I rebuild the GtkGLArea package or revert back to the NVIDIA 5336 driver?

The previous version of the software gives this error but seems to run without problems.
/usr/lib/./libGL.so.1: no version information available (required by /usr/local/lib/libgtkgl.so.5)
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference error jacques83 Programming 20 04-11-2013 07:23 AM
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
KDevelop: undefined reference bastl Programming 2 09-05-2005 09:52 AM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 03:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration