Nagios: Undefined symbol gdImageCreateFromJpeg...

Posted on 2004-11-08
Last Modified: 2012-06-27
I am not very strong C/C++ programmer and I would like some help diagnosing this problem.  I am trying to compile nagios 1.2 and I get this error during compiling:

cfd@hostname>make all
cd ./base && make
make[1]: Entering directory `/global/appsvrdg/d01/app/nagios/src/nagios-1.2/base'
make[1]: `nagios' is up to date.
make[1]: Leaving directory `/global/appsvrdg/d01/app/nagios/src/nagios-1.2/base'
cd ./cgi && make
make[1]: Entering directory `/global/appsvrdg/d01/app/nagios/src/nagios-1.2/cgi'
gcc -I/global/appsvrdg/d01/usr/local/include -DHAVE_CONFIG_H -DNSCGI -L/global/appsvrdg/d01/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 -liconv -lz -lm -lpng edata.o ../xdata/xedtemplate.c -o statusmap.cgi
Undefined                       first referenced
 symbol                             in file
gdImageCreateFromJpeg               /var/tmp//ccLKWBOr.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 `/global/appsvrdg/d01/app/nagios/src/nagios-1.2/cgi'
make: *** [all] Error 2

Any ideas?

Question by:tdsimpso
    LVL 36

    Expert Comment

    Hi tdsimpso,
    > gdImageCreateFromJpeg               /var/tmp//ccLKWBOr.o
    My guess is that you dont have the 'gd-devel' package installed.
    LVL 36

    Accepted Solution

    gd - A graphics library for quick creation of PNG or JPEG images.
    gd-devel - The development libraries and header files for gd.
    gd-progs - Utility programs that use libgd.

    Author Comment

    How do you install these different components?

    gd, gd-devel, gd-progs?
    LVL 36

    Expert Comment

    If you are running Redhat or Fedora you should be able to do :-
    up2date -u gd gd-devel gd-progs

    If you are not running RedHat let me know which type of Linux you have and I will tell you what to do to install them.

    Author Comment

    I'm using Sun Solaris.
    Thanks for you help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Lets look at the default installation and configuration of FreeProxy 4.10 REQUIREMENTS 1. FreeProxy 4.10 Application - Can be downloaded here ( 2. Ensure that you disable the windows fi…
    Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now