[rrd-users] Re: Problem with compiling rrdtool on Sparc-Solaris 8

Marcus Vinicius Ferreira marcus_ferreira at yahoo.com
Fri Jan 18 11:43:05 MET 2002


Hello Robert,

This happened to me too. The problem is that the version of Perl
shipped with solaris was compiled with Sun's Workshop C compiler and
some flags are not compatible with gcc.

You have 2 options: 
  First) Use Sun's compiler to install rrd.

 Second) Download and install Perl using gcc. The pre-installed
         perl resides in /usr and if you install a new version
         in /usr/local (for example) and manage to put this
         location first in PATH variable things will be fine.

In my servers I used the second option.

Regards

Marcus Vinicius Ferreira
DBA OCP
Solaris SysAdmin

--- Robert_Thompson at Lenox.com wrote:
> 
> 
> 
> Hopefully someone has already seen this problem.
> 
> I am trying to compile rrdtool-1.0.33
> on solaris8 with GNU Make version 3.79 and gcc version 2.95.
> I start the compile with
> 
> # sh configure --enable-shared
> # make CC=gcc
> 
> but.... Here is the error I am getting when I run make
> 
> ...........................
> Checking if your kit is complete...
> Looks good
> Writing Makefile for RRDs
> cd perl-shared && make
> make[2]: Entering directory
> `/export/home/apps/orca/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
> gcc -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
> gcc: unrecognized option `-KPIC'
> gcc: language depend not recognized
> gcc: 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
> `/export/home/apps/orca/rrdtool-1.0.33/perl-shared'
> make[1]: *** [perl_shared] Error 2
> make[1]: Leaving directory `/export/home/apps/orca/rrdtool-1.0.33'
> make: *** [all-recursive] Error 1
> 
> Many thanks in advance if anyone can help!
> 
> Bob T.
> 
> 
> 
> --
> 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
> 



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
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