Well that looks like an include file ordering problem.
Check the manuals to see what order various allegro and GL header files should be in.