[gradsusr] Difficulty installing dap (opendap)

Scott Phillips sxp at creare.com
Wed Jan 17 18:02:22 EST 2018


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...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180117/170c7f56/attachment.html>


More information about the gradsusr mailing list