[rrd-users] Re: Problem compiling RRD

Hendrik Visage hvisage at is.co.za
Mon Jan 17 22:26:47 MET 2000


Let me guess: You're using the SunPRO C compiler??

The sign is the -O2 which the compiler chokes on, but are a "valid" gcc
option. Same goes for the "-Wall" flag...

Change the CFLAGS as follows (Also DO read up on the other possible options
for the SunPRO C compilers):

Gcc: -O2
SunPRO: -fast (I think the "equivalent" is actually -xO2, but -fast should
also enable "enough" optimizations etc..)

Gcc: -Wall
SunPRO: Remove it, or replace with an equivalent to show ALL warnings.

> Sun Ultra 10, Solaris 2.6, I'm a fairly IMHO competent 
> programmer in the
> C language but know very little of UNIX admin/config/internals;
> 
> "make" seems to invoke gcc for most of what it does, but cc for this:
> 
> cc -c -I../src -I../gd1.3 -I/usr/site/db-1.86/include -g -O2 
> -Wall -pedantic -fPIC     -DVERSION=\"1.000091\"  
> -DXS_VERSION=\"1.000091\" -KPIC 
> -I/usr/site/perl-5.004.04/lib/sun4-solaris/5.00404/CORE  RRDs.c
> cc: Warning: option -2 passed to ld
> cc: illegal option -Wall
> *** Error code 1
> make: Fatal error: Command failed for target `RRDs.o' 
> 	:
> 	:
> 	:
> make: Fatal error: Command failed for target `all-recursive'
> 
> Can anyone suggest a solution or a direction?
> 
> Thanks,
> 	-g
> 
> 
> Glenn Forbes Fleming Larratt       glratt at rice.edu
> http://is.rice.edu/~glratt         Neil Talian?
> 
> Can *you* count to 1,000 ?
> 
> --
> 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
> 

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



More information about the rrd-users mailing list