[mrtg] MRTG install/setup

asolidum asolidum at dpol.net
Mon Apr 23 21:42:36 CEST 2007


Hello,
Can anyone help setup my MRTG?
I am trying to install it on an ubuntu station.
I am following Tobias instruction, but I am getting errors below when I
execute the following script;
=======================================================================
tech-admin at ts-ubuntu01:/usr/local/src/gd$ make INCLUDEDIRS="-I.
-I../zlib -I../libpng" LIBDIRS="-L../zlib -L. -L../libpng" LIBS="-lgd
-lpng -lz -lm" CFLAGS="-O -DHAVE_LIBPNG"
-----------------------------------------------------------------------

gcc -I. -I../zlib -I../libpng -O -DHAVE_LIBPNG   -c -o gd.o gd.c
gd.c:1:19: error: stdio.h: No such file or directory
gd.c:2:18: error: math.h: No such file or directory
gd.c:3:20: error: string.h: No such file or directory
gd.c:4:20: error: stdlib.h: No such file or directory
In file included from gd.c:6:
gd.h:96: error: expected ‘)’ before ‘*’ token
gd.h:98: error: expected ‘)’ before ‘*’ token
gd.h:100: error: expected ‘)’ before ‘*’ token
gd.h:115: error: expected ‘)’ before ‘*’ token
gd.h:118: error: expected ‘)’ before ‘*’ token
gd.h:121: error: expected ‘)’ before ‘*’ token
gd.h:124: error: expected ‘)’ before ‘*’ token
gd.h:169: error: expected declaration specifiers or ‘...’ before ‘FILE’
gd.h:172: error: expected declaration specifiers or ‘...’ before ‘FILE’
gd.h:182: error: expected declaration specifiers or ‘...’ before ‘FILE’
gd.h:200: error: expected declaration specifiers or ‘...’ before ‘FILE’
gd.h:201: error: expected declaration specifiers or ‘...’ before ‘FILE’
gd.h:242: error: expected ‘)’ before ‘*’ token
In file included from gd.c:7:
gdhelpers.h:12: error: expected ‘)’ before ‘nmemb’
gdhelpers.h:13: error: expected ‘)’ before ‘size’
gdhelpers.h:14: error: expected declaration specifiers or ‘...’ before
‘size_t’
gd.c: In function ‘HWB_to_RGB’:
gd.c:225: warning: incompatible implicit declaration of built-in
function ‘floor’
gd.c: In function ‘gdImageString’:
gd.c:771: warning: incompatible implicit declaration of built-in
function ‘strlen’
gd.c: In function ‘gdImageStringUp’:
gd.c:783: warning: incompatible implicit declaration of built-in
function ‘strlen’
gd.c: In function ‘gdImageCopyResized’:
gd.c:1249: warning: incompatible implicit declaration of built-in
function ‘floor’
gd.c:1257: warning: incompatible implicit declaration of built-in
function ‘floor’
gd.c: At top level:
gd.c:1318: error: expected ‘)’ before ‘*’ token
gd.c: In function ‘gdImageFilledPolygon’:
gd.c:1473: error: too many arguments to function ‘gdRealloc’
gd.c: In function ‘gdImageSetStyle’:
gd.c:1539: warning: incompatible implicit declaration of built-in
function ‘memcpy’
make: *** [gd.o] Error 1
tech-admin at ts-ubuntu01:/usr/local/src/gd$ 



More information about the mrtg mailing list