[rrd-users] Re: Solaris 8 and RRD

Shoaib Muhammad Shoaib.Muhammad at fronteracorp.com
Thu Mar 29 21:52:16 MEST 2001


Here are the steps i have taken again:

the GNU "make" I already downloaded from sunfreeware.com and installed
yesterday.

the PATH is
:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/perl5/5.00503/bin:/usr/sbin:/u
sr/ccs/bin:.
NB: /usr/ucb is not even my PATH.
the uname -a is :SunOS NMS 5.8 Generic_108528-01 sun4u sparc SUNW,Ultra-5_10

Here r the steps i have taken, but no success  :(  

pkgrm  SMCgcc   [removed gcc 2.95.2]
pkgadd -d gcc-2.95.3-sol8-sparc-local   [add gcc 2.95.3]
rm -r rrdtool-1.0.33      [ removed old untar directory of rrd-tool ]
tar xvf rrdtool-1.0.33.tar 
cd rrdtool-1.033
./configure [successful]
/usr/local/bin/make

the error mention below:

I was wondering why at the end it trying to find "cc" and saying "cc:
language depend not recognized" and "cc: unrecognized option `-KPIC' ". Is
there any method to redirect cc to gcc, i already did the following softlink
in the following directory:

ln -s /usr/local/bin/gcc  /usr/ucb/cc
ln -s /usr/local/bin/gcc  /usr/local/bin/cc

Any help/comments really appreciated.

Thanks,
Shoaib



...
...
cd perl-piped && /usr/bin/perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for RRDp
cd perl-piped && /usr/local/bin/make
make[2]: Entering directory `/install/rrdtool-1.0.33/perl-piped'
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/RRDp
mkdir blib/lib/auto
mkdir blib/lib/auto/RRDp
mkdir blib/man3
cp RRDp.pm blib/lib/RRDp.pm
Manifying blib/man3/RRDp.3
make[2]: Leaving directory `/install/rrdtool-1.0.33/perl-piped'
cd perl-shared && /usr/bin/perl Makefile.PL  
Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
cd perl-shared && /usr/local/bin/make
make[2]: Entering directory `/install/rrdtool-1.0.33/perl-shared'
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/RRDs
mkdir blib/lib/auto
mkdir blib/lib/auto/RRDs
mkdir blib/man3
cp ntmake.pl blib/lib/ntmake.pl
cp RRDs.pm blib/lib/RRDs.pm
/usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
/usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
/usr/perl5/5.00503/ExtUtils/typemap RRDs.xs >xstmp.c && mv xstmp.c RRDs.c
cc -c -I../src -I../gd1.3  -xO3 -xdepend    -DVERSION=\"1.000331\"
-DXS_VERSION=\"1.000331\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE
-DPERLPATCHLEVEL=5 RRDs.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: RRDs.c: linker input file unused since linking not done
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
LD_RUN_PATH="" cc -o blib/arch/auto/RRDs/RRDs.so  -G RRDs.o -L../src/.libs/
-lrrd_private -lm    
cc: RRDs.o: No such file or directory
make[2]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[2]: Leaving directory `/install/rrdtool-1.0.33/perl-shared'
make[1]: *** [perl_shared] Error 2
make[1]: Leaving directory `/install/rrdtool-1.0.33'
make: *** [all-recursive] Error 1



-----Original Message-----
From: Tobias Oetiker [mailto:oetiker at ee.ethz.ch]
Sent: Wednesday, March 28, 2001 9:19 PM
To: Shoaib Muhammad
Subject: Re: [rrd-users] Re: Solaris 8 and RRD


Yesterday Shoaib Muhammad wrote:

 | Hi Dean Singh,
 |
 | I tried ur workaround but still getting the follwoing error:
 | It is actually saying :
 |
 | "
 | cc: unrecognized option `-KPIC'
 | cc: language depend not recognized
 | "

it seems you do not have a working version of cc installed ... in
any case best is to use gcc for compiling ... you can get a copy
from www.sunfreeware.com

cheers
tobi
 |
 | Any Idea!
 |
 | Shoaib
 |
 | #/usr/local/bin/make
 |
 | ...
 | ...
 | Checking if your kit is complete...
 | Looks good
 | Writing Makefile for RRDs
 | cd perl-shared && /usr/local/bin/make
 | make[2]: Entering directory `/install/rrdtool-1.0.33/perl-shared'
 | mkdir blib
 | mkdir blib/lib
 | mkdir blib/arch
 | mkdir blib/arch/auto
 | mkdir blib/arch/auto/RRDs
 | mkdir blib/lib/auto
 | mkdir blib/lib/auto/RRDs
 | mkdir blib/man3
 | cp ntmake.pl blib/lib/ntmake.pl
 | cp RRDs.pm blib/lib/RRDs.pm
 | /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
 | /usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
 | /usr/perl5/5.00503/ExtUtils/typemap RRDs.xs >xstmp.c && mv xstmp.c RRDs.c
 | cc -c -I../src -I../gd1.3  -xO3 -xdepend    -DVERSION=\"1.000331\"
 | -DXS_VERSION=\"1.000331\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE
 | -DPERLPATCHLEVEL=5 RRDs.c
 | cc: unrecognized option `-KPIC'
 | cc: language depend not recognized
 | cc: RRDs.c: linker input file unused since linking not done
 | Running Mkbootstrap for RRDs ()
 | chmod 644 RRDs.bs
 | LD_RUN_PATH="" cc -o blib/arch/auto/RRDs/RRDs.so  -G RRDs.o
-L../src/.libs/
 | -lrrd_private -lm
 | cc: RRDs.o: No such file or directory
 | make[2]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
 | make[2]: Leaving directory `/install/rrdtool-1.0.33/perl-shared'
 | make[1]: *** [perl_shared] Error 2
 | make[1]: Leaving directory `/install/rrdtool-1.0.33'
 | make: *** [all-recursive] Error 1
 |
 |
 |
 |
 |
 |
 | -----Original Message-----
 | From: Dean Singh [mailto:DeanR at reccom.net]
 | Sent: Tuesday, March 27, 2001 4:56 PM
 | To: MRTG Mailing List (E-mail); RRD Users (E-mail)
 | Subject: [rrd-users] Solaris 8 and RRD
 |
 |
 |
 | 	Thanks for everyone that helped me out.  I finally got RRD to
 | compile.  My problem was that somehow Makefile was going back to cc
instead
 | of gcc in the perl* directories.
 |
 | 	> > > cc -c -I../src -I../gd1.3  -xO3 -xdepend
 | -DVERSION=\"1.000281\"
 | > > > -DXS_VERSION=\"1.000281\" -KPIC
 | > > > -I/usr/perl5/5.00503/sun4-solaris/CORE
 | > > > -DPERLPATCHLEVEL=5 RRDs.c
 | > > > sh: cc: not found
 | >
 | > > > *** Error code 1
 | > > > make: Fatal error: Command failed for target `RRDs.o'
 | > > > Current working directory /tmp/rrdtool-1.0.28/perl-shared
 | > > > =================================
 |
 | 	I solved it with the following.  Hope this help anybody else who
 | might have had a similar problem.
 |
 | 	Try doing this.  It worked for me. "ln -s gcc /usr/local/bin/cc" so
 | that /usr/local/bin/cc points to /usr/local/bin/gcc, and make sure
 | /usr/local/bin is near the front of your path.
 |
 | Sincerely,
 | Dean Singh
 | EBusiness Consultant
 | 949-864-5111 Direct
 | 949-222-2225 Office
 | 949-475-1075 Fax
 | www.reccom.net
 |
 |
 | --
 | Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
 | Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
 | Archive     http://www.ee.ethz.ch/~slist/rrd-users
 | WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
 |
 |
 | --
 | Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
 | Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
 | Archive     http://www.ee.ethz.ch/~slist/rrd-users
 | WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
 |
 |

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list