<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.estilocorreo17
        {mso-style-name:estilocorreo17;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.estilocorreo19
        {mso-style-name:estilocorreo19;
        font-family:"Arial","sans-serif";
        color:navy;}
span.estilocorreo21
        {mso-style-name:estilocorreo21;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.shorttext
        {mso-style-name:shorttext;}
span.EmailStyle27
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 85.05pt 70.85pt 85.05pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Huber, it is a small file,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Do a ‘ar tv libudunits.a’, you should see something
like<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If you have all four then you’re good to go. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You are getting an error on creating udunits executable. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If the four objects are not in the libudunits.a file, cd into
the lib directory, and try compiling by hand:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>cc -c -O -I../port/misc -I../port/cfortran
-DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>then type ‘make’ and it should update the libudunits.a
file.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Go to the ../udunits directory and edit the Makefile to remove
the –R option arguments, exit the editor, and type make, or manually<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>cc -o udunits -O udunits.o –L ../lib -ludunits -lm –L
</span>../<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>port/misc -ludport -lm<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>John<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>John Huddleston, PhD<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cooperative Institute for Research in the Atmosphere<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On
Behalf Of </b>Huber Paúl Gilt López<br>
<b>Sent:</b> Thursday, July 08, 2010 1:19 PM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> Re: [gradsusr] error compiling gd library<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Hello John,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Thanks you for your help, I’ve compiled libgb.a library and
also jasper, g2clib, and szip, but I can’t compiled udunits library. I
get the following error:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib
-L/data/hoop/udunits-1.11.7/src/lib -ludunits
-R/data/hoop/udunits-1.11.7/src/port/misc
-L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>(Bundled) cc: warning 922: "-O" is unsupported in the
bundled compiler, ignored.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>(Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib':
use +help for online documentation.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>(Bundled) cc: warning 901: unknown option:
`-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online
documentation.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>ld: Can't find library for -ludunits<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Fatal error.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[2]: *** [udunits] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[2]: Leaving directory
`/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[1]: *** [program] Error 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[1]: Leaving directory
`/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make: *** [udunits/all] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>But I saw that I have the libunits.a library, but I think it
isn’t complete because it’s so small.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>How can I resolve this error?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'># ls lib/libudunits.a<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>lib/libudunits.a<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'># du -sk lib/libudunits.a<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>144 lib/libudunits.a<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Please help me,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Best regards, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Huber<o:p></o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>En nombre
de </b>Huddleston, John<br>
<b>Enviado el:</b> jueves, 08 de julio de 2010 9:54<br>
<b>Para:</b> GrADS Users Forum<br>
<b>Asunto:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Huber,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The /usr/local/lib/libpng.la controls which PNG library is used.
It seems as if someone else built and installed version 14 under /usr/local.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Unless you have sudo privlileges you are going to have to work
around that implementation.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This is going to sound funny..but; if you have already built the
GD library file that’s all you need to continue building.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In my case, the path is
/home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In your case copy the libgd.a to your $(SUPPLIBS)/lib directory
and copy the include files<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h
gdfonts.h gdfontt.h entities.h<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>to your ${SUPPLIBS}/include directory.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Next, go on to build jasper, g2clib, szlib, etc.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>John<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>John Huddleston, PhD<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cooperative Institute for Research in the Atmosphere<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On
Behalf Of </b>Huber Paúl Gilt López<br>
<b>Sent:</b> Wednesday, July 07, 2010 9:42 AM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> Re: [gradsusr] error compiling gd library<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hi John,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Don’t worry about the difficulty that I’m having, I
can’t figure how you build in or with Cygwin, I suppose it is a heavy
work.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Any way, I don’t found any reference with libpng14 in the
libgb’s Makefile , but I found the following lines that <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I think it would be not setup for the libpng12. How can I setup
this Makefile in order to use the libpng12 library, and so try to compile the
gb library? (I’m attaching the libgb’s Makefile)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>LIBPNG12_CONFIG =<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>LIBPNG_CONFIG = /usr/local/bin/libpng-config <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Please help me,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Best regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Huber</span><span lang=EN-GB><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>En
nombre de </b>Huddleston, John<br>
<b>Enviado el:</b> martes, 06 de julio de 2010 14:30<br>
<b>Para:</b> GrADS Users Forum<br>
<b>Asunto:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Huber, so sorry you are having so much difficulty. You should
see the work I have for the Cygwin build!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Look at your gcc line and you will see the path <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>/usr/local/lib/hpux32/libpng14.so<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Edit the Makefile, search for libpng14, edit that line and replace
it with the path to your libpng12 file.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>John<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>John Huddleston, PhD<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cooperative Institute for Research in the Atmosphere<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On
Behalf Of </b>Huber Paúl Gilt López<br>
<b>Sent:</b> Tuesday, July 06, 2010 1:13 PM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> Re: [gradsusr] error compiling gd library<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hello John,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I start to compile all the supplemental libraries; I compiled
readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd
library. Because I have the following error:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>gcc -g -O2 -o gdparttopng gdparttopng.o
-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 /usr/local/lib/hpux32/libjpeg.so
/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<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file
gdparttopng.o<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>ld: Unsatisfied symbol "png_check_sig" in file
./.libs/libgd.a[gd_png.o]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>2 errors.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>collect2: ld returned 1 exit status<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[2]: *** [gdparttopng] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[2]: Leaving directory
`/home/huber/grads/supplibs/src/gd-2.0.34'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[1]: *** [all-recursive] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make[1]: Leaving directory
`/home/huber/grads/supplibs/src/gd-2.0.34'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>make: *** [all] Error 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Who can I setup the correct path for the libpng1.2 library, because
I follow the instructions in the PDF, and I executed the following commands:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>cd
gd-2.0.34<br>
./configure --disable-shared \<br>
--with-png=$HOME/supplibs/src/libpng-1.2.18 \<br>
--with-jpeg=$HOME/supplibs/src/jpeg-6b \<br>
--prefix=$HOME/supplibs/src/gd-2.0.34<br>
make<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>Please
help me,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>Best
regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>Huber</span><span
lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>En nombre
de </b>Huddleston, John<br>
<b>Enviado el:</b> viernes, 02 de julio de 2010 12:20<br>
<b>Para:</b> GrADS Users Forum<br>
<b>Asunto:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES><o:p> </o:p></span></p>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Hi Huber,<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Did you remove the libpng directory, untar libpng
again, configure again with the options specified in Building_GrADS.pdf, and
make the system?<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Ditto for the GD build.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>You must follow the order of the build as shown in the PDF file.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'> <o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>John Huddleston, PhD, PE<o:p></o:p></span></p>
</div>
<div id=divRpF880702>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>From:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] On Behalf Of
Huber Paúl Gilt López [huber.gilt@igp.gob.pe]<br>
<b>Sent:</b> Friday, July 02, 2010 11:06 AM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> Re: [gradsusr] error compiling gd library<o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hello John,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I’ve done your instructions and also I compiled the
zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. </span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>And I have the same problem in libpng-1.2-18 compilation.</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>What is going on with libpng library if I have the libz.a library
in the folder supplibs/lib?</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>(In the end I list the compiled libraries)</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Please help me,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Best regards.</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Huber Paul Gilt López</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'># pwd</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>/home/huber/grads/supplibs/lib</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'># ls</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>libcurl.a libhdf5_hl.a
libncurses.a libreadline.a libxdr.a</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>libdf.a
libjpeg.a libnetcdf.a
libsz.a libz.a</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>libhdf5.a
libmfhdf.a libpng12.a
libudunits.a</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='color:black'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>De:</span></b><span lang=ES style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:black'> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <b>En nombre de </b>Huddleston, John<br>
<b>Enviado el:</b> viernes, 02 de julio de 2010 9:30<br>
<b>Para:</b> GrADS Users Forum<br>
<b>Asunto:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Hi Huber, On June 15th I sent you a PDF on how to build GrADS,
please look it over,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'> libpng doesn't build because you do not have the zlib.</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Get zlib from <a
href="ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz"
target="_blank">ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz</a></span><span
lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>tar xvfz ./tarfiles/zlib-1.2.3.tar.gz <br>
cd zlib-1.2.3/<br>
./configure --prefix=$HOME/supplibs/src/zlib-1.2.3<br>
make<br>
make install<br>
cp ./lib/libz.a $HOME/supplibs/lib<br>
mkdir $HOME/supplibs/include/zlib<br>
cp ./include/zlib.h $HOME/supplibs/include/zlib</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>John</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div id=divRpF809398>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>From:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] On Behalf Of
Huber Paúl Gilt López [huber.gilt@igp.gob.pe]<br>
<b>Sent:</b> Friday, July 02, 2010 8:17 AM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>John,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Because I found this error when I configure PNG library 1.2:</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>#cd
/home/huber/grads/supplibs/src/libpng-1.2.18</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>./configure
--disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>…</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>checking for pow in -lm... yes</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>checking for zlibVersion in -lz... no</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>configure: error: zlib not installed</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>I‘ve exported this variable CC=gcc by this other </span><span
lang=EN-GB style='color:black'>CC='gcc -L/home/huber/grads/supplibs/lib -lz',
then I’ve done make, and make install. <span class=shorttext><span
style='background:white'>Provably</span></span> the libpng12.a library
didn’t build well, how I can fix the previous error when I tried to
configure the libpng12 library?</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>Please help me,</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>Best regards,</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>Huber Paul Gilt Lopez</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='color:black'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>De:</span></b><span lang=ES style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:black'> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <b>En nombre de </b>Huddleston, John<br>
<b>Enviado el:</b> jueves, 01 de julio de 2010 18:46<br>
<b>Para:</b> GrADS Users Forum<br>
<b>Asunto:</b> Re: [gradsusr] error compiling gd library</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Huber</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>You need the PNG library1.2 not 1.4. Somehow
you've installed a more recent version of PNG into /usr/local </span><span
lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Go back to the PNG 1.2 build and do a "make
install" to load it into /usr/local</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>Otherwise, manually edit the Makefile and change it to point
to your $(SUPPLIBS) PNG area.</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'>John Huddleston</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
</div>
<div id=divRpF99626>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>From:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>
gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] On Behalf Of
Huber Paúl Gilt López [huber.gilt@igp.gob.pe]<br>
<b>Sent:</b> Thursday, July 01, 2010 4:15 PM<br>
<b>To:</b> 'GrADS Users Forum'<br>
<b>Subject:</b> [gradsusr] error compiling gd library</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Hello,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>I want to compile the gd library, i used this command, but I have
an unsatisfied symbol. How can I include these missing symbol?</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>#cd
/home/huber/grads/supplibs/src/gd-2.0.34</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>#./configure
--disable-shared\</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'> --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'> --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'> --prefix=/home/huber/grads/supplibs/src/gd-2.0.34</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>#make</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>…</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>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</span><span lang=ES style='color:
black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>ld: Unsatisfied symbol "png_check_sig" in file
./.libs/libgd.a[gd_png.o]</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>1 errors.</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>collect2: ld returned 1 exit status</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>make[2]: *** [gdparttopng] Error 1</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'</span><span
lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>make[1]: *** [all-recursive] Error 1</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>make[1]: Leaving directory
`/home/huber/grads/supplibs/src/gd-2.0.34'</span><span lang=ES
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>make: *** [all] Error 2</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=ES style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Please help me,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Best regards,</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Huber Paul Gilt Lopez</span><span lang=ES style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>IGP-Peru</span><span lang=ES style='color:black'><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>