Brunov's blog

Sergey Vyacheslavovich Brunov's blog

FreeBSD: graphics/dri build failed

2014-01-26 04:00:01 Moscow time

Have just installed FreeBSD 10.0-RELEASE. Build of graphics/dri port failed with the compilation error. The same problem and solution described here:

In file included from i830_context.c:28:
In file included from ./i830_context.h:31:
../../../../../src/mesa/drivers/dri/intel/intel_context.h:249:4: error: unknown type name 'drm_intel_context'
   drm_intel_context *hw_ctx;
1 error generated.

Post by gustopn » 14 Nov 2013, 11:45

And for those of you, who do not want to have a X without Intel KMS support, you need to remove /usr/local/include/intel_bufmgr.h in order for DRI to compile. The problem is that it looks for intel_bufmgr.h but in the wrong version; /usr/local/include/libdrm/intel_bufmgr.h is the right/new one.

As a final solution consider renaming the /usr/local/include/intel_bufmgr.h file.

Tags: freebsd freebsd ports graphics/dri