Xaw3d doesn't build in 2012Q4

Hi,
In file included from Command.c:63:0:
/pkg_comp/obj/pkgsrc/x11/Xaw3d/default/.buildlink/include/X11/extensions/shape.h:31:39:
fatal error: X11/extensions/shapeconst.h: No such file or directory
compilation terminated.
*** [Command.o] Error code 1
I checked that
/usr/pkg/include/X11/extensions/shapesconst.h
exists in the build chroot, but not in
/pkg_comp/obj/pkgsrc/x11/Xaw3d/default/.buildlink/include/X11/extensions/
How to proceed?
This is pkgsrc xorg, 6.0 binaries, i386, pkgcomp-chrooted on a amd64 host.
-is