[gradsusr] Compiling GrADS 2.2.0 on Debian 9.x

Fil fil at meteopt.com
Wed Dec 6 00:07:47 EST 2017


Thank you Jennifer, that error is now gone after changing the CFLAGS as you
suggested.

But now I get another error when gxprinting:

ga-> gxprint tmp.png
> libpng warning: Image width exceeds user limit in IHDR
> libpng warning: Image height exceeds user limit in IHDR
> libpng error: Invalid IHDR data
> Created PNG file tmp.png
>

The png is created with size 0.

Any idea?

This is the result from ldd libgxpCairo.so

        linux-vdso.so.1 (0x00007fff52be5000)
>         libcairo.so.2 => /home/fil/grads/supplibs/lib/libcairo.so.2
> (0x00007ff6c5409000)
>         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007ff6c51ec000)
>         libpixman-1.so.0 => /home/fil/grads/supplibs/lib/libpixman-1.so.0
> (0x00007ff6c4c67000)
>         libfontconfig.so.1 =>
> /home/fil/grads/supplibs/lib/libfontconfig.so.1 (0x00007ff6c4a28000)
>         libxml2.so.2 => /home/fil/grads/supplibs/lib/libxml2.so.2
> (0x00007ff6c4668000)
>         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff6c4464000)
>         libfreetype.so.6 => /home/fil/grads/supplibs/lib/libfreetype.so.6
> (0x00007ff6c41a8000)
>         libpng15.so.15 => /home/fil/grads-2.2.0/lib/libpng15.so.15
> (0x00007ff6c3f70000)
>         libz.so.1 => /home/fil/grads/supplibs/lib/libz.so.1
> (0x00007ff6c3d54000)
>         libXrender.so.1 => /home/fil/grads/supplibs/lib/libXrender.so.1
> (0x00007ff6c3b47000)
>         libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6
> (0x00007ff6c393f000)
>         libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6
> (0x00007ff6c3722000)
>         libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6
> (0x00007ff6c33e2000)
>         libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
> (0x00007ff6c31d0000)
>         librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff6c2fc8000)
>         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6c2cc4000)
>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6c2925000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007ff6c5962000)
>         libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1
> (0x00007ff6c2720000)
>         libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0
> (0x00007ff6c250a000)
>         libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1
> (0x00007ff6c22e2000)
>         libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6
> (0x00007ff6c20de000)
>         libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
> (0x00007ff6c1ed8000)
>

Regards.


2017-12-05 16:56 GMT+00:00 Jennifer M Adams <jadams21 at gmu.edu>:

>
> > On Dec 2, 2017, at 7:51 AM, Fil <fil at meteopt.com> wrote:
> >
> > Hi,
> >
> > 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:
> >
> > ga-> d prmslmsl
> > GRIB2 I/O Error: Predefined bitmap applies (ibmap=8589934604)
> > Data Request Error:  Error for variable 'prmslmsl'
> >   Error ocurred at column 1
> > DISPLAY error:  Invalid expression
> >   Expression = prmslmsl
> >
> > I guess that something went wrong with the g2clib compilation?
> >
> > I couldn't compile it with the suggested alteration to the INC variable:
> > INC=-I$SUPPLUBS/include -I$UPPLIBS/include/libpng15
> >
> > So I entered the full paths:
> > INC=-I/srv/grads/supplibs/include -I/srv/grads/supplibs/include/libpng15
>
> 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:
>
> #CFLAGS= -fPIC -O3 -g -m64 $(INC) $(DEFS) -D__64BIT__
> #CFLAGS= -fPIC -O3 -g -m64  $(INC) $(DEFS)
> CFLAGS=  $(INC) $(DEFS)
>
>
>
> >
> > 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.
> >
> > To compile grads successfully I had to export CFLAGS="-fPIC -ldl"
> > The final binary is only 8.1 MB which seems odd given that all features
> were enabled.
> >
> > Any idea on what can be causing this error?
> >
> > I attached the config.log file.
> >
> > Thanks.
> >
> > 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:
> > libpng warning: Image width exceeds user limit in IHDR
> > libpng warning: Image height exceeds user limit in IHDR
> > libpng error: Invalid IHDR data
>
> It may be an issue related to the version of libpng your build is linking
> to. What do you from this:
> > ldd gxpCairo.so
>
> —Jennifer
>
> > <config.log>_______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://secure-web.cisco.com/1djpzCrM03Si8B4WFf8z4u63zmulf1
> gy2PwMumCh230FOrNhhBF4RzrsVT0dVcJurg-4w4qfvxHtAiR47oSxfL4bP5f74ALnN
> bLrBmerku66b5rW-HrH0z-ahebqVHRgh5tnrjitRJeWXoZpNFsHF
> q6HWMkWzu0ORIWgo6U0CUr2C90mToj5FP9xAFBKJDG4-2J2HSoM7E78O8e18g8GV4J14lRZDSg
> _42ARUlxFQ586VbDuaEMVQte0pHv5fm4mRUi_GvbMpMV1TW9gFoC8NzrQRvPZBTBJsgoHZL_
> ohoCycQYwdAV62Bs3MdqeF4eOzZYKsC3-ycMdsI7x6z3JEmcG2IwAMvUFK1ns5_
> u373QMvNwhERL5ORiZcfLKzdrairW_tUo8iY0xyOremAjGy7Mz5P-
> umwEgpLhYAHAEqx5oXXdHfWoL5IxnnG7P-Wc4c/http%3A%2F%
> 2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20171206/29d7bbac/attachment-0001.html 


More information about the gradsusr mailing list