Makefile GD lib problem on Centos 4 (aka RHES4)

Luke Johnson luke at rushmore.com
Fri Jun 17 00:41:04 CEST 2005


Thanks Arno,

In order...

-I have all the library files, I believe, which the devel packages 
provide.  Those were the bits I included showing the libpng.so, etc are 
the actual libraries in their respective paths, and the Yum snippets.  
I'm pretty dang sure I have libpng/libjpeg/libgd.

As a second note, the ./configure spits out:

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

... but Ifind this...

[root at chilkat nagios-2.0b3]# grep gdImagePng /usr/include/gd.h
BGD_DECLARE(void) gdImagePng (gdImagePtr im, FILE * out);
BGD_DECLARE(void) gdImagePngCtx (gdImagePtr im, gdIOCtx * out);
BGD_DECLARE(void) gdImagePngEx (gdImagePtr im, FILE * out, int level);
BGD_DECLARE(void) gdImagePngCtxEx (gdImagePtr im, gdIOCtx * out, int level);
BGD_DECLARE(void) gdImagePngToSink (gdImagePtr im, gdSinkPtr out);
BGD_DECLARE(void *) gdImagePngPtr (gdImagePtr im, int *size);
BGD_DECLARE(void *) gdImagePngPtrEx (gdImagePtr im, int *size, int level);

[root at chilkat nagios-2.0b3]# grep gdImagePng /usr/lib/libgd.so.2
Binary file /usr/lib/libgd.so.2 matches

[root at chilkat nagios-2.0b3]#

-I have used the /lib64, /lib, and no paths (in which case Make should 
fall back to /etc/ld.so.conf file which has both the prior paths).

-As for Perl, nope, missed those notes.  Hmm, I'll go look for them, 
wonder what the preferred method is?  Might make for an interesting 
second topic (embedded=possible memory leaks, mod_perl2='developmental' 
with Apache2, external perl='slower').

Thanks again,
LJ

Arno Lehmann wrote:

> Hello,
>
> Luke Johnson wrote:
>
>> Hi,
>>
>> I've setup a few Nagios boxes in years past, and trying it again 
>> today, however I'm running into a (first time for me, but I'm sure 
>> common) problem with GD libs on Centos 4 (x86_64, Which should be 
>> identical to Redhat ES 4).  In the past I've hand compiled GD, but on 
>> this box I made sure to install the necessary packages (info attached 
>> below).
>
>
> Two things I noticed:
>
> - Have you installed the png and jpeg devel packages?
> I'm not used to RH systems, so I can't tell you how to check, though.
>
> - If necessary at all: have you tried giving the lib64 directories to 
> ./configure?
>
>> [root at chilkat nagios-2.0b3]# make clean > /dev/null
>> [root at chilkat nagios-2.0b3]# ./configure --prefix=/usr/local/nagios 
>> --with-cgiurl=/cgi-bin --with-htmurl=/ --with-nagios-user=nagios 
>> --with-nagios-group=nagios --with-command-group=nagcmd 
>> --with-gd-lib=/usr/lib --with-gd-inc=/usr/include --enable-embedded-perl 
>
>                like here?
>
> ...
>
>> Embedded Perl interpreter will be compiled in...
>> Internally compiled Perl scripts will be cached...
>> Using threaded perl
>
>
> Did you read the notes concerning embedded perl and memory leaks? I 
> don't know if this is fixed by now, but that was an issue.
>
> Arno
>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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