[gradsusr] Difficulty installing dap (opendap)

Jennifer M Adams jadams21 at gmu.edu
Tue Jan 23 07:01:40 EST 2018


Hi, Scott —
The two dap libraries (libdap and gadap) are needed for accessing station data via opendap, a little-used GrADS feature. The libs are written in C++, and have always been somewhat of a challenge to compile. There are no resources within COLA to udpate the gadap library in order to meet the needs of modern operating systems and compilers, or to test it with newer versions of libdap. You can easily skip over these two libraries and keep moving forward with your build. But why not just use our pre-compiled binaries:

ftp://cola.gmu.edu/grads/2.2/grads-2.2.0-bin-centos7.3-x86_64.tar.gz

--Jennifer

> On Jan 17, 2018, at 6:02 PM, Scott Phillips <sxp at creare.com> wrote:
> 
> I’m attempting to install GrADS 2.2 on a CentOS 7.4 machine and got stuck on the dap supplemental library (libdap-3.7.8-modified).  I hit a compile error midway through in dds.y (see below for build commands and snippet of output where errors start).  Has anyone run into this and overcome it?  Otherwise, has anyone had luck installing GrADS 2.2 with a newer version of libdap?  Opendap has been less than helpful I think since this is a modified version of 3.7.8.  Any help is much appreciated.
>  
> Thanks,
> Scott
>  
> CentOS 7.4
> gcc version 4.8.5 (with gcc-g++ installed)
>  
> CPPFLAGS=-I$SUPPLIBS/include
> export CPPFLAGS
> PKG_CONFIG_PATH=$SUPPLIBS/lib/pkgconfig
> export PKG_CONFIG_PATH
> ./configure –prefix=$SUPPLIBS
> make install
>  
>> g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./gl -I./GNU -I/home/centos/grads/supplibs/include/libxml2 -I/home/centos/grads/supplibs/include -Wall -W -Wcast-align -g   -O2 -MT libdap_la-dds.tab.lo -MD -MP -MF .deps/libdap_la-dds.tab.Tpo -c dds.tab.cc  -fPIC -DPIC -o .libs/libdap_la-dds.tab.o
> dds.y:89:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> "The descriptor object returned from the dataset was null.\n\
> ^
> dds.y:93:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> "In the dataset descriptor object: Expected a variable declaration\n\
> ^
> dds.y: In function 'int ddsparse()':
> dds.y:159:33: error: 'arg' was not declared in this scope
>        parse_error((parser_arg *)arg, NO_DDS_MSG,
>                                  ^
> dds.y:184:23: error: 'arg' was not declared in this scope
>     add_entry(*DDS_OBJ(arg), &ctor, &current, part);
>                        ^
> dds.y:76:46: note: in definition of macro 'DDS_OBJ'
> #define DDS_OBJ(arg) ((DDS *)((parser_arg *)(arg))->_object)
>                                               ^
> dds.y:193:43: error: 'arg' was not declared in this scope
>          invalid_declaration((parser_arg *)arg, smsg, $1, $2);
>                                            ^
> dds.y:210:23: error: 'arg' was not declared in this scope
>     add_entry(*DDS_OBJ(arg), &ctor, &current, part);
>  
> …and so on…
>  
>  
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1oWOcpHBhlYr-xomdQVRUjgx6XWLDBR5iHJYr4ztSxJbqn520MFkzRtIIMgj_NdbJJqUPCFEoxnL46_POZ4zy2FZUH72XgV74l_uxcEa5rWacgk6hpkJmW36E0bUF72EB_Og8zHyC61okTISVJUB0Q_AQ3R33XgFzNQS2SMqh21haQl_zWzP-RMIjf-VuHzzPK9TgkoIp0v7tJqqFJ88cRSk4-nV1mvj1AWIfyKD0yHBLVrEwPini_8gbsjmDpGbzDOtxhGP0S4dCuV6VGq9NSXblZ3uhrGmMIGgfEpmdItClHplnoDJjptNh7NiVagiPO4MHFD_icX5Ekts6rNDOEhYZgS_6Q56UTxNutI8mo4gM1enPOVhDXBeCf5uGtNXo3pAJJGOc41b8m5I52Yblo1OaMDwMWNJRuW4RBn81cyHCGBxlUVOn6e3f_zhXBTDm/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University






More information about the gradsusr mailing list