Opened 15 years ago

Closed 15 years ago

#20238 closed defect (fixed)

nco 3.9.8 fails to build

Reported by: rabbielvis@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: build error Cc:
Port: nco

Description (last modified by mf2k (Frank Schima))

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

Change History (4)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: build error added; nco builderror removed
Owner: changed from macports-tickets@… to takeshi@…
Port: @3.9.8 removed

comment:2 Changed 15 years ago by tenomoto (Takeshi Enomoto)

This is due to the update of netcdf has to 4.0. This caused a significant impact to apps that use netcdf. While I will fix the problem, would you try compile netcdf without netcdf4 variant (-netcdf4).

comment:3 Changed 15 years ago by rabbielvis@…

Compiling netcdf without netcdf4 did allow nco to build. Thank you for your help and your work maintaining the port.

comment:4 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Fixed. r53672

Note: See TracTickets for help on using tickets.