Hallo,
the thing is, that mesa seems to not have glDeleteProgramsNV() (i have to check though) if you are using an nvidia-card, be sure that you have installed
I have a Ati mobility Radeon X700...
you could also try to configure with "--disable-ARB" (or was it "--without-ARB"?), but i am not sure whether it helps here.
no --disable-ARB doesn't help
LG Christian