[GRASSLIST:7459] Re: NVIZ compile error

Glynn Clements glynn at gclements.plus.com
Tue Jul 5 11:33:05 EDT 2005


[CC to developers]

Trevor Wiens wrote:

> I've finally decided to move to 6.0 from the 6.0 beta2. When compiling
> I get a complaint about nviz with the suggestion to go the nviz
> directory and execute make. Upon doing that I get the following error.
> 
> /usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2eea): In function `glXGetMscRateOML':
> : undefined reference to `XF86VidModeQueryVersion'
> /usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2f1a): In function `glXGetMscRateOML':
> : undefined reference to `XF86VidModeGetModeLine'

Try to figure out why you don't have a shared libGL.

Recent Xorg versions of libGL depend upon libXxf86vm. If you had a
shared libGL (libGL.so), it would have dependency information which
would cause libXxf86vm to be linked automatically, e.g.:

	$ ldd /usr/lib/libGL.so
	libpthread.so.0 => /lib/libpthread.so.0 (0x40079000)
	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x400cc000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x400d2000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x400e0000)
	libdl.so.2 => /lib/libdl.so.2 (0x401a9000)
	libc.so.6 => /lib/libc.so.6 (0x401ad000)
	/lib/ld-linux.so.2 (0x80000000)

Static libraries don't include dependency information.

Note to developers: the libGL check in configure.in should probably be
updated to try using -lXxf86vm if the initial attempt fails.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list