*** GD, PNG,and/or JPEG libraries could not be located... *********

Onyi Ejiasa onyi at firstlink.com
Wed Jul 2 23:31:58 CEST 2003


Here is the output from config.log...

configure:2660: checking for gdImagePng in -lgd (order 1)
configure:2679: gcc -o conftest -g -O2 -I/usr/local/include/libpng/   -L/usr/local/lib/ conftest.c -lgd -lz -lm -lpng -ljpeg  1>&5
configure:2675: Undefined symbol `_gdImagePng' referenced from text segment
collect2: ld returned 1 exit status  
configure: failed program was:
#line 2668 "configure"
#include "confdefs.h"
        /* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImagePng();   

int main() {
gdImagePng()
; return 0; }
configure:2706: checking for gdImagePng in -lgd (order 2)   
configure:2725: gcc -o conftest -g -O2 -I/usr/local/include/libpng/   -L/usr/local/lib/ conftest.c -lgd -lz -lm -lpng  1>&5
configure:2721: Undefined symbol `_gdImagePng' referenced from text segment
collect2: ld returned 1 exit status    
configure: failed program was:
#line 2714 "configure"
#include "confdefs.h"
        /* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImagePng();

int main() {
gdImagePng()
; return 0; }
configure:2753: checking for gdImagePng in -lgd (order 3)
configure:2772: gcc -o conftest -g -O2 -I/usr/local/include/libpng/   -L/usr/local/lib/ conftest.c -lgd -lpng -lz -lm  1>&5
configure:2768: Undefined symbol `_gdImagePng' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 2761 "configure"
#include "confdefs.h"
        /* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImagePng();

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

----------------------------------------
Onyi C. Ejiasa - NWT, NCW, NCLA
First Link Technology, Inc.
4260 East Evans Avenue, Denver, CO 80222
----------------------------------------
PH 303.691.8200 | FAX 303.691.8208
----------------------------------------
onyi at firstlink.com | www.firstlink.com
----------------------------------------


-----Original Message-----
From: Skip Montanaro [mailto:skip at pobox.com]
Sent: Wednesday, July 02, 2003 2:49 PM
To: Onyi Ejiasa
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Re: *** GD, PNG, and/or JPEG libraries could
not be located... *********



    Onyi> When compiling nagios 1.1 with...

    Onyi> "./configure --enable-embedded-perl --with-perlcache \
    Onyi>     --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include"

    Onyi> I get this error...

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

    Onyi> *** GD, PNG, and/or JPEG libraries could not be located... *********

What does the relevant piece of your config.log file show?  There were
probably some undefined symbols when linking the check program.  I just
submitted a patch to nagios-devel for configure.in which adds -liconv to the
gd check link lines if it's available (I bumped into this on Solaris).

-- 
Skip Montanaro
skip at pobox.com
Got spam? http://spambayes.sf.net/


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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