On Thu, 2006-04-13 at 22:04 -0700, Ian Romanick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Benjamin Herrenschmidt wrote:
> 
> > Ok, I got bitten by the build system again...
> > 
> > Checking out a fresh mesa source tree, doing a make linux-dri-ppc in it,
> > what hapens is that
> > 
> >  - mesa bits are built using <GL/internal/*.h> includes from the source
> > tree
> >  - DRI bits are built using <GL/internal/*.h> includes from the install
> > prefix (the distro basically)
> > 
> > Of course, they didn't match, thus I end up with non-matching GLcontext
> > structure among others...
> 
> GLcontext should come from mtypes.h, and that file is *never* supposed
> to be installed anywhere on the system.  

Yes, but GLcontext itself is made of things like GLimports etc.. that
come from other files, including GL/internal/glcore.h. It seems that
it's where the mixup happens. Some bits of the build use the installed
version and some bits use the one in the tree. They should obviously all
be in the tree.

> Since we're supposed to be able
> to have some ABI version skew between libGL and DRI drivers, some
> changes in GL/internal/dri_interface.h and glcore.h should be okay.
> What are the actual diffs?

Not sure at this point, but the problem ends up being ctx->DriverCtx at
a different offset 
within GLcontext between mesa context.c and r300_tex.c. 

Looks like to get the stuff built properly, one has to build first, make
install, make clean and rebuild, and finally re-make install

> > I'm not sure at this point what's going on with the Makefiles
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (GNU/Linux)
> 
> iD8DBQFEPy1gX1gOwKyEAw8RAqDnAKCQDRKckOTTzpVq9/yMwUGCUWz/VQCfazqB
> /tnfoibBSaPfSQpfwGlWJ0o=
> =HJmY
> -----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to