[mrtg] Need help
Tolga
tolga at ozses.net
Wed Mar 12 08:31:01 CET 2008
Narayanaswamy, Raaman wrote:
> I hope i solved the problem but after installation of RRD tool, when i
> try installing mrtg...........i got below error when we run make command
> testsvc at admu154 <mailto:testsvc at admu154> /tmp/rrdbuild/mrtg-2.16.1$ make
> gcc -I/tmp/rrdbuild/lb/include -I/tmp/rrdbuild/lb/include/libart-2.0
> -I/tmp/rrdbuild/lb/include/freetype2 -I/tmp/rrdbuild/lb/include/libpng
> -DGFORM_GD=gdImagePng -O3 -Wall -Wpointer-arith -Wcast-align
> -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c
> ./src/rateup.c -o bin/rateup.o
> src/rateup.c: In function `update':
> src/rateup.c:1576: warning: comparison between signed and unsigned
> src/rateup.c:1613: warning: comparison between signed and unsigned
> src/rateup.c:1650: warning: comparison between signed and unsigned
> src/rateup.c:1687: warning: comparison between signed and unsigned
> LD_RUN_PATH= gcc bin/rateup.o -o bin/rateup -L/tmp/rrdbuild/lb/lib
> -Wl,-Bstatic -lgd -lpng -lz -Wl,-Bdynamic -lm
> /usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'"
> ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
> /usr/bin/perl -0777 -p -i~ -e 's at GRAPHFMT="...";@GRAPHFMT="png";@'
> <mailto:%27s at GRAPHFMT=%22...%22;@GRAPHFMT=%22png%22;@%27> ./bin/mrtg
> ./bin/indexmaker
> testsvc at admu154 <mailto:testsvc at admu154> /tmp/rrdbuild/mrtg-2.16.1$
> Is that ok, whether i will create problem..........I need help..........
That doesn't look like an error. Warnings are not errors.
> Regards
> N.Raaman
>
> ------------------------------------------------------------------------
> *From:* mrtg-bounces at lists.oetiker.ch
> [mailto:mrtg-bounces at lists.oetiker.ch] *On Behalf Of *Narayanaswamy,
> Raaman
> *Sent:* Tuesday, March 11, 2008 11:09 PM
> *To:* mrtg at lists.oetiker.ch
> *Subject:* [mrtg] Need help
>
> Hello,
>
> I am trying install MRTG, before that I am installing RRD tool. I have
> complied all lib as given in documents in the url
> _http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html_
>
> When its trying to create make file for installation……….There is error
> as shown below…………Can some help me…….it will be very great for us.
>
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for RRDs
> cd perl-shared && make
> make[4]: Entering directory
> `/tmp/rrdbuild/rrdtool-1.2.27/bindings/perl-shared'
> cp RRDs.pm blib/lib/RRDs.pm
> cp ntmake.pl blib/lib/ntmake.pl
> /usr/bin/perl /usr/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.3/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv
> RRDs.xsc RRDs.c
>
> cc -c -I../../src -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"1.2027\"
> -DXS_VERSION=\"1.2027\" -fPIC
> "-I/usr/lib/perl5/5.8.3/x86_64-linux-thread-multi/CORE"
> -DPERLPATCHLEVEL=8 RRDs.c
>
> RRDs.c: In function `XS_RRDs_xport':
> RRDs.xs:332: warning: unused variable `row_cnt'
> RRDs.c:417: warning: unused variable `RETVAL'
> RRDs.c:418: warning: unused variable `targ'
> Running Mkbootstrap for RRDs ()
> chmod 644 RRDs.bs
> rm -f blib/arch/auto/RRDs/RRDs.so
> LD_RUN_PATH="/usr/lib64:/lib64" cc -shared -L/usr/local/lib64 RRDs.o
> -L../../src/.libs/ -Wl,--rpath -Wl,/usr/local/rrdtool-1.2.27/lib -lrrd
> -o blib/arch/auto/RRDs/RRDs.so -lm -lpng -lz -lfreetype
>
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lpng
> collect2: ld returned 1 exit status
> make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
> make[4]: Leaving directory
> `/tmp/rrdbuild/rrdtool-1.2.27/bindings/perl-shared'
> make[3]: *** [perl_shared] Error 2
> make[3]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.27/bindings'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.27/bindings'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.27'
> make: *** [all] Error 2
> testsvc at admu154 /tmp/rrdbuild/rrdtool-1.2.27$
>
>
> Regards
> N.Raaman
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
--
Stay with *nix :)
More information about the mrtg
mailing list