<div dir="ltr"><div>Thank you Jennifer, that error is now gone after changing the CFLAGS as you suggested.</div><div><br></div><div>But now I get another error when gxprinting:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>ga-> gxprint tmp.png<br>libpng warning: Image width exceeds user limit in IHDR<br>libpng warning: Image height exceeds user limit in IHDR<br>libpng error: Invalid IHDR data<br>Created PNG file tmp.png</div></blockquote><div><br></div><div>The png is created with size 0.<br></div><div><br></div><div>Any idea?</div><div><br></div><div>This is the result from ldd libgxpCairo.so</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> linux-vdso.so.1 (0x00007fff52be5000)<br> libcairo.so.2 => /home/fil/grads/supplibs/lib/libcairo.so.2 (0x00007ff6c5409000)<br> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff6c51ec000)<br> libpixman-1.so.0 => /home/fil/grads/supplibs/lib/libpixman-1.so.0 (0x00007ff6c4c67000)<br> libfontconfig.so.1 => /home/fil/grads/supplibs/lib/libfontconfig.so.1 (0x00007ff6c4a28000)<br> libxml2.so.2 => /home/fil/grads/supplibs/lib/libxml2.so.2 (0x00007ff6c4668000)<br> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff6c4464000)<br> libfreetype.so.6 => /home/fil/grads/supplibs/lib/libfreetype.so.6 (0x00007ff6c41a8000)<br> libpng15.so.15 => /home/fil/grads-2.2.0/lib/libpng15.so.15 (0x00007ff6c3f70000)<br> libz.so.1 => /home/fil/grads/supplibs/lib/libz.so.1 (0x00007ff6c3d54000)<br> libXrender.so.1 => /home/fil/grads/supplibs/lib/libXrender.so.1 (0x00007ff6c3b47000)<br> libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007ff6c393f000)<br> libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007ff6c3722000)<br> libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff6c33e2000)<br> libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007ff6c31d0000)<br> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff6c2fc8000)<br> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6c2cc4000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6c2925000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007ff6c5962000)<br> libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007ff6c2720000)<br> libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007ff6c250a000)<br> libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff6c22e2000)<br> libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff6c20de000)<br> libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff6c1ed8000)<br></div></blockquote><div><br></div><div>Regards. <br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-05 16:56 GMT+00:00 Jennifer M Adams <span dir="ltr"><<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Dec 2, 2017, at 7:51 AM, Fil <<a href="mailto:fil@meteopt.com">fil@meteopt.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I was able to finally compile GrADS 2.2.0 on a Debian 9.1 system but unfortunately it's not working as expected. I get this error when drawing anything:<br>
><br>
> ga-> d prmslmsl<br>
> GRIB2 I/O Error: Predefined bitmap applies (ibmap=<a href="tel:8589934604" value="+18589934604">8589934604</a>)<br>
> Data Request Error: Error for variable 'prmslmsl'<br>
> Error ocurred at column 1<br>
> DISPLAY error: Invalid expression<br>
> Expression = prmslmsl<br>
><br>
> I guess that something went wrong with the g2clib compilation?<br>
><br>
> I couldn't compile it with the suggested alteration to the INC variable:<br>
> INC=-I$SUPPLUBS/include -I$UPPLIBS/include/libpng15<br>
><br>
> So I entered the full paths:<br>
> INC=-I/srv/grads/supplibs/<wbr>include -I/srv/grads/supplibs/include/<wbr>libpng15<br>
<br>
</span>In the g2clib makefile, there are some extra CFLAGS that may be forcing this error (“…Predefined bitmap applies…”). I was getting this error too, did some experimenting, and ended up with the third line below:<br>
<br>
#CFLAGS= -fPIC -O3 -g -m64 $(INC) $(DEFS) -D__64BIT__<br>
#CFLAGS= -fPIC -O3 -g -m64 $(INC) $(DEFS)<br>
CFLAGS= $(INC) $(DEFS)<br>
<span class=""><br>
<br>
<br>
><br>
> Also added the 'U' flag to the ARFLAGS var so I didn't get a bunch of warnings about "deterministic mode" and the compilation went through without any errorst. The rest of the supplibs went fine except for dap/gadap which I don't really use.<br>
><br>
> To compile grads successfully I had to export CFLAGS="-fPIC -ldl"<br>
> The final binary is only 8.1 MB which seems odd given that all features were enabled.<br>
><br>
> Any idea on what can be causing this error?<br>
><br>
> I attached the config.log file.<br>
><br>
> Thanks.<br>
><br>
> PS: the provided binary builds on the grads website are not working for me. The rh and suse builds give me this error when using gxprint:<br>
> libpng warning: Image width exceeds user limit in IHDR<br>
> libpng warning: Image height exceeds user limit in IHDR<br>
> libpng error: Invalid IHDR data<br>
<br>
</span>It may be an issue related to the version of libpng your build is linking to. What do you from this:<br>
> ldd gxpCairo.so<br>
<br>
—Jennifer<br>
<br>
> <config.log>__________________<wbr>_____________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://secure-web.cisco.com/1djpzCrM03Si8B4WFf8z4u63zmulf1gy2PwMumCh230FOrNhhBF4RzrsVT0dVcJurg-4w4qfvxHtAiR47oSxfL4bP5f74ALnNbLrBmerku66b5rW-HrH0z-ahebqVHRgh5tnrjitRJeWXoZpNFsHFq6HWMkWzu0ORIWgo6U0CUr2C90mToj5FP9xAFBKJDG4-2J2HSoM7E78O8e18g8GV4J14lRZDSg_42ARUlxFQ586VbDuaEMVQte0pHv5fm4mRUi_GvbMpMV1TW9gFoC8NzrQRvPZBTBJsgoHZL_ohoCycQYwdAV62Bs3MdqeF4eOzZYKsC3-ycMdsI7x6z3JEmcG2IwAMvUFK1ns5_u373QMvNwhERL5ORiZcfLKzdrairW_tUo8iY0xyOremAjGy7Mz5P-umwEgpLhYAHAEqx5oXXdHfWoL5IxnnG7P-Wc4c/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr" rel="noreferrer" target="_blank">http://secure-web.cisco.com/<wbr>1djpzCrM03Si8B4WFf8z4u63zmulf1<wbr>gy2PwMumCh230FOrNhhBF4RzrsVT0d<wbr>VcJurg-<wbr>4w4qfvxHtAiR47oSxfL4bP5f74ALnN<wbr>bLrBmerku66b5rW-HrH0z-<wbr>ahebqVHRgh5tnrjitRJeWXoZpNFsHF<wbr>q6HWMkWzu0ORIWgo6U0CUr2C90mToj<wbr>5FP9xAFBKJDG4-<wbr>2J2HSoM7E78O8e18g8GV4J14lRZDSg<wbr>_<wbr>42ARUlxFQ586VbDuaEMVQte0pHv5fm<wbr>4mRUi_<wbr>GvbMpMV1TW9gFoC8NzrQRvPZBTBJsg<wbr>oHZL_<wbr>ohoCycQYwdAV62Bs3MdqeF4eOzZYKs<wbr>C3-<wbr>ycMdsI7x6z3JEmcG2IwAMvUFK1ns5_<wbr>u373QMvNwhERL5ORiZcfLKzdrairW_<wbr>tUo8iY0xyOremAjGy7Mz5P-<wbr>umwEgpLhYAHAEqx5oXXdHfWoL5Ixnn<wbr>G7P-Wc4c/http%3A%2F%<wbr>2Fgradsusr.org%2Fmailman%<wbr>2Flistinfo%2Fgradsusr</a><br>
<br>
--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote></div><br></div>