Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

problem in building SCAM

Hi,

I 'm trying to build the SCAM. It seems that I can successfully compile the UI files, but when linking them I got the following error messages. Does anybody know what the problem could be? Is it possible that the NCARG installed in our Linux machine has some problem? Thanks a lot.
-----------------------------------------------------------------------
gmake[1]: Entering directory `/u2/yqliu/CAM3/cam1/models/atm/cam/tools/scam/ui'
gcc ChangeAxisScaleDlg.moc.o ChangeAxisScaleDlg.o ChangeAxisScaleDlgImpl.moc.o ChangeAxisScaleDlgImpl.o IOPSelectDateDlg.moc.o IOPSelectDateDlg.o IOPSelectDateDlgImpl.moc.o IOPSelectDateDlgImpl.o LoadData.moc.o LoadData.o LoadDataImpl.moc.o LoadDataImpl.o MainWnd.moc.o MainWnd.o MainWndImpl.moc.o MainWndImpl.o OptionsDlg.moc.o OptionsDlg.o OptionsDlgImpl.moc.o OptionsDlgImpl.o PlistDlg.moc.o PlistDlg.o PlistDlgImpl.moc.o PlistDlgImpl.o PlotDlg.moc.o PlotDlg.o PlotDlgImpl.moc.o PlotDlgImpl.o PostPlottingDlg.moc.o PostPlottingDlg.o PostPlottingDlgImpl.moc.o PostPlottingDlgImpl.o SelectGlobalDataDlg.moc.o SelectGlobalDataDlg.o SelectGlobalDataDlgImpl.moc.o SelectGlobalDataDlgImpl.o dataset.o dbgmodel.o defaults.o field.o fieldlistbox.o fifomodel.o history.o main.o manager.o map.o model.o msgdlg.o ncarg.o ncarg_stubs.o ncfile.o plot.moc.o plot.o rpcmodel.o sicfile.o timeconvert.o utils.o
-o ../scamgui -L/usr/local/netcdf-3.5.0/lib -lnetcdf -L/usr/local/ncar-4.3.1/lib -lncarg -lncarg_gks -lncarg_c -lg2c -L/usr/lib/qt-3.1/lib -lqt -lqui -L/usr/X11R6/lib -lX11 -lm -lXext -ldl
/usr/local/ncar-4.3.1/lib/libncarg.a(agcurv.o)(.text+0x74): In function `agcurv_':
: undefined reference to `ftn_str_copy'
/usr/local/ncar-4.3.1/lib/libncarg.a(agfpbn.o)(.text+0x4b): In function `agfpbn_':
: undefined reference to `__mth_i_amod'
/usr/local/ncar-4.3.1/lib/libncarg.a(aggtch.o)(.text+0x42): In function `aggtch_':
: undefined reference to `ftn_str_copy'
/usr/local/ncar-4.3.1/lib/libncarg.a(aggtch.o)(.text+0x83): In function `aggtch_':
: undefined reference to `ftn_str_copy'
/usr/local/ncar-4.3.1/lib/libncarg.a(aglbls.o)(.text+0x814): In function `aglbls_':
: undefined reference to `__arg_reduce_'
/usr/local/ncar-4.3.1/lib/libncarg.a(agqurv.o)(.text+0x3d9): In function `agqurv_':
: undefined reference to `ftn_i_sign'
 

pjr

Member
Do you have more than one fortran compiler on your machine?

It looks like the linker is trying to access entry points it cant find. I suspect
you built the ncar graphics with one library and the scam gui with a different one.

Phil
 
Top