Bug 422

Summary: cyclical dependency between libglx and libGLcore
Product: xorg Reporter: scott k <scottfk>
Component: Server/Ext/GLXAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: 6.7.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description scott k 2004-04-07 16:55:53 UTC
The glx module depends on a symbol in the GLcore module.  The GLcore module
depends on a symbol in the glx module.

I found at this URL http://www.gelato.unsw.edu.au/linux-ia64/0008/0441.html that
someone had already fixed the problem in the following way:

diff -urN XFree86-4.0/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c
XFree86-4.0-lia/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c
--- XFree86-4.0/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c	Thu Aug 17 22:07:38 2000
+++ XFree86-4.0-lia/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c	Tue Aug  8
22:52:59 2000
@@ -62,6 +62,9 @@
 #include <GL/internal/glcore.h>
 #endif
 
+/* Avoid cyclic dependency between libglx and libGLcore due
+   to this symbol and glDDXExtensionInfo.  --davidm 00/08/08 */
+__GLXcontext *__glXLastContext;

When I added the __GLXcontext *__glxLastContext; line to xf86glx.c and
recompiled, I had no problem loading the GLcore module.
Comment 1 Donnie Berkholz 2004-04-11 23:42:55 UTC
This looks like a dup of bug #377.
Comment 2 Mike A. Harris 2004-04-17 08:38:35 UTC
Closing bug as dupe of bug #377

*** This bug has been marked as a duplicate of 377 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.