[mrtg] MRTG-2.8.6 INSTALL

Frederic.NOEL frederic.noel at vx.cit.alcatel.fr
Mon Aug 16 13:55:39 MEST 1999


I want  to install mrtg-2.8.6 on solaris 2.6 system.
 I installed gd-1.6.3, libpng-1.0.3 and zlib-1.1.3 but when I try to
install MRTG with makefile'./configure', I get the message:

./configure --prefix=/home/mrtg/usr --libdir=/home/mrtg/usr/lib
--includedir=/home/mrtg/usr/include
--oldincludedir=/home/mrtg/usr/include --with-gd-lib=/home/mrtg/usr/lib
--with-gd-inc=/home/mrtg/usr/include
--with-z-lib=/home/mrtg/usr/lib --with-z-inc=/home/mrtg/usr/include
--with-png-lib=/home/mrtg/usr/lib --with-png-inc=/home/mrtg/usr/include

creating cache ./config.cache
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking whether make sets ${MAKE}... yes
checking for perl... /usr/local/bin/perl
checking for acos in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no

** The GD library is required for rateup to compile.
   Get it from http://www.boutell.com, compile it and
   use either --with-gd=DIR or
   --with-gd-lib=DIR and --with-gd-inc=DIR to specify
   its location. You might also have to use --with-z-* and
   --with-png-* for gd versions 1.6 and higher



I have, already, installed the GD library.
When I check the config.log file generated, I  see the following
message:

.......
configure:1045: checking for gdImagePng in -lgd
configure:1064: cc -o conftest -g -I/home/mrtg/usr/include
-I/home/mrtg/usr/include -I/home/mrtg/usr/include   -lm -L/home
/mrtg/usr/lib -L/home/mrtg/usr/lib -L/home/mrtg/usr/lib -lgd conftest.c
-lgd -lpng -lz  1>&5
Undefined                       first referenced
 symbol                             in file
pow
/home/mrtg/usr/lib/libpng.a(pngrtran.o)  (symbol belongs to implicit
dependency /agl/t
ools/sparcworks/SC4.0/lib/libm.so.1)
fabs
/home/mrtg/usr/lib/libpng.a(pngrtran.o)  (symbol belongs to implicit
dependency /agl/t
ools/sparcworks/SC4.0/lib/libm.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 1053 "configure"
#include "confdefs.h"
.......


It seems that cc doesn't find the symbols "pow" and "fabs" that must be
in "libm".
Does anyone meet the same problem???
Could it be result of the use of "cc compiler" instead of "gcc" (that I
don't have)???

Thanks for  any idea.

Didier SIMONIN.






--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list