This error is occuring in the mpeg_encode program. I recommend that for now, you just edit Makefile.INCLUDE, and remove the mpeg_encode program from the EXTRAS program list. Then try to continue the make. You don't need this program for operation of AFNI, and I don't know what to fix right now.
This is a holiday weekend in the USA (Thanksgiving), so probably won't be back to respond to messages until Monday.
bob cox