problems with gtk 2.0 and glx



Hi all,
I have problems compiling glxdemo.c using glx.
There is undefined references in libglx.so. I have
GeForce2 MX400 video card and I use glx provided by
NVIDIA. The drivers are NVIDIA_GLX-1.0-2960. 
I have Slackware 8.0 with X-4.1.0. I cannot determine
where to find these undefined references. 
Are they in some other library or somewhere else.
Looking at the source code of the X I found them. 
Most of the functions are in the file libc_wrapper.c. 

I will be grateful to any help.

Here is the output of the compilation:

gcc -Wall -g -O0 glxdemo.c -o 3D `gnome-config
--cflags gnome --libs gtk`
-L/usr/X11R6/lib/modules/extensions -lglx -lGL
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `CreateNewResourceType'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `FatalError'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86free'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `CreateNewResourceClass'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86usleep'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86fclose'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86exp'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86sleep'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `WriteToClient'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86open'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strcat'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86memset'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strtok'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strlen'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86atan'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `Xrealloc'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `FreeResource'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86fscanf'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86abort'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86malloc'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strcasecmp'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strtoul'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `AddExtensionAlias'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strncpy'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86sin'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86log'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86atoi'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `LookupIDByClass'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `LookupIDByType'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86fflush'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86cos'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `FakeClientID'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86fopen'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86memmove'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86close'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86ioctl'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86calloc'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86getenv'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `StandardMinorOpcode'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `LookupDrawable'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86vsprintf'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86shmdt'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `NameForAtom'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `ErrorF'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86sqrt'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strncmp'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86atof'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `LoadExtension'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86pow'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86munmap'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `FreeResourceByType'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86fwrite'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86vfprintf'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86floor'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86shmat'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86ceil'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86memcpy'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86realloc'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `screenInfo'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strcspn'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86mmap'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86abs'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `AddResource'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strdup'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strcmp'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `xf86strcpy'
/usr/X11R6/lib/modules/extensions/libglx.so: undefined
reference to `AddExtension'
collect2: ld returned 1 exit status
make: *** [all] Error 1




__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]