Compiling with gd issues (some hints)

mshirley at ysi.com mshirley at ysi.com
Tue May 25 14:32:59 CEST 2004


I had a very similar situation as well.  There's obviously lots of people
having issues with the ./configure script realizing gd is installed since
the script itself says "try this .... if you still can't get it to work
then move on to other things".  Unfortunately i don't accept answers like
that so i decided to get it working.  Using debian and apt-get installing
libgd-dev, libgd2, etc.. still did not provide a solution.  As the other
people have mentioned even with the proper libs installed --with-gd-inc and
--with-gd-lib don't work either.  My final solution although it's not
suggested and extremely messy was to modify the configure script where it
does the check and insert the proper gdfound=yep.  Everything worked find
and i received 0 compilation errors.  I'm sure the other solutions provided
will work just fine but it seems to me there's something wrong with the way
nagios does it's configure.

Mark Shirley
IT Helpdesk
YSI Incorporated


|---------+---------------------------------------->
|         |           Graeme Lee                   |
|         |           <graeme at omni.net.au>         |
|         |           Sent by:                     |
|         |           nagios-users-admin at lists.sour|
|         |           ceforge.net                  |
|         |                                        |
|         |                                        |
|         |           05/24/2004 09:34 PM          |
|         |                                        |
|---------+---------------------------------------->
  >---------------------------------------------------------------------------------------------------------------|
  |                                                                                                               |
  |       To:       nagios-users at lists.sourceforge.net                                                            |
  |       cc:                                                                                                     |
  |       Subject:  [Nagios-users] Compiling with gd issues (some hints)                                          |
  >---------------------------------------------------------------------------------------------------------------|




Installing nagios on OpenBSD 3.5, came across the usual

checking for gdImagePng in -lgd (order 1)... (cached) no
checking for gdImagePng in -lgd (order 2)... (cached) no
checking for gdImagePng in -lgd (order 3)... (cached) no

Which everyone seems to run into.  And yes, using --with-gd-inc and
--with-gd-lib didn't work.  I was using libgd from the ports tree.
libpng and libjpeg are installed along with libgd.  It all looks good.
nm lists the correct symbols.

Anyway, compiling a test program (as suggested by a previous user):

char gdImagePng();
int main() {
 gdImagePng();
 return 0;
}

led to discover that libgd was linked with libttf  (true type fonts)

Adding an environment variable LIBS="-L/usr/local/lib -lz -lgd -ljpeg
-lpng -lttf"

made everything work as expected

Can anyone add further comments to this?


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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







-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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