[rrd-users] compiling rrdtool on Solaris

jean jayet jean.jayet at france.sun.com
Fri Sep 11 14:07:57 CEST 2009


Hi folks,

i'm facing issues when building rrdtool 1.3.8 on a OpenSolaris Sparc 
system (2009.06)

cd /opt/rrdtool-1.3.8

1) at configure step

# sh configure --prefix=/opt//rrdtool-1.3.8 --disable-libintl

the libtool generated in /opt/rrdtool-1.3.8 has issues :
# ./libtool
./libtool : syntax error at line 639: `func_arith_result=$' unexpected

replacing it with /opt/csw/bin/libtool configure is successful ??!!


2) at make step

# make
...
Making all in bindings
make[2]: Entering directory `/opt/rrdtool-1.3.8/bindings'
Making all in tcl
make[3]: Entering directory `/opt/rrdtool-1.3.8/bindings/tcl'
echo "package ifneeded Rrd 1.3.8 \"load 
/opt//rrdtool-1.3.8/lib/tclrrd1.3.8[info sharedlibextension]\"" > 
pkgIndex.tcl
gcc -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic 
-Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition 
-W  -fPIC -DPIC -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 
-pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline 
-Wold-style-definition -W  -fPIC -DPIC -KPIC -I/usr/include -I../../src 
-DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.3.8\"
gcc: unrecognized option `-KPIC'
tclrrd.c: In function `getopt_init':
tclrrd.c:52: warning: implicit declaration of function `strdup'
tclrrd.c:52: warning: nested extern declaration of `strdup'
tclrrd.c:52: warning: assignment makes pointer from integer without a cast
tclrrd.c: In function `Rrd_Create':
tclrrd.c:189: warning: passing arg 5 of `rrd_create_r' from incompatible 
pointer type
tclrrd.c: In function `Rrd_Update':
tclrrd.c:293: warning: nested extern declaration of `strdup'
tclrrd.c:293: warning: assignment makes pointer from integer without a cast
tclrrd.c:322: warning: passing arg 4 of `rrd_update_r' from incompatible 
pointer type
tclrrd.c: In function `Rrd_Graph':
tclrrd.c:484: warning: implicit declaration of function `fdopen'
tclrrd.c:484: warning: nested extern declaration of `fdopen'
tclrrd.c:484: warning: assignment makes pointer from integer without a cast
tclrrd.c: At top level:
tclrrd.c:585: warning: unused parameter 'clientData'
tclrrd.c:561: warning: unused parameter 'clientData'
tclrrd.c:537: warning: unused parameter 'clientData'
tclrrd.c:427: warning: unused parameter 'clientData'
tclrrd.c:382: warning: unused parameter 'clientData'
tclrrd.c:267: warning: unused parameter 'clientData'
tclrrd.c:340: warning: unused parameter 'clientData'
tclrrd.c:236: warning: unused parameter 'clientData'
tclrrd.c:207: warning: unused parameter 'clientData'
tclrrd.c:100: warning: unused parameter 'clientData'
gcc -G -z text -R /opt//rrdtool-1.3.8/lib -L../../src/.libs -L../../src 
-L/opt//rrdtool-1.3.8/lib tclrrd.o -o tclrrd1.3.8.so -lrrd_th -lm 
-L/usr/lib -ltclstub8.4 -L/opt/csw/lib     -L/opt/csw/lib
Text relocation remains                         referenced
     against symbol                  offset      in file
_init                               0x34 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
main                                0x5c 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
_fini                               0x24 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
_fini                               0x28 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
exit                                0x64 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
_environ                            0x50 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
_environ                            0x54 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
atexit                              0x1c 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
atexit                              0x2c 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
_exit                               0x6c 
/usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/crt1.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[3]: *** [tclrrd1.3.8.so] Error 1
make[3]: Leaving directory `/opt/rrdtool-1.3.8/bindings/tcl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/rrdtool-1.3.8/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/rrdtool-1.3.8'
make: *** [all] Error 2



any idea there ?
thanks
Jean


# echo $PATH
/usr/gnu/bin:/opt/csw/bin:/opt/SUNWspro/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/sbin:/usr/bin

# echo $LD_LIBRARY_PATH
/usr/lib:/usr/sfw/lib



More information about the rrd-users mailing list