Re[2]: [Nagios-users] statusmap.cgi compile problem
finally, defining these parameters fixed the problem: --with-command-group=nagcmd --with-gd-lib=PATHTOLIBDIR - --with-gd-inc=PATHTOHEADREDIR --with-jpeg=PATHTOLIBDIR - --with-png=PATHTOLIBDIR --with-zlib=PATHTOLIBDIR thx Markus and the rest for helping Saturday, December 31, 2005, 12:53:57 PM, you wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > Hello, > are you shure the compiler can find the libs, is /etc/ld.so.conf and > have you tried to run ldconfig? > There is also an other way to tell the compiler the truth. You can tell > him the path to the libraries by using this > /configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > - --with-htmlurl=/ --with-nagios-user=nagios --with-nagios-group=nagcmd > - --with-command-group=nagcmd --with-gd-lib=PATHTOLIBDIR > - --with-gd-inc=PATHTOHEADREDIR --with-jpeg=PATHTOLIBDIR > - --with-png=PATHTOLIBDIR --with-zlib=PATHTOLIBDIR > tell him the path to the libraries he needs. Before this don't forget to > run make clean or make devclean. > hth > Markus > Brandino Andreas wrote: >> installing all these packages: >> >> libgd1-noxpm >> libttf2 libgdome2-dev libgd-perl >> & >> zlib-bin >> & >> libjpeg-mmx-dev >> libjpeg-mmx-progs >> libjpeg62 >> libjpeg62-dev >> libjpeg-progs >> & >> imgsizer >> imagemagick libdps1 libice6 libjasper-1.701-1 liblcms1 libmagick9 libsm6 >> libxt6 python python2.3 >> gs html2ps lpr libjasper-runtime liblcms-utils libwmf-bin python-doc >> python-tk python-profiler python2.3-doc python2.3-profiler >> >> i see no difference >> >> >> cat /etc/ld.so.conf >> /usr/X11R6/lib >> /usr/local/lib >> >> i think the problem is that while find gd libs it cant find specific >> declarations of functions in it (mauybe got removed with new versions) >> >> is possible to send me compiled statusmap.cgi from 2.0rc1? (someone >> sould have it). statusmap.cgi from older versions seem to work >> >> thx >> >> >> >> Saturday, December 31, 2005, 3:21:45 AM, you wrote: >> >> >>>Hello Andreas, >> >> >>>I had the same Problem yesterday. It seems that statusmap needs also the >>>libjpeg ,the libpng and the zlib to compile correctly. >> >> >>>hth >> >> >>>Markus >> >> > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.2 (GNU/Linux) > iD8DBQFDtmNF9/yQU0fWfl0RAhtAAKC3lcVryCS3o1SuDywHdmWGcVZAGACeNssq > cF2qOCRIDA80nkiJvq+nGjo= > =ZZuc > -END PGP SIGNATURE- > --- > 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_id=7637&alloc_id=16865&op=click > ___ > Nagios-users mailing list > Nagios-users@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 > __ NOD32 1.1347 (20051230) Information __ > This message was checked by NOD32 antivirus system. > http://www.eset.com -- Best regards, Brandinomailto:[EMAIL PROTECTED] --- 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_id=7637&alloc_id=16865&op=click ___ Nagios-users mailing list Nagios-users@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
Re[2]: [Nagios-users] statusmap.cgi compile problem
installing all these packages: libgd1-noxpm libttf2 libgdome2-dev libgd-perl & zlib-bin & libjpeg-mmx-dev libjpeg-mmx-progs libjpeg62 libjpeg62-dev libjpeg-progs & imgsizer imagemagick libdps1 libice6 libjasper-1.701-1 liblcms1 libmagick9 libsm6 libxt6 python python2.3 gs html2ps lpr libjasper-runtime liblcms-utils libwmf-bin python-doc python-tk python-profiler python2.3-doc python2.3-profiler i see no difference cat /etc/ld.so.conf /usr/X11R6/lib /usr/local/lib i think the problem is that while find gd libs it cant find specific declarations of functions in it (mauybe got removed with new versions) is possible to send me compiled statusmap.cgi from 2.0rc1? (someone sould have it). statusmap.cgi from older versions seem to work thx Saturday, December 31, 2005, 3:21:45 AM, you wrote: > Hello Andreas, > I had the same Problem yesterday. It seems that statusmap needs also the > libjpeg ,the libpng and the zlib to compile correctly. > hth > Markus > Brandino Andreas schrieb: >> - installing the "libgd1-noxpm" i see no difference >> >> - >> apt-get install libgd2 >> Reading package lists... Done >> Building dependency tree... Done >> Package libgd2 is not available, but is referred to by another package. >> This may mean that the package is missing, has been obsoleted, or >> is only available from another source >> However the following packages replace it: >> libgd2-xpm libgd2-noxpm >> E: Package libgd2 has no installation candidate >> >> >> >> >> Saturday, December 31, 2005, 1:18:54 AM, you wrote: >> >> >>>Did you install libgd2 package? >> >> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Brandino Sent: December 30, 2005 5:23 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] statusmap.cgi compile problem 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 `gdImageColorAl
Re[2]: [Nagios-users] statusmap.cgi compile problem
- installing the "libgd1-noxpm" i see no difference - apt-get install libgd2 Reading package lists... Done Building dependency tree... Done Package libgd2 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libgd2-xpm libgd2-noxpm E: Package libgd2 has no installation candidate Saturday, December 31, 2005, 1:18:54 AM, you wrote: > Did you install libgd2 package? >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf >> Of Andreas Brandino >> Sent: December 30, 2005 5:23 PM >> To: nagios-users@lists.sourceforge.net >> Subject: [Nagios-users] statusmap.cgi compile problem >> >> 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