<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I was able to finally compile GrADS 2.2.0 on a Debian 9.1 system but unfortunately it&#39;s not working as expected. I get this error when drawing anything:<br><br>ga-&gt; d prmslmsl<br>GRIB2 I/O Error: Predefined bitmap applies (ibmap=8589934604)<br>Data Request Error:  Error for variable &#39;prmslmsl&#39;<br>  Error ocurred at column 1<br>DISPLAY error:  Invalid expression<br>  Expression = prmslmsl<br><br></div>I guess that something went wrong with the g2clib compilation?<br><br></div>I couldn&#39;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:</div><div>INC=-I/srv/grads/supplibs/include -I/srv/grads/supplibs/include/libpng15</div><div><br></div><div>Also added the &#39;U&#39; flag to the ARFLAGS var so I didn&#39;t get a bunch of warnings about &quot;deterministic mode&quot; and the compilation went through without any errorst. The rest of the supplibs went fine except for dap/gadap which I don&#39;t really use.</div><div><br></div><div>To compile grads successfully I had to export CFLAGS=&quot;-fPIC -ldl&quot;<br></div><div>The final binary is only 8.1 MB which seems odd given that all features were enabled.<br></div><div><br></div><div>Any idea on what can be causing this error?</div><div><br></div><div>I attached the config.log file.<br></div><div><br></div><div>Thanks.</div><div><br></div><div>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:</div><div>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></div></div>