That looks fine. Is there any chance that there are leftovers from your previous attempts at compiling Mesa or related components? E.g. check if ldd /usr/lib/xorg/modules/libglamoregl.so shows it picking up anything you compiled yourself, or just generally look for any leftovers.