[GRASS-dev] X11 trouble on OSX 10.5

Glynn Clements glynn at gclements.plus.com
Sat Nov 10 18:12:08 EST 2007


William Kyngesburye wrote:

> But now there is another problem -  
> maybe OSX-specific. Togl can't find ANY _glX* symbols in libGL:
> 
> Undefined symbols for architecture i386:
>    "_glViewport", referenced from:
>        _Togl_EventProc in togl.o
>        _Togl_EventProc in togl.o
>    "_glXChooseVisual", referenced from:
>        _Togl_CreateWindow in togl.o
>    "_glPixelStorei", referenced from:
>        _Togl_DumpToEpsFile in togl.o
>        _Togl_DumpToEpsFile in togl.o

The first and last ones aren't GLX functions, they're standard OpenGL
functions, so it isn't just GLX that's the problem.

> Another issue with X11/Tcltk in Leopard - gis.m won't run.  I get an  
> error:
> 
> GRASS 6.3.cvs (spearfish60):~ > X Error of failed request:  BadMatch  
> (invalid parameter attributes)
>    Major opcode of failed request:  70 (X_PolyFillRectangle)
>    Serial number of failed request:  2296
>    Current serial number in output stream:  2337
> 
> Maybe this is a problem with Tcltk 8.5?  Or the newer X11?  or both?   
> The error is meaningless to me, and there is no crash+crashlog to help  
> figure it out.

That can only be a Tk error. It's almost impossible to say what the
problem is; BadMatch can mean just about anything:

       BadMatch  Some argument or pair of arguments has the correct type and
                 range but fails to match in some other way required by the
                 request.

IIRC, X_PolyFillRectangle corresponds to XFillRectangles, which most
GUI toolkits use extensively.

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




More information about the grass-dev mailing list