statusmap.cgi compile problem

Andreas Brandino mailinglist at ebox.gr
Fri Dec 30 23:21:37 CET 2005


hi all



syste specs: 

debian testing

gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)

nagios 2.0rc1 (source)

libgd2-xpm & libgd2-xpm-dev installed (debian package)



statusmap.cgi wasnt compiled automaticallu so:

cd cgi

make statusmap.cgi



unfortunately i get this error:



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make statusmap.cgi 

gcc -g -O2 -I/usr/include -DHAVE_CONFIG_H -DNSCGI -L/lib -o statusmap.cgi
 statusmap.c getcgi.o cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o
 statusdata-cgi.o xstatusdata-cgi.o  

/tmp/cczEQX6r.o: In function `cleanup_graphics':/root/nagios-2.0rc1/cgi/s
tatusmap.c:2262: undefined reference to `gdImageDestroy'

/tmp/cczEQX6r.o: In function `draw_background_image':/root/nagios-2.0rc1/
cgi/statusmap.c:1440: undefined reference to `gdImageCopy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1443: undefined reference to
 `gdImageDestroy'

/tmp/cczEQX6r.o: In function `draw_text':/root/nagios-2.0rc1/cgi/statusma
p.c:1894: undefined reference to `gdFontSmall'

:/root/nagios-2.0rc1/cgi/statusmap.c:1897: undefined reference to
 `gdImageFilledRectangle'

:/root/nagios-2.0rc1/cgi/statusmap.c:1898: undefined reference to
 `gdFontSmall'

:/root/nagios-2.0rc1/cgi/statusmap.c:1898: undefined reference to
 `gdImageString'

/tmp/cczEQX6r.o: In function `draw_host_text':/root/nagios-2.0rc1/cgi/sta
tusmap.c:1950: undefined reference to `gdFontSmall'

/tmp/cczEQX6r.o: In function `draw_line':/root/nagios-2.0rc1/cgi/statusma
p.c:2083: undefined reference to `gdImageLine'

/tmp/cczEQX6r.o: In function `draw_dashed_line':/root/nagios-2.0rc1/cgi/s
tatusmap.c:2133: undefined reference to `gdImageSetStyle'

:/root/nagios-2.0rc1/cgi/statusmap.c:2136: undefined reference to
 `gdImageLine'

/tmp/cczEQX6r.o: In function `draw_dotted_line':/root/nagios-2.0rc1/cgi/s
tatusmap.c:2107: undefined reference to `gdImageSetStyle'

:/root/nagios-2.0rc1/cgi/statusmap.c:2110: undefined reference to
 `gdImageLine'

/tmp/cczEQX6r.o: In function `load_image_from_file':/root/nagios-2.0rc1/c
gi/statusmap.c:2213: undefined reference to `gdImageCreateFromPng'

:/root/nagios-2.0rc1/cgi/statusmap.c:2215: undefined reference to
 `gdImageCreateFromJpeg'

:/root/nagios-2.0rc1/cgi/statusmap.c:2217: undefined reference to
 `gdImageCreateFromXbm'

:/root/nagios-2.0rc1/cgi/statusmap.c:2221: undefined reference to
 `gdImageCreateFromGd'

:/root/nagios-2.0rc1/cgi/statusmap.c:2225: undefined reference to
 `gdImageCreateFromGd2'

/tmp/cczEQX6r.o: In function `initialize_graphics':/root/nagios-2.0rc1/cg
i/statusmap.c:2155: undefined reference to `gdImageCreate'

:/root/nagios-2.0rc1/cgi/statusmap.c:2160: undefined reference to
 `gdImageColorAllocate'

:/root/nagios-2.0rc1/cgi/statusmap.c:2161: undefined reference to
 `gdImageColorAllocate'

:/root/nagios-2.0rc1/cgi/statusmap.c:2162: undefined reference to
 `gdImageColorAllocate'

:/root/nagios-2.0rc1/cgi/statusmap.c:2163: undefined reference to
 `gdImageColorAllocate'

:/root/nagios-2.0rc1/cgi/statusmap.c:2164: undefined reference to
 `gdImageColorAllocate'

/tmp/cczEQX6r.o:/root/nagios-2.0rc1/cgi/statusmap.c:2165: more undefined
 references to `gdImageColorAllocate' follow

/tmp/cczEQX6r.o: In function `initialize_graphics':/root/nagios-2.0rc1/cg
i/statusmap.c:2173: undefined reference to `gdImageColorTransparent'

:/root/nagios-2.0rc1/cgi/statusmap.c:2176: undefined reference to
 `gdImageInterlace'

/tmp/cczEQX6r.o: In function `load_background_image':/root/nagios-2.0rc1/
cgi/statusmap.c:1422: undefined reference to `gdImageDestroy'

/tmp/cczEQX6r.o: In function `write_graphics':/root/nagios-2.0rc1/cgi/sta
tusmap.c:2246: undefined reference to `gdImagePng'

/tmp/cczEQX6r.o: In function `draw_hosts':/root/nagios-2.0rc1/cgi/statusm
ap.c:1666: undefined reference to `gdImageCopy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1667: undefined reference to
 `gdImageDestroy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1824: undefined reference to
 `gdImageCopy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1825: undefined reference to
 `gdImageDestroy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1835: undefined reference to
 `gdImageCopy'

:/root/nagios-2.0rc1/cgi/statusmap.c:1794: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:1756: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:1783: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:1778: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:1803: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:1774: undefined reference to
 `gdImageFillToBorder'

/tmp/cczEQX6r.o: In function `calculate_circular_layer_coords':/root/nagi
os-2.0rc1/cgi/statusmap.c:2742: undefined reference to `sin'

:/root/nagios-2.0rc1/cgi/statusmap.c:2741: undefined reference to
 `sin'

/tmp/cczEQX6r.o: In function `draw_circular_layer_markup':/root/nagios-2.
0rc1/cgi/statusmap.c:2834: undefined reference to `sin'

:/root/nagios-2.0rc1/cgi/statusmap.c:2835: undefined reference to
 `sin'

:/root/nagios-2.0rc1/cgi/statusmap.c:2840: undefined reference to
 `sin'

/tmp/cczEQX6r.o:/root/nagios-2.0rc1/cgi/statusmap.c:2841: more undefined
 references to `sin' follow

/tmp/cczEQX6r.o: In function `draw_circular_layer_markup':/root/nagios-2.
0rc1/cgi/statusmap.c:2853: undefined reference to `gdImageLine'

:/root/nagios-2.0rc1/cgi/statusmap.c:2856: undefined reference to
 `gdImageLine'

:/root/nagios-2.0rc1/cgi/statusmap.c:2866: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:2869: undefined reference to
 `gdImageArc'

:/root/nagios-2.0rc1/cgi/statusmap.c:2873: undefined reference to
 `sin'

:/root/nagios-2.0rc1/cgi/statusmap.c:2874: undefined reference to
 `sin'

:/root/nagios-2.0rc1/cgi/statusmap.c:2890: undefined reference to
 `gdImageFillToBorder'

collect2: ld returned 1 exit status

make: *** [statusmap.cgi] Error 1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



any idea how to fix it?

thx





-----------------------

The mailing list archive is found here:

http://www.nagiosexchange.org/nagios-users.34.0.html

				


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list