Building problem with dri 7.6

Zhihao Yuan lichray at
Sun Feb 27 20:52:13 UTC 2011

I have observed this issue for a long time.

~> uname -a
FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Feb 24
18:11:55 CST 2011     root at compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO
My card is Ati Mobile Radeon X1600.

I built and installed libdrm 2.4.17, libGL, libGLU, libglut 7.6.1, so
far so good. When I want to
for a dri 7.6.1,
I got some error message says "can't find radeon_cs_int.h", which
means Mesa need the definition of struct radeon_cs_int (and
radeon_bo_int, actually). So I extract these definitions (included in
the attachment) and put them in the correct places, so that the
package is successfully built.
But, when I test it, I got the following error:

~> env LIBGL_DEBUG=verbose glxinfo | grep rendering
libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0)
libGL: OpenDriver: trying /usr/local/lib/dri/
libGL error: dlopen /usr/local/lib/dri/ failed
(/usr/local/lib/dri/ Undefined symbol
libGL error: unable to load driver:
libGL: OpenDriver: trying /usr/local/lib/dri/
direct rendering: Yes

I tried to disable the 'inline' for the related functions, but I can't
got it work. DRI works fine with other 7.6.1 libs, but 7.4 is
relatively old.

Zhihao Yuan
The best way to predict the future is to invent it.

More information about the freebsd-multimedia mailing list