That error have notting to do with ANET. You have to use the newest version from Lite-c, older versions don`t understand ptr_remove.
ptr_remove is the newer version from ent_remove.

PS: You use lite-c or c-script?