Compiling with gd issues (some hints)
Graeme Lee
graeme at omni.net.au
Tue May 25 03:34:15 CEST 2004
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
More information about the Users
mailing list