pism / pism-builds

Scripts for building PISM on some HPC systems (mostly Chinook and NASA's Pleiades).
GNU General Public License v3.0
0 stars 2 forks source link

Ncview doesn't build #4

Open aaschwanden opened 6 years ago

aaschwanden commented 6 years ago

The error is

mpicc  -g -L/u/aaschwan/local/lib -lpng -L. -ludunits2 -lexpat -L. -ludunits2 -L/u/aaschwan/local/netcdf/lib -lnetcdf -lSM -lICE  -lX11   -Wl,-rpath,/u/aaschwan/local/netcdf/lib -L/u/aaschwan/local/netcdf/lib -L/u/aaschwan/local/lib -o ncview  ncview.o file.o util.o do_buttons.o file_netcdf.o view.o do_print.o epic_time.o interface.o x_interface.o dataedit.o display_info.o plot_xy.o utils.o range.o printer_options.o overlay.o filesel.o set_options.o plot_range.o udu.o SciPlot.o RadioWidget.o cbar.o utCalendar2_cal.o calcalcs.o colormap_funcs.o make_tc_data.o stringlist.o handle_rc_file.o -lpng -L. -ludunits2 -lexpat -L. -ludunits2 -lm -L/u/aaschwan/local/netcdf/lib -lnetcdf -lXaw -lXt  -lSM -lICE  -lX11   -lpng 
file_netcdf.o: In function `netcdf_att_string':
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1793: undefined reference to `ncattget'
file_netcdf.o: In function `netcdf_global_att_string':
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1844: undefined reference to `ncattname'
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1845: undefined reference to `ncattinq'
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1862: undefined reference to `ncattget'
file_netcdf.o: In function `netcdf_dimvar_bounds_id':
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1932: undefined reference to `ncattinq'
/u/aaschwan/local/sources/ncview-2.1.7/src/file_netcdf.c:1937: undefined reference to `ncattget'

it does find the netcdf libs, I'm not sure what this is about.

ckhroulev commented 6 years ago

I know what this is about. I'll fix it once my simulations on Pleiades are done (I don't want to re-build NetCDF in the middle of it all.)