Learn how to a build a cloud-first strategyRegister Now


Nagios: Undefined symbol gdImageCreateFromJpeg...

Posted on 2004-11-08
Medium Priority
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
  • 3
  • 2
LVL 36

Expert Comment

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

Accepted Solution

grblades earned 2000 total points
ID: 12524253
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

ID: 12534424
How do you install these different components?

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

Expert Comment

ID: 12534742
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

ID: 12604411
I'm using Sun Solaris.
Thanks for you help.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

810 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