<?xml version="1.0" encoding="windows-1252"?>
<node id="1008492" title="Re^2: Compiling GD on Solaris 11" created="2012-12-12 07:04:23" updated="2012-12-12 07:04:23">
<type id="11">
note</type>
<author id="1008130">
jfinn</author>
<data>
<field name="doctext">
Thanks for the "make realclean" tip, I was just removing the directory and re-downloading it between each attempt to compile.  So I downloaded and compiled the latest version of perl and I was able to get GD compiled.  Now I'm having a very similar error trying to compile SNMP

&lt;code&gt;
root@solaris11:~/.cpan/build/SNMP-5.0401-n2C6m8# make test
cp SNMP.pm blib/lib/SNMP.pm
AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP)
/usr/local/bin/perl /usr/local/lib/perl5/5.16.2/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.16.2/ExtUtils/typemap -typemap typemap  SNMP.xs &gt; SNMP.xsc &amp;&amp; mv SNMP.xsc SNMP.c
gcc -c    -DNETSNMP_ENABLE_IPV6 -m32 -xO4 -xchip=pentium -xregs=no%frameptr -mt -xc99=all -Dsolaris2=solaris2 -DFALSE_SHARING_ALIGN=64 -I. -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O    -DVERSION=\"5.0401\"  -DXS_VERSION=\"5.0401\" -KPIC "-I/usr/local/lib/perl5/5.16.2/i86pc-solaris/CORE"   SNMP.c
gcc: unrecognized option '-KPIC'
gcc: language c99=all not recognized
gcc: language c99=all not recognized
gcc: SNMP.c: linker input file unused because linking not done
Running Mkbootstrap for SNMP ()
chmod 644 SNMP.bs
rm -f blib/arch/auto/SNMP/SNMP.so
LD_RUN_PATH="/usr/lib" gcc  -G -L/usr/lib -L/usr/ccs/lib -L/opt/solarisstudio12.3/prod/lib -L/lib -L/usr/gnu/lib SNMP.o  -o blib/arch/auto/SNMP/SNMP.so         \
   -L/usr/lib -lnetsnmp -lgen -lelf -lnsl -lsocket -lkstat      \

gcc: SNMP.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/SNMP/SNMP.so'
&lt;/code&gt;

This is the last module I need compiled...help would be greatly appreciated.</field>
<field name="root_node">
1008135</field>
<field name="parent_node">
1008189</field>
</data>
</node>
