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