Help! Can't compile...

Hobbs, Richard hobbs at mongeese.co.uk
Sat Mar 1 11:21:22 CET 2003


Hello,

Yes, there is a libgd in '/usr/local/lib', and the ./configure program
found it... but... I compiled GD without JPEG support. This is obviuosly
why it's failing ...but I thought we didn't need JPEG support for Nagios
to work. It has PNG support and zlib support, so I thought that was enough
to be able to make the graphics.

  turnip:/usr/local/lib# ls -l
  total 1848
  drwxr-sr-x    3 root     staff        4096 Jan 28 01:02 hugs98
  -rw-r--r--    1 root     staff      720632 Feb 28 19:53 libgd.a
  -rwxr-xr-x    1 root     staff         747 Feb 28 19:53 libgd.la
  lrwxrwxrwx    1 root     staff          14 Feb 28 19:53 libgd.so ->
libgd.so.2.0.0
  lrwxrwxrwx    1 root     staff          14 Feb 28 19:53 libgd.so.2 ->
libgd.so.2.0.0
  -rwxr-xr-x    1 root     staff      432079 Feb 28 19:53 libgd.so.2.0.0
  lrwxrwxrwx    1 root     staff          10 Feb 28 17:39 libpng.a ->
libpng12.a
  lrwxrwxrwx    1 root     staff          11 Feb 28 17:39 libpng.so ->
libpng.so.3
  lrwxrwxrwx    1 root     staff          17 Feb 28 17:39 libpng.so.3 ->
libpng.so.3.1.2.5
  -rwxr-xr-x    1 root     staff      200076 Feb 28 17:39
libpng.so.3.1.2.5
  -rw-r--r--    1 root     staff      224406 Feb 28 17:39 libpng12.a
  lrwxrwxrwx    1 root     staff          13 Feb 28 17:39 libpng12.so ->
libpng12.so.0
  lrwxrwxrwx    1 root     staff          19 Feb 28 17:39 libpng12.so.0 ->
libpng12.so.0.1.2.5
  -rwxr-xr-x    1 root     staff      200076 Feb 28 17:39
libpng12.so.0.1.2.5
  -rwxr-xr-x    1 root     staff       65526 Feb 28 16:28 libz.a
  drwxrwsr-x    4 root     staff        4096 Jan 26 02:23 mon
  drwxr-sr-x    2 root     staff        4096 Feb 28 17:39 pkgconfig
  drwxrwsr-x    3 root     staff        4096 Jan 26 02:16 python2.1
  turnip:/usr/local/lib#

I've been trying some other things this morning, but nothing has worked...
I hope someone can help!

Thanks,
Richard.


> Is there a libgd in /usr/local/lib?  Or did you install it
> somewhere else?
>
> Just curious what OS are you using?
>
> On Fri, 2003-02-28 at 15:13, Hobbs, Richard wrote:
> > Hello,
> >
> > I'm trying to compile, but I'm receiving this error:
> >
> >
> ======================================================================
> > turnip:~/installs/nagios/nagios-1.0# make all
> > cd ./base && make
> > make[1]: Entering directory `/root/installs/nagios/nagios-1.0/base'
> > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -L/usr/local/lib  nagios.c
> > checks.o config.o commands.o flapping.o logging.o notifications.o
> > sehandlers.o utils.o sretention.o ../xdata/xrddefault.c
> > ../common/comments.c ../xdata/xcddefault.c ../common/objects.c
> > ../xdata/xodtemplate.c ../common/statusdata.c
> ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c
> ../common/downtime.c
> > ../xdata/xdddefault.c    -lm -o nagios
> > make[1]: Leaving directory `/root/installs/nagios/nagios-1.0/base'
> > cd ./cgi && make
> > make[1]: Entering directory `/root/installs/nagios/nagios-1.0/cgi'
> > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib  statusmap.c
> > getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c
> > ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c
> > -lgd -lz -lm -lpng edata.o ../xdata/xedtemplate.c -o statusmap.cgi
> > /tmp/ccyjmRWt.o: In function `load_image_from_file':
> > /root/installs/nagios/nagios-1.0/cgi/statusmap.c:2222: undefined
> > reference to `gdImageCreateFromJpeg'
> > collect2: ld returned 1 exit status
> > make[1]: *** [statusmap.cgi] Error 1
> > make[1]: Leaving directory `/root/installs/nagios/nagios-1.0/cgi'
> > make: *** [all] Error 2
> > turnip:~/installs/nagios/nagios-1.0#
> >
> ======================================================================
> >
> > Why is this happening? I've installed the GD libraries, the PNG
> > libraries, the JPEG libraries, and the ZLIB libraries... But I'm
> > stuck!
> >
> > I've tried everything.... Someone please help! lol
> >
> > Thanks,
> > Richard.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
>

--
Richard Hobbs
hobbs at mongeese.co.uk
http://mongeese.co.uk | http://unixforum.co.uk

"There's only one way of life, and that's your own" - The Levellers

_____________________________________________________
Send all your jokes to: jokes at fishsponge.co.uk !!
To subscribe, email: jokes-subscribe at fishsponge.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3226 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030301/afe30a03/attachment.bin>


More information about the Users mailing list