[rrd-users] Compile errors on Solaris 10 w/ SOS12 and rrdtool 1.2 snapshot from 2008/02/02

Dagobert Michelsen dam at baltic-online.de
Sat Feb 2 22:28:11 CET 2008


Hi,

I am getting compile errors from the latest 1.2 snapshot on
Solaris 10 x86 with the Sun Studio Compiler 12:

         /bin/bash ../libtool --tag=CC --mode=compile /opt/studio12/ 
SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/ 
usr/local/rrdtool-1.2.26/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf 
\" -DNUMVERS=1.2026 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/ 
include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/ 
sfw/include/freetype2    -g  -KPIC -DPIC -c -o rrd_getopt.lo  
rrd_getopt.c
  /opt/studio12/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. - 
DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.26/share/rrdtool/fonts/ 
DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2026 - 
D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/ 
usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2  
-g -KPIC -DPIC -c rrd_getopt.c  -KPIC -DPIC -o .libs/rrd_getopt.o
"/usr/include/iso/stdio_iso.h", line 190: identifier redeclared: rename
         current : function(pointer to char, pointer to char)  
returning int
         previous: function(pointer to const char, pointer to const  
char) returning int : "/usr/include/unistd.h", line 449
cc: acomp failed for rrd_getopt.c
gmake[2]: *** [rrd_getopt.lo] Error 1
gmake[2]: Leaving directory `/root/automatic-multiarch-compile/utils/ 
rrdtool/tmp/rrdtool-1.2.26/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/automatic-multiarch-compile/utils/ 
rrdtool/tmp/rrdtool-1.2.26'
gmake: *** [all] Error 2

It looks like someone had the same problem with Gnuplot:
   http://tech.groups.yahoo.com/group/info-gnuplot-beta/message/514

Setting CFLAGS="-Xc -D__EXTENSIONS__" solves the problem.

Best regards

   -- Dago


-- 
Dagobert Michelsen (Leiter IT)          Baltic Online Computer GmbH
Firmensitz:   Alter Markt 1-2, 24103 Kiel, Telefon: +49 431 54003-0
Geschäftsführer:        Erik Cickovskis, Amtsgericht Kiel, HRB 3756
"Of course computer servers don't need thrust, since they generally
don't go anywhere."  -- Comment in TR on new HP server turbine fans





More information about the rrd-users mailing list