Re: [netcdfgroup] NetCDF 4.4.1 Compile Error on Centos 6.8.

Thanks Dennis.

That got me over one hump.  

Alas there is a new hump though (also in the libdap2 directory):

Making all in libdap2
make[2]: Entering directory `/usr/local/netcdf-4.4.1/libdap2'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
-I../include -I../oc2  -I../libsrc4 -I/usr/local/netcdf/include  -Msignextend 
-fPIC  -MT libdap2_la-constraints.lo -MD -MP -MF 
.deps/libdap2_la-constraints.Tpo -c -o libdap2_la-constraints.lo `test -f 
'constraints.c' || echo './'`constraints.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../oc2 
-I../libsrc4 -I/usr/local/netcdf/include -Msignextend -fPIC -MT 
libdap2_la-constraints.lo -MD -MP -MF .deps/libdap2_la-constraints.Tpo -c 
constraints.c  -fPIC -DPIC -o .libs/libdap2_la-constraints.o
In file included from dceparselex.h:14,
                 from constraints.c:7:
dcetab.h:63: error: expected â)â before â*â token
In file included from constraints.c:7:
dceparselex.h:49: warning: useless storage class specifier in empty declaration
dceparselex.h:57: error: expected â)â before â*â token
dceparselex.h:58: error: expected â)â before â*â token
dceparselex.h:61: error: expected â)â before â*â token
dceparselex.h:63: error: expected â)â before â*â token
dceparselex.h:64: error: expected â)â before â*â token
dceparselex.h:65: error: expected â)â before â*â token
dceparselex.h:66: error: expected â)â before â*â token
dceparselex.h:67: error: expected â)â before â*â token
dceparselex.h:68: error: expected â)â before â*â token
dceparselex.h:69: error: expected â)â before â*â token
dceparselex.h:70: error: expected â)â before â*â token
dceparselex.h:71: error: expected â)â before â*â token
dceparselex.h:72: error: expected â)â before â*â token
dceparselex.h:73: error: expected â)â before â*â token
dceparselex.h:74: error: expected â)â before â*â token
dceparselex.h:75: error: expected â)â before â*â token
dceparselex.h:76: error: expected â)â before â*â token
dceparselex.h:77: error: expected â)â before â*â token
dceparselex.h:78: error: expected â)â before â*â token
dceparselex.h:79: error: expected â)â before â*â token
dceparselex.h:81: error: expected â)â before â*â token
dceparselex.h:82: error: expected â)â before â*â token
dceparselex.h:83: error: expected â)â before â*â token
dceparselex.h:84: error: expected â)â before â*â token
dceparselex.h:85: error: expected â)â before â*â token
dceparselex.h:86: error: expected â)â before â*â token
dceparselex.h:87: error: expected â)â before â*â token
dceparselex.h:90: error: expected declaration specifiers or â...â before 
âDCEparsestateâ
make[2]: *** [libdap2_la-constraints.lo] Error 1
make[2]: Leaving directory `/usr/local/netcdf-4.4.1/libdap2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/netcdf-4.4.1'
make: *** [all] Error 2



On 7/9/16, 18:04 MDT, "dmh@xxxxxxxx" <dmh@xxxxxxxx> wrote:

Odd, something changed at some point.
In any case try changing line 50(?)
from
typedef struct DCEparsestate {
to
struct DCEparsestate {

and line 55(?)
from
} DCEparsestate;
to
};

On 7/9/2016 5:34 PM, Capehart, William J wrote:
> Hello All:
>
>
>
> I am getting the following compile error in the ./libdap2 directory when
> building NetCDF 4.4.1 with the opendap options enabled (the error
> disappears when I disable DAP on configure).
>
>
>
> Making all in libdap2
>
> make[2]: Entering directory `/usr/local/netcdf-4.4.1/libdap2'
>
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I..  -I../include -I../oc2  -I../libsrc4 -I/usr/local/netcdf/include
> -Msignextend -fPIC  -MT libdap2_la-constraints.lo -MD -MP -MF
> .deps/libdap2_la-constraints.Tpo -c -o libdap2_la-constraints.lo `test
> -f 'constraints.c' || echo './'`constraints.c
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../oc2
> -I../libsrc4 -I/usr/local/netcdf/include -Msignextend -fPIC -MT
> libdap2_la-constraints.lo -MD -MP -MF .deps/libdap2_la-constraints.Tpo
> -c constraints.c  -fPIC -DPIC -o .libs/libdap2_la-constraints.o
>
> In file included from constraints.c:7:
>
> dceparselex.h:49: error: redefinition of typedef âDCEparsestateâ
>
> dceparselex.h:11: note: previous declaration of âDCEparsestateâ was here
>
> make[2]: *** [libdap2_la-constraints.lo] Error 1
>
> make[2]: Leaving directory `/usr/local/netcdf-4.4.1/libdap2'
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory `/usr/local/netcdf-4.4.1'
>
> make: *** [all] Error 2
>
>
>
>
>
> Has anyone else encountered this?
>
>
>
> I am building with libcurl 7.49.1 locally installed (it also happens
> without a local install and just using the centos rpmsâs libraries).
>
>
>
> The pesky lines noted above are as followsâ
>
>
>
> dceparselex.h:~11
>
>
>
> /* Forward */
>
> struct DCEparsestate;
>
> typedef struct DCEparsestate DCEparsestate;
>
>
>
>
>
>
>
> and
>
>
>
> dceparselex.h:~49
>
>
>
> /*! Specifies DCEparsestate. */
>
> typedef struct DCEparsestate {
>
>     DCEconstraint* constraint;
>
>     char errorbuf[1024];
>
>     int errorcode;
>
>     DCElexstate* lexstate;
>
> } DCEparsestate;
>
>
>
> Cheers and Thanks Much
>
>
>
> ================================================================
>
> Bill Capehart <William.Capehart@xxxxxxxxx>   Associate Professor
>
> Atmospheric & Environmental Sciences            Program Director
>
> Civil and Environmental Engineering             Hydrometeorology
>
> 213 Mineral Industries Building
>
> South Dakota School of Mines and Technology     Skype: wcapehart
>
> 501 East Saint Joseph Street                 Ph: +1-605-394-1994
>
> Rapid City, SD 57701-3995                Mobile: +1-605-484-5692
>
> =================== http://capehart.sdsmt.edu ==================
>
>
>
>
>
>
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/
>