On Wed, Sep 19, 2007 at 02:05:19AM -0400, Shah, Haresh K (GE, Corporate, consultant) wrote:
[rrdtool build problem]
The error came like following:
make[3]: Entering directory
/home02/software/Hobbit/rrdtool-1.2.23/bindings/perl-shared' /usr/local/bin/gcc -c -I../../src -xO3 -xdepend -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\" -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 because 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/ -R/usr/local/rrdtool-1.2.23/lib -lrrd -lm /usr/ucb/cc: language optional software package not installed
This looks quite odd, because you're using gcc for the compilation, but /usr/ucb/cc for linking.
On my Solaris 8 box, the linker used is /usr/ccs/bin/ld
Try adding /usr/ccs/bin to your PATH, run "make distclean" and re-run the entire compilation with "./configure; make; make install". For me, this builds without any problem. But I have the full GNU build environment (autoconf, automake, binutils, gcc, make) installed from the Sun Freeware site - this could make a difference.
If all fails, I think you have enough of RRDtool built to get on with the Hobbit installation. The compile problem you have is with the rrdtool Perl modules, and Hobbit doesn't need those. So you can install the run-time library and header-files like this:
mkdir /usr/local/lib /usr/local/include /usr/local/bin cd rrdtool-1.2.23/src mv .libs/*.a .libs/*.la .libs/*.so* /usr/local/lib mv .libs/rrdtool .libs/rrdcgi rrdupdate /usr/local/bin cp rrd.h /usr/local/include
Henrik