Well, the problem was with headers dri2proto. These were installed in /usr/local/include/drm and there was a conflict with /usr/include/drmI've been using radeonhd, mesa, dri and others from latest git.Now i'm trying to update world. emerge fails building mesa-7.4.2 from portage
The problem is solved.