Please consider using code tags instead of formatting the code yourself.
That aside, it looks like it might be a compiler mismatch problem. Earlier in your make output, it mentions:
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: PerlGcc
Config says: sun4-solaris-64int
This may or may not cause problems. Please check your installation of
if you have problems building this extension.
Then, later, when trying to run, you get "fatal relocation errors". I'm guessing that the API differences in the two different compilers may be giving you your problems.
When your only tool is a hammer, all problems look like your thumb.