[MacPorts] #20238: nco 3.9.8 fails to build
MacPorts
noreply at macports.org
Wed Jul 8 14:46:58 PDT 2009
#20238: nco 3.9.8 fails to build
----------------------------------+-----------------------------------------
Reporter: rabbielvis@… | Owner: takeshi@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: build error | Port: nco
----------------------------------+-----------------------------------------
Changes (by macsforever2000@…):
* keywords: nco builderror => build error
* owner: macports-tickets@… => takeshi@…
* port: nco @3.9.8 => nco
Old description:
> I'm trying to install the current version on nco, 3.9.8. The build fails
> with the following error:
>
> mcc-509-3:~ mike$ sudo port install nco
> ---> Fetching nco
> ---> Verifying checksum(s) for nco
> ---> Extracting nco
> ---> Configuring nco
> ---> Building nco
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_nco/work/nco-3.9.8"
> && make all " returned error 2
> Command output: nco_netcdf.h:171: error: conflicting types for
> 'nc_get_var1_ushort'
> /opt/local/include/netcdf.h:1032: error: previous declaration of
> 'nc_get_var1_ushort' was here
> nco_netcdf.h:183: error: conflicting types for 'nc_put_var1_string'
> /opt/local/include/netcdf.h:1060: error: previous declaration of
> 'nc_put_var1_string' was here
> nco_netcdf.h:187: error: conflicting types for 'nc_get_vara_ushort'
> /opt/local/include/netcdf.h:1147: error: previous declaration of
> 'nc_get_vara_ushort' was here
> nco_netcdf.h:199: error: conflicting types for 'nc_put_vara_string'
> /opt/local/include/netcdf.h:1175: error: previous declaration of
> 'nc_put_vara_string' was here
> nco_netcdf.h:203: error: conflicting types for 'nc_get_vars_ushort'
> /opt/local/include/netcdf.h:1282: error: previous declaration of
> 'nc_get_vars_ushort' was here
> nco_netcdf.h:215: error: conflicting types for 'nc_put_vars_string'
> /opt/local/include/netcdf.h:1317: error: previous declaration of
> 'nc_put_vars_string' was here
> nco_netcdf.h:219: error: conflicting types for 'nc_get_varm_ushort'
> /opt/local/include/netcdf.h:1425: error: previous declaration of
> 'nc_get_varm_ushort' was here
> nco_netcdf.h:231: error: conflicting types for 'nc_put_varm_string'
> /opt/local/include/netcdf.h:1460: error: previous declaration of
> 'nc_put_varm_string' was here
> nco_netcdf.h:240: error: conflicting types for 'nc_put_att_string'
> /opt/local/include/netcdf.h:916: error: previous declaration of
> 'nc_put_att_string' was here
> nco_netcdf.h:245: error: conflicting types for 'nc_get_att_ushort'
> /opt/local/include/netcdf.h:890: error: previous declaration of
> 'nc_get_att_ushort' was here
> In file included from nco_att_utl.h:29,
> from nco_att_utl.c:9:
> nco.h:183:1: warning: "NC_NETCDF4" redefined
> In file included from nco_att_utl.h:25,
> from nco_att_utl.c:9:
> /opt/local/include/netcdf.h:151:1: warning: this is the location of the
> previous definition
> make[3]: *** [nco_att_utl.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Error: Status 1 encountered during processing.
>
> I have the netcdf @4.0.1_3+netcdf4 port installed
New description:
I'm trying to install the current version on nco, 3.9.8. The build fails
with the following error:
{{{
mcc-509-3:~ mike$ sudo port install nco
---> Fetching nco
---> Verifying checksum(s) for nco
---> Extracting nco
---> Configuring nco
---> Building nco
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_nco/work/nco-3.9.8"
&& make all " returned error 2
Command output: nco_netcdf.h:171: error: conflicting types for
'nc_get_var1_ushort'
/opt/local/include/netcdf.h:1032: error: previous declaration of
'nc_get_var1_ushort' was here
nco_netcdf.h:183: error: conflicting types for 'nc_put_var1_string'
/opt/local/include/netcdf.h:1060: error: previous declaration of
'nc_put_var1_string' was here
nco_netcdf.h:187: error: conflicting types for 'nc_get_vara_ushort'
/opt/local/include/netcdf.h:1147: error: previous declaration of
'nc_get_vara_ushort' was here
nco_netcdf.h:199: error: conflicting types for 'nc_put_vara_string'
/opt/local/include/netcdf.h:1175: error: previous declaration of
'nc_put_vara_string' was here
nco_netcdf.h:203: error: conflicting types for 'nc_get_vars_ushort'
/opt/local/include/netcdf.h:1282: error: previous declaration of
'nc_get_vars_ushort' was here
nco_netcdf.h:215: error: conflicting types for 'nc_put_vars_string'
/opt/local/include/netcdf.h:1317: error: previous declaration of
'nc_put_vars_string' was here
nco_netcdf.h:219: error: conflicting types for 'nc_get_varm_ushort'
/opt/local/include/netcdf.h:1425: error: previous declaration of
'nc_get_varm_ushort' was here
nco_netcdf.h:231: error: conflicting types for 'nc_put_varm_string'
/opt/local/include/netcdf.h:1460: error: previous declaration of
'nc_put_varm_string' was here
nco_netcdf.h:240: error: conflicting types for 'nc_put_att_string'
/opt/local/include/netcdf.h:916: error: previous declaration of
'nc_put_att_string' was here
nco_netcdf.h:245: error: conflicting types for 'nc_get_att_ushort'
/opt/local/include/netcdf.h:890: error: previous declaration of
'nc_get_att_ushort' was here
In file included from nco_att_utl.h:29,
from nco_att_utl.c:9:
nco.h:183:1: warning: "NC_NETCDF4" redefined
In file included from nco_att_utl.h:25,
from nco_att_utl.c:9:
/opt/local/include/netcdf.h:151:1: warning: this is the location of the
previous definition
make[3]: *** [nco_att_utl.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Status 1 encountered during processing.
}}}
I have the netcdf @4.0.1_3+netcdf4 port installed
--
--
Ticket URL: <http://trac.macports.org/ticket/20238#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list