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