or download this
root@solaris11:~/.cpan/build/GD-2.46-5lwh43# perlgcc Makefile.PL
Notice: Type perl Makefile.PL -h for command-line option summary.
...
ld: fatal: file processing errors. No output written to blib/arch/auto
+/GD/GD.so
*** Error code 2
make: Fatal error: Command failed for target `blib/arch/auto/GD/GD.so'