Nagios 2.3.1 and 2.4 compilation problem - statusmap.cgi

Felipe Tocchetto felipe at tocchetto.com
Fri Jun 2 20:10:44 CEST 2006


Patrick

Thanks for your answer:

I compile the GD again with this flags ( thanks to Luc Suryo):

 ./configure --with-png=/usr/local/lib/
--with-freetype=/usr/local/lib/ --with-jpeg=/usr/local/lib/

On 6/1/06, Patrick Morris <patrick.morris at hp.com> wrote:
> Check the FAQs:
>
> http://www.nagios.org/faqs/viewfaq.php?faq_id=182&expand=false&showdesc=false
>
> On Thu, 01 Jun 2006, Felipe Tocchetto wrote:
>
> > Recently I started to try install Nagios in a Solaris 10 box, but I
> > didn´t get it works.
> >
> > First I was trying the 2.3.1 version of Nagios, so yesterday I notice
> > that the new version 2.4 has this fix:
> >
> > - Fix for missing  include that prevented CGI compilation under Solaris
> >
> > So I downloaded the new version but I am getting the same compilation error.
> >
> > The flags that I am using (the same I was using in previous version):
> >
> > ./configure --prefix=/usr/local/nagios-2.4/ --with-nagios-user=nagios
> > --with-nagios-group=nagios --with-command-group=nagcmd
> > --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include
> >
> > The error is after de 'make all' command:
> >
> > gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCGI
> > -L/usr/local/lib -o statusmap.cgi statusmap.c getcgi.o cgiutils.o
> > cgiauth.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o
> > xstatusdata-cgi.o -lgd -liconv -lpng -ljpeg -lz -lm -lrt
> > Undefined                       first referenced
> > symbol                             in file
> > gdImageCreateFromJpeg               /var/tmp//ccu5735L.o
> > ld: fatal: Symbol referencing errors. No output written to statusmap.cgi
> > collect2: ld returned 1 exit status
> > make[1]: *** [statusmap.cgi] Error 1
> > make[1]: Leaving directory `/usr/local/src/nagios-2.4/cgi'
> > make: *** [all] Error 2
> >
> > Some extra information:
> >
> > SunOS 5.10 Generic_118844-26 i86pc i386 i86pc
> > gcc version 3.3.2
> > gd-2.0.33
> > libiconv-1.8
> > libpng-1.2.8
> > jpeg-6b
> >
> > If anybody knows how to solve this I agree.
> >
> > Best Wishes
> >
> > Thanks for you attention
> >
> > --
> > Felipe L. Tocchetto
> > msn ftocchetto at hotmail.com
> > icq 163263160
> > felipe at tocchetto.com
> > http://www.felipe.tocchetto.com
> >
> >
> > -------------------------------------------------------
> > All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> > Fully trained technicians. The highest number of Red Hat certifications in
> > the hosting industry. Fanatical Support. Click to learn more
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
> > _______________________________________________
> > 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
>
> --
> Patrick Morris
> Snapfish/HP
> 303 Second Street
> Suite 500, South Tower
> San Francisco, CA 94107
> (415) 979-3727
>
>


-- 
Felipe L. Tocchetto
msn ftocchetto at hotmail.com
icq 163263160
felipe at tocchetto.com
http://www.felipe.tocchetto.com


_______________________________________________
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