[rrd-users] Re: Compilation problem with RRD 1.0.33

Armandy Trujillo armandy at emcali.net.co
Wed May 23 11:36:50 MEST 2001



Hi, I have Ultra 10 Solaris 8
sparc-sun-solaris2.8
gcc version 2.95.2 19991024 (release)
GNU Make version 3.79.1

I do

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

cd /rrdtool/rrdtool-1.0.33/perl-shared
perl Makefile.PL
Edit Makefile 
change
CC=gcc               --------------before cc
CCCDLFLAGS = -fPIC   --------------before -KPIC
OPTIMIZE = -xc       --------------before -xo3 -xdepend

./configure --with-tcllib=/usr/local/lib --enable-shared
make
make install

Armandy


On Fri, 18 May 2001, Mark Smith wrote:

> 
> I had the same problem.  You need to change -KPIC to -fPIC in Makefile.
> 
> You'll probably also want to change LD=cc to LD=ld and possibly AR=cc to 
> AR=ar.  Make sure that gcc, ld and ar are in your path when you run make.
> 
> -Mark
> 
> John C. A. Bambenek wrote:
> 
> >  
> >  I get the following error:
> >  
> >  cd perl-shared && make
> >  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
> >  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
> >  *** Error code 1
> >  make: Fatal error: Command failed for target `blib/arch/auto/RRDs/RRDs.so'
> >  Current working directory /usr/local/rrdtool/perl-shared
> >  *** Error code 1
> >  make: Fatal error: Command failed for target `perl_shared'
> >  Current working directory /usr/local/rrdtool
> >  *** Error code 1
> >  make: Fatal error: Command failed for target `all-recursive'
> >  
> >  
> >  This is a Solaris 8 Ultra 5, with gcc installed (I have cc -> gcc on the
> >  system).
> 
> 
> --
> 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



More information about the rrd-users mailing list