Subject: wip/MesaLib-dri
To: None <pkgsrc-users@NetBSD.org>
From: =?ISO-8859-2?Q?Ond=F8ej_T=F9ma?= <pkgsrc@blackmouse.biz>
List: pkgsrc-users
Date: 08/26/2007 21:50:09
--Sig_h172UMc4COPO7tGboGrYG3H
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi,

i try to compile this package on Linux.. and...

i got error on=20
Mesa-7.0.1/src/mesa/main/execmem.c

error: `MAP_ANONYMOUS' undeclared (first use in this function)

problem is, that i don't know why.. but __USE_MISC is not defined, and
MAP_ANONYMOUS is depended on that.

So i add line '#define __USE_MISC' before '#include <sys/mmap.h>' and
all compile ends right.


another problem is in compile file
Mesa-7.0.1/src/mesa/drivers/dri/common/xmlconfig.c

:917: error: `program_invocation_short_name' undeclared (first use in
this function)

here i must defined __USE_GNU before line '# include <errno.h>'


next problem is with Mesa-7.0.1/src/glw/*.*
GLwDrawAP.h:49: error: syntax error before "caddr_t"
GLwDrawAP.h:49: warning: no semicolon at end of struct or union
GLwDrawAP.h:50: warning: type defaults to `int' in declaration of
`GLwDrawingAreaClassPart'
GLwDrawAP.h:50: warning: data definition has no type or storage class
GLwDrawAP.h:69: error: syntax error before "GLwDrawingAreaClassPart"
GLwDrawAP.h:69: warning: no semicolon at end of struct or union
GLwDrawAP.h:70: warning: type defaults to `int' in declaration of
`GLwDrawingAreaClassRec'
GLwDrawAP.h:70: warning: data definition has no type or storage class
GLwDrawAP.h:72: error: syntax error before "glwDrawingAreaClassRec"
GLwDrawAP.h:72: warning: type defaults to `int' in declaration of
`glwDrawingAreaClassRec'
GLwDrawAP.h:72: warning: data definition has no type or storage=20
classGLwDrawAP.h
GLwDrawA.c:294: error: syntax error before "glwDrawingAreaClassRec"
GLwDrawA.c:294: warning: type defaults to `int' in declaration of
`glwDrawingAreaClassRec'
GLwDrawA.c:295: warning: braces around scalar initializer

here is problem with caddr_t ... i did't find what is not declared, so
i simple add this line to GLwDrawAP.h:

typedef char * caddr_t;


after that, build finish right.

Full log from bulk-build is here:
http://linux.blackmouse.biz/pub/blackmouse-current/i686/pkgstat/20070826.15=
26/wip/MesaLib-dri/.broken.html

but when i try your this version from pkgsrc/graphics (i have it from
the short time from cvs) all works righ.

note:
Here is some packages... which works with this (pkgsrc/graphics)
version:
http://linux.blackmouse.biz/pub/blackmouse-current/i686/packages-modular/Al=
l/

now, i start testing this package (compiling packages and using on PC
with dri (sis and intel))

--=20
Ondrej Tuma

   Www: www.blackmouse.biz, mcbig.webjet.cz=20
Jabber: mcbig@jabber.cz

--Sig_h172UMc4COPO7tGboGrYG3H
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG0dlxBmNIPxOnb/IRAqtrAJ4jKUVKOUgS/3UWqagCxaAz3KLHOwCgihhX
DbHbiYmV7woyqE6qy+xVpHo=
=IPr9
-----END PGP SIGNATURE-----

--Sig_h172UMc4COPO7tGboGrYG3H--