It looks as if Sun's perl (built with cc) is incompatible with modules compiled using gcc.
I recommend building a separate installation of perl using gcc. There's no need to be root; you can install it in your home directory by fiddling with various Configure switches, e.g.