Opened 8 years ago

Last modified 8 years ago

#52058 new defect

netcdf @4.4.1: error: redefinition of typedef ‘DCEparsestate’

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: snowleopard Cc: alison.mansheim@…
Port: netcdf

Description

netcdf @4.4.1 fails to build on Snow Leopard with gcc-4.2:

[  2%] Building C object libsrc4/CMakeFiles/netcdf4.dir/nc4file.c.o
cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/build/libsrc4 && /Developer/usr/bin/gcc-4.2  -DCURL_STATICLIB=1 -DHAVE_CONFIG_H -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/include -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/oc2 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/libsrc -I/opt/local/lib/hdf5-18/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/build  -pipe -Os  -DNDEBUG -arch x86_64 -mmacosx-version-min=10.6 -fPIC   -o CMakeFiles/netcdf4.dir/nc4file.c.o   -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/libsrc4/nc4file.c
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/libdap2/constraints.c:7:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/libdap2/dceparselex.h:48: error: redefinition of typedef ‘DCEparsestate’
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_science_netcdf/netcdf/work/netcdf-c-4.4.1/libdap2/dceparselex.h:11: error: previous declaration of ‘DCEparsestate’ was here
make[2]: *** [libdap2/CMakeFiles/dap2.dir/constraints.c.o] Error 1

https://build.macports.org/builders/ports-10.6_x86_64_legacy-builder/builds/1694

Change History (1)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: alison.mansheim@… added

Has duplicate #52077.

Note: See TracTickets for help on using tickets.