[gradsusr] error compiling gd library

Huber Paúl Gilt López huber.gilt at igp.gob.pe
Fri Jul 2 10:17:38 EDT 2010


John,

 

Because I found this error when I configure PNG library 1.2:

 

#cd /home/huber/grads/supplibs/src/libpng-1.2.18

./configure --disable-shared
--prefix=/home/huber/grads/supplibs/src/libpng-1.2.18




checking for pow in -lm... yes

checking for zlibVersion in -lz... no

configure: error: zlib not installed

 

I‘ve exported this variable CC=gcc by this other CC='gcc
-L/home/huber/grads/supplibs/lib -lz', then I’ve done make, and make
install. Provably the libpng12.a library didn’t build well, how I can fix
the previous error when I tried to configure the libpng12 library?

 

Please help me,

Best regards,

Huber Paul Gilt Lopez

 

 

 

 

 

 

  _____  

De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Huddleston, John
Enviado el: jueves, 01 de julio de 2010 18:46
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

 

Huber

 

You need the PNG library1.2 not 1.4.  Somehow you've installed a more recent
version of PNG into /usr/local 

 

Go back to the PNG 1.2 build and do a "make install" to load it into
/usr/local

 

Otherwise, manually edit the Makefile and change it to point to your
$(SUPPLIBS) PNG area.

 

John Huddleston

 

  _____  

From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On
Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Thursday, July 01, 2010 4:15 PM
To: 'GrADS Users Forum'
Subject: [gradsusr] error compiling gd library

Hello,

 

I want to compile the gd library, i used this command, but I have an
unsatisfied symbol. How can I include these missing symbol?

 

#cd /home/huber/grads/supplibs/src/gd-2.0.34

#./configure --disable-shared\

 --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\

 --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\

 --prefix=/home/huber/grads/supplibs/src/gd-2.0.34

#make

 




gcc -g -O2 -o gdparttopng gdparttopng.o  -L/home/huber/grads/supplibs/lib
-L/usr/local/lib/hpux32 -L/usr/lib/X11R4
-L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a
-L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so
/usr/local/lib/hpux32/libintl.so -lX11 -ljpeg
/usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so
/usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so
/usr/local/lib/hpux32/libpng14.so -lz -lm

ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o]

1 errors.

collect2: ld returned 1 exit status

make[2]: *** [gdparttopng] Error 1

make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'

make: *** [all] Error 2

 

Please help me,

Best regards,

Huber Paul Gilt Lopez

IGP-Peru

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100702/16f4402c/attachment-0003.html 


More information about the gradsusr mailing list