Compilation, etc.

Adam Stern adam at networkdr.net
Tue Jun 21 17:30:47 CEST 2005


Okay, I have two issues:

1) I noticed that my statusmap.cgi was never made, so I tried "make
statusmap.cgi" and I got the following error:

linuxbox# make statusmap.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o statusmap.cgi statusmap.c
getcgi.o cgiuti

ls.o cgiauth.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o

 

statusmap.c:40:53: gd.h: No such file or directory

statusmap.c:41:61: gdfonts.h: No such file or directory

statusmap.c:125: error: syntax error before "load_image_from_file"

statusmap.c:125: warning: data definition has no type or storage class

statusmap.c:157: error: syntax error before "unknown_logo_image"

statusmap.c:157: warning: initialization makes integer from pointer
without a ca

st

statusmap.c:157: warning: data definition has no type or storage class

statusmap.c:158: error: syntax error before "logo_image"

statusmap.c:158: warning: initialization makes integer from pointer
without a ca

st

statusmap.c:158: warning: data definition has no type or storage class

statusmap.c:159: error: syntax error before "map_image"

statusmap.c:159: warning: initialization makes integer from pointer
without a ca

st

statusmap.c:159: warning: data definition has no type or storage class

statusmap.c:160: error: syntax error before "background_image"

statusmap.c:160: warning: initialization makes integer from pointer
without a ca

st

statusmap.c:160: warning: data definition has no type or storage class

statusmap.c: In function `load_background_image':

statusmap.c:1417: warning: comparison between pointer and integer

statusmap.c:1418: error: invalid type argument of `->'

statusmap.c:1419: error: invalid type argument of `->'

statusmap.c:1423: warning: comparison between pointer and integer

statusmap.c: In function `draw_background_image':

statusmap.c:1438: warning: comparison between pointer and integer

statusmap.c: In function `draw_hosts':

statusmap.c:1667: warning: comparison between pointer and integer

statusmap.c:1668: error: invalid type argument of `->'

statusmap.c:1668: error: invalid type argument of `->'

statusmap.c:1825: warning: comparison between pointer and integer

statusmap.c:1826: error: invalid type argument of `->'

statusmap.c:1826: error: invalid type argument of `->'

statusmap.c:1836: warning: comparison between pointer and integer

statusmap.c:1837: error: invalid type argument of `->'

statusmap.c:1837: error: invalid type argument of `->'

statusmap.c: In function `draw_text':

statusmap.c:1896: error: `gdFontSmall' undeclared (first use in this
function)

statusmap.c:1896: error: (Each undeclared identifier is reported only
once

statusmap.c:1896: error: for each function it appears in.)

statusmap.c: In function `draw_host_text':

statusmap.c:1952: error: `gdFontSmall' undeclared (first use in this
function)

statusmap.c: In function `draw_dotted_line':

statusmap.c:2096: error: `gdTransparent' undeclared (first use in this
function)

statusmap.c:2112: error: `gdStyled' undeclared (first use in this
function)

statusmap.c: In function `draw_dashed_line':

statusmap.c:2125: error: `gdTransparent' undeclared (first use in this
function)

statusmap.c:2138: error: `gdStyled' undeclared (first use in this
function)

statusmap.c: In function `initialize_graphics':

statusmap.c:2158: warning: comparison between pointer and integer

statusmap.c: At top level:

statusmap.c:2195: error: syntax error before "load_image_from_file"

statusmap.c: In function `load_image_from_file':

statusmap.c:2197: error: syntax error before "im"

statusmap.c:2202: warning: return makes integer from pointer without a
cast

statusmap.c:2206: warning: return makes integer from pointer without a
cast

statusmap.c:2211: warning: return makes integer from pointer without a
cast

statusmap.c:2215: error: `im' undeclared (first use in this function)

*** Error code 1

 

 

So, the two important lines are:

statusmap.c:40:53: gd.h: No such file or directory

statusmap.c:41:61: gdfonts.h: No such file or directory

 

 

The gd library is installed in my system, and other apps that use it are
happy.  The header file IS in /usr/local/include.

I tried changing it from <gd.h> to
"/various/directories/on/my/machine/where/gd_h/is/located/gd.h" and I
just got errors about undefined objects like gdDestroyImage or something
like that.  Anyway, after much experimenting, I gave up on compiling
statusmap.c, hoping you can help me.

 

 

 

 

The second problem is:

I go to the web and click on a link to a cgi and I just get the "Error:
Could not read object configuration data!" page.  My nagios -v shows no
errors or warnings, and my log is empty.  I tried tracing through all
the .c files to see what causes that error message, and I couldn't
figure it out.  So basically, Nagios doesn't work at all.

 

I REALLY REALLY need help.  So please contact me at adam at networkdr.net.
Thanks in advance!

 

 

Adam Stern

Systems Engineer

Network Doctor

580 Sylvan Ave

P: (201) 837-0514

F: (201) 871-0831

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050621/78380dac/attachment.html>


More information about the Users mailing list