So, did you install the GSL libraries to sort out that issue? Or did changing the glib name chase away two errors with one stone?
Probably somebody else should weigh in on this, but I think that I would probably use fink or something to get the real glib libraries that go with the appropriate version... I believe that the Glib libraries are used for compiling/running C.
Would doing:
sudo fink install glib
solve your issue? (and I assume you would need to re-make AFNI, if you are building it from source).
Again, comment from AFNI gurus invited...
--pt