<div dir="ltr">Thanks all for the help.<br>If some one is getting similar errors, these are the steps i followed to resolve it:<br><br><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">Verify the following
packages are installed with pkginfo:<br>
SUNWscpu<br>
SUNWbtool<br>
SPROcc (unbundled SPARCworks Professional C compiler) ---mostly u will have to install this, and its free..!<br><br>Change the PTAH variable to have /opt/SUNWspro/bin: before /usr/ucb<br>eg: </font><br><pre>PATH=/opt/SUNWspro/bin:....:/usr/ucb</pre>
<font face="Verdana, Arial, Helvetica, sans-serif" size="-1">Continue with make clean, and make. This worked for me.<br><br>Thanks,<br>Anjini<br><br><br></font><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 3:36 PM, Tobias Oetiker <span dir="ltr"><tobi@oetiker.ch></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Anjini,<br>
<br>
the per installed perl on solaris is compiled with the forte c<br>
compiler ... you should use the same for compiling extensions ...<br>
<br>
get the official sun compiler onto your box and all should be well<br>
<br>
cheers<br>
tobi<br>
<div class="Ih2E3d"><br>
Yesterday anjini shukla wrote:<br>
<br>
> Looks like there is no end to this error. I have tried almost all changes<br>
> that could possibly cause this error. RRD 1.2.28 should ideally work with<br>
> sun compiler cc, but it dosnt.<br>
><br>
> adding :/opt/SUNWexplo/bin before :/usr/ucb also dsnt help. Is there no work<br>
> arround this problem..?<br>
><br>
> Any hint/ thoughts will be highly appreciated.<br>
><br>
> Thanks,<br>
> Anjini<br>
><br>
> ---------------------------------------------------------------------------------------------<br>
><br>
> I tried to install rrdtool 1.2.28, after reading that sun studio 11bugs are<br>
</div>> fixed on this version<<a href="https://lists.oetiker.ch/pipermail/rrd-announce/2008-July/000111.html" target="_blank">https://lists.oetiker.ch/pipermail/rrd-announce/2008-July/000111.html</a>>and<br>
<div><div></div><div class="Wj3C7c">> am still getting these errors:<br>
><br>
> Using /usr/ucb/cc<br>
> */usr/ucb/cc: language optional software package not installed<br>
> *** Error code 1<br>
> make: Fatal error: Command failed for target `RRDs.o'<br>
><br>
> *using /usr/local/bin/gcc<br>
><br>
> cc: unrecognized option `-KPIC'<br>
> cc: language ildoff not recognized<br>
> cc: RRDs.c: linker input file unused because linking not done<br>
> Running Mkbootstrap for RRDs ()<br>
> chmod 644 RRDs.bs<br>
> rm -f blib/arch/auto/RRDs/RRDs.so<br>
> LD_RUN_PATH="/usr/lib" cc -G RRDs.o -L../../src/.libs/<br>
> -R/usr/local/rrdtool-1.2.28/lib -lrrd -o blib/arch/auto/RRDs/RRDs.so -lm<br>
> -lz<br>
> cc: RRDs.o: No such file or directory<br>
> *** Error code 1<br>
><br>
><br>
> what should I be doing..?<br>
><br>
><br>
> On Thu, Sep 4, 2008 at 5:23 PM, Steve Shipway <<a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a>>wrote:<br>
><br>
> > This is because your Makefile is created for the Sun Studio C compiler,<br>
> > not for GCC.<br>
> ><br>
> ><br>
> ><br>
> > Changing it to work with GCC can be painful and may cause problems with<br>
> > Perl interoperability. We installed Sun Studio in the end (it's a free<br>
> > download)<br>
> ><br>
> ><br>
> ><br>
> > Steve<br>
> ><br>
> ><br>
> > ------------------------------<br>
> ><br>
> > cc -c -I../../src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8<br>
> > -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.2019\"<br>
> > -DXS_VERSION=\"1.2019\" -KPIC<br>
> > "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DPERLPATCHLEVEL=8 RRDs.c<br>
> > *cc: unrecognized option `-KPIC'*<br>
> > cc: language ildoff not recognized<br>
> ><br>
> ><br>
> ><br>
><br>
<br>
</div></div><font color="#888888">--<br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> tobi@oetiker.ch ++41 62 775 9902 / sb: -9900<br>
</font></blockquote></div><br></div>