A few files in hw/xfree86/common/ misses system includes on FreeBSD (probably GLIBC is not affected including most of them implicitely). The attached patch (made from little patches, hope it works out of the box) fixes these problems.
Created attachment 3345 [details] [review] diff-with-cvs-head.patch
Created attachment 2909 [details] [review] xorg-server-hw-xfree86-common-includes.patch
please explain why gentoo/freebsd needs these, since plain freebsd clearly works already.
The LIBC is the same, so if FreeBSD is using patches or there's something in autotools that bypass some of imake tests, Gentoo/FreeBSD hit the problem. They are needed on a FreeBSD that is not using ports, for sure, using current gentoo's ebuilds for autotooled Xorg.
i would like to see some indication that these fixes are necessary for stock freebsd systems too. if only portage users need them on freebsd, that would indicate a bug in portage, not in X.
This seems tied to bug #4078, have to try with a newer snapshot where that is fixed, and this *should* be fixed, too. [And no, the problem was not portage then]
As said, fix to #4078 fixes this, too. It was a missing define in the new build system with a lot of hidden black magic. *** This bug has been marked as a duplicate of 4078 ***
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.