Hi,
I am trying to install Mesa 7.7 on a RHEL 5.4 64-bit machine.

I was compiling Mesa with direct rendering using

make linux-dri-x86-64

and I got the following error after the compilation runs for quite some time:

../../lib64/libGL.so: undefined reference to `drmOpenOnce'
../../lib64/libGL.so: undefined reference to `XDamageAdd'
../../lib64/libGL.so: undefined reference to `drmCloseOnce'

My web search tells me I need to upgrade libdrm packages. But I have installed the latest packages of libdrm(libdrm 2.4.17).
Same with XDamage (version 1.1.2).

Can someone please help me? Why am I getting this error?

Thanks.
Ekhlas.