Nagios: Undefined symbol gdImageCreateFromJpeg...

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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi tdsimpso,
> gdImageCreateFromJpeg               /var/tmp//ccLKWBOr.o
My guess is that you dont have the 'gd-devel' package installed.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tdsimpsoAuthor Commented:
How do you install these different components?

gd, gd-devel, gd-progs?
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.
tdsimpsoAuthor Commented:
I'm using Sun Solaris.
Thanks for you help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.