I’m encountering a problem when compiling a fortran code (on macosx mavericks).
During the compilation I got the error:
Undefined symbols for architecture x86_64:
“_commons_clust$0”, referenced from:
lightning in rams-7.0-dbg.a(light.o)
cluster in rams-7.0-dbg.a(cluster.o)
.Lfcmp1 in rams-7.0-dbg.a(cluster.o)
.Lfcmp2 in rams-7.0-dbg.a(cluster.o)
.Lfcmp3 in rams-7.0-dbg.a(cluster.o)
.Lfcmp4 in rams-7.0-dbg.a(cluster.o)
hk in rams-7.0-dbg.a(hk.o)
…
“_commons_lpi$0”, referenced from:
lightning in rams-7.0-dbg.a(light.o)
ave_lpi in rams-7.0-dbg.a(ave_lpi.o)
calcola_lpi in rams-7.0-dbg.a(lpi.o)
leggi_light in rams-7.0-dbg.a(leggi_light.o)
write_out in rams-7.0-dbg.a(write.o)
“_conv_coms$0”, referenced from:
conpar in rams-7.0-dbg.a(rconv.o)
cu_environ in rams-7.0-dbg.a(rconv.o)
kuocp in rams-7.0-dbg.a(rconv.o)
cp2mod in rams-7.0-dbg.a(rconv.o)
“_io_params$0”, referenced from:
comm_time in rams-7.0-dbg.a(rams_master.o)
rams_output in rams-7.0-dbg.a(rams_master.o)
anal_write in rams-7.0-dbg.a(anal_write.o)
anlavg in rams-7.0-dbg.a(ranlavg.o)
.Lfcmp1 in rams-7.0-dbg.a(ranlavg.o)
dtset in rams-7.0-dbg.a(modsched.o)
eng_params in rams-7.0-dbg.a(ruser.o)
…
“_io_params$1”, referenced from:
anal_write in rams-7.0-dbg.a(anal_write.o)
make_sfcfiles in rams-7.0-dbg.a(mksfc_driver.o)
masterput_nl in rams-7.0-dbg.a(mpass_init.o)
nodeget_nl in rams-7.0-dbg.a(mpass_init.o)
ndvi_read in rams-7.0-dbg.a(ndvi_read.o)
ndvi_file_inv in rams-7.0-dbg.a(ndvi_read.o)
ndvi_update in rams-7.0-dbg.a(ndvi_read.o)
…
“_isan_coms$0”, referenced from:
isan_driver in rams-7.0-dbg.a(asgen.o)
opspec4 in rams-7.0-dbg.a(asgen.o)
isan_file_inv in rams-7.0-dbg.a(file_inv.o)
isenio in rams-7.0-dbg.a(isan_io.o)
sigzio in rams-7.0-dbg.a(isan_io.o)
isnstage in rams-7.0-dbg.a(asti.o)
strmfun in rams-7.0-dbg.a(asti.o)
…
“_isan_coms$1”, referenced from:
isan_driver in rams-7.0-dbg.a(asgen.o)
isan_file_inv in rams-7.0-dbg.a(file_inv.o)
isnstage in rams-7.0-dbg.a(asti.o)
strmfun in rams-7.0-dbg.a(asti.o)
isnsig in rams-7.0-dbg.a(avarf.o)
vshyd in rams-7.0-dbg.a(avarf.o)
nvfillm in rams-7.0-dbg.a(rname.o)
…
“_micphys$0”, referenced from:
initlz in rams-7.0-dbg.a(rdint.o)
micro_master in rams-7.0-dbg.a(mic_init.o)
initqin in rams-7.0-dbg.a(mic_init.o)
initqin3 in rams-7.0-dbg.a(mic_init.o)
jnmbinit in rams-7.0-dbg.a(mic_init.o)
micinit in rams-7.0-dbg.a(mic_init.o)
masterput_nl in rams-7.0-dbg.a(mpass_init.o)
…
“_micphys$1”, referenced from:
micro_master in rams-7.0-dbg.a(mic_init.o)
nvfillm in rams-7.0-dbg.a(rname.o)
nameout in rams-7.0-dbg.a(rname.o)
“_node_mod$0”, referenced from:
rams_node in rams-7.0-dbg.a(rnode.o)
init_params in rams-7.0-dbg.a(rnode.o)
init_fields in rams-7.0-dbg.a(rnode.o)
node_index in rams-7.0-dbg.a(rnode.o)
newgrid in rams-7.0-dbg.a(rams_grid.o)
node_sendcyclic in rams-7.0-dbg.a(mpass_cyclic.o)
node_getcyclic in rams-7.0-dbg.a(mpass_cyclic.o)
…
“_rconst_nudge$0”, referenced from:
datassim in rams-7.0-dbg.a(nud_analysis.o)
nudge in rams-7.0-dbg.a(nud_analysis.o)
nudge_no_wind in rams-7.0-dbg.a(nud_analysis.o)
.Lfcmp4 in rams-7.0-dbg.a(nud_analysis.o)
nvfillm in rams-7.0-dbg.a(rname.o)
“_rconst_nudge$1”, referenced from:
nudge in rams-7.0-dbg.a(nud_analysis.o)
nudge_out in rams-7.0-dbg.a(nud_analysis.o)
nudge_out_sfc in rams-7.0-dbg.a(nud_analysis.o)
check_cytime in rams-7.0-dbg.a(nud_analysis.o)
nvfillm in rams-7.0-dbg.a(rname.o)
varf_update in rams-7.0-dbg.a(varf_update.o)
“_ref_sounding$0”, referenced from:
dtset in rams-7.0-dbg.a(modsched.o)
masterput_misc in rams-7.0-dbg.a(mpass_init.o)
nodeget_misc in rams-7.0-dbg.a(mpass_init.o)
optlib in rams-7.0-dbg.a(rprnt.o)
prtopt in rams-7.0-dbg.a(rprnt.o)
uwc in rams-7.0-dbg.a(rprnt.o)
rayf in rams-7.0-dbg.a(rbnd.o)
…
“_rpara$0”, referenced from:
rams_master in rams-7.0-dbg.a(rams_master.o)
master_sendinit in rams-7.0-dbg.a(mpass_full.o)
master_getall in rams-7.0-dbg.a(mpass_full.o)
master_getanl in rams-7.0-dbg.a(mpass_full.o)
masterput_processid in rams-7.0-dbg.a(mpass_init.o)
masterput_nl in rams-7.0-dbg.a(mpass_init.o)
masterput_gridinit in rams-7.0-dbg.a(mpass_init.o)
…
“_rrad3$0”, referenced from:
radiate in rams-7.0-dbg.a(rad_driv.o)
radcalc3 in rams-7.0-dbg.a(rad_driv.o)
mclatchy in rams-7.0-dbg.a(rad_mclat.o)
The above errors refer to fortran modules.
The same code is correctly compiled by gfortran and portland fortran version 10.6.
Thanks.
Stefano