NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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/
netcdfgroup
archives: