This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Devin, Since you are not using the Makefile environment that I provide, you have to properly define the compiler flags in your build script. The compiling of all C programs for Solaris should include: -DDUNDERSCORE -DSunOS The -DUNDERSCORE flag will tell the linker how fortran programs access C subroutines with the _ character, which will solve the problem you have below with rcm_ not being found. After you recompile all the C routines with the above cc options, you should be able to link the program. Steve Chiswell Unidata User SUpport On Thu, 24 Feb 2000, Devin Eyre wrote: > Mark Chambers assigned me the task of compiling gdrcm. The compilation > step seems to go OK, but when I try to link it, I get the following > error: > > nawips@rainmaker> rcm_link > gprcm.f: > MAIN gprcm: > "GEMINC:GEMPRM.PRM", line 20: Warning: local variable "ermiss" never > used > "gprcm.f", line 24: Warning: local variable "parms" never used > Undefined first referenced > symbol in file > rcm_ gprcm.o > ld: fatal: Symbol referencing errors. No output written to > /usr3/nawips/exe/sunos5/gprcm > strip: /usr3/nawips/exe/sunos5/gprcm: cannot open file. > No such file or directory > > > Here's the contents of rcm_link: > > > > cd $GEMPAK/source/programs/gp/gprcm > > $GEMPAK/install/setup_links > > $FC $FFLAGS $LDFLAGS -o $GEMEXE/gprcm gprcm.f \ > > $GEMOLB/gprcm.a \ > > $GEMLIB $APPL $SYSLIB $GEMLIB > > $STRIP $GEMEXE/gprcm > > $GEMPAK/install/remove_links > > $RM *.o > > > In case it's necessary, I've included the output of env below. > > nawips@rainmaker> env > HOME=/usr3/nawips > PATH=/usr/openwin/bin:/etc:/opt/SUNWspro/bin:/opt/SUNWspro/SC5.0/bin:/usr/lang:/usr/ccs/bin:/usr/ccs/bin:/usr3/SUNWspro:/opt/SUNWspro:/usr3/SUNWspro/bin:/usr/ucb:/usr/bin:/usr/etc:/bin:/usr/bin/X11:.:/usr3/nawips/bin:/usr3/nawips/bin/sunos5:/usr3/nawips/exe/sunos5:/usr3/nawips/bin:/usr3/nawips/scripts/ez:/usr3/nawips/scripts/mod:/usr3/nawips/scripts/nawips > > LOGNAME=nawips > HZ=100 > TERM=dtterm > TZ=GMT > SHELL=/bin/csh > MAIL=/var/mail/nawips > PWD=/usr3/nawips/gempak/build > USER=nawips > OS=SunOS > OS_VER=5 > NA_OS=sunos5 > NAWIPS=/usr3/nawips > NAWIPS_EXE=/usr3/nawips/exe/sunos5 > NAWIPS_LIB=/usr3/nawips/lib/sunos5 > NAWIPS_INC=/usr3/nawips/include > NAWIPS_TABLES=/usr3/nawips/tables > NAWIPS_HELP=/usr3/nawips/help > NADATA=/usr3/nadata > MODEL=/usr3/nadata/model/grid > MODEL_PFCST=/usr3/nadata/model/pfcst > NTRANS_META=/usr3/nadata/meta/model > SAT=/usr3/nadata/images/satnew > GOES7=/usr3/nadata/images/satnew/GOES-7 > GOES8=/usr3/nadata/images/satnew/GOES-8 > GOES9=/usr3/nadata/images/satnew/GOES-9 > METEO=/usr3/nadata/images/satnew/Meteosat > AFOS_DATA=/usr3/nadata/afos/afos_data > AFOS_ALARMS=/usr3/nadata/afos/afos_alarms > OBS=/usr3/nadata/observations > TEXT_DATA=/usr3/nadata/text > GEMPAK=/usr3/nawips/gempak > GEMEXE=/usr3/nawips/exe/sunos5 > GEMOLB=/usr3/nawips/lib/sunos5 > GEM_OS=sunos > CGEMLIB=/usr3/nawips/lib/sunos5/cgemlib.a > GEMLIB=/usr3/nawips/lib/sunos5/gemlib.a > GPLT=/usr3/nawips/lib/sunos5/gplt.a > APPL=/usr3/nawips/lib/sunos5/appl.a > DEVICE=/usr3/nawips/lib/sunos5/device.a > GPLTDEV=/usr3/nawips/lib/sunos5/gpltdev.a > SYSLIB=/usr3/nawips/lib/sunos5/syslib.a > BRIDGE=/usr3/nawips/lib/sunos5/bridge.a > GEMMAPS=/usr3/nawips/gempak/maps > GEMDATA=/usr3/nawips/gempak/data > GEMPDF=/usr3/nawips/gempak/pdf > GEMNTS=/usr3/nawips/gempak/nts > GEMTBL=/usr3/nawips/gempak/tables > GEMERR=/usr3/nawips/gempak/error > GEMHLP=/usr3/nawips/gempak/help > GEMPARM=/usr3/nawips/gempak/parm > GEMPTXT=/usr3/nawips/gempak/txt/programs > GEMGTXT=/usr3/nawips/gempak/txt/gemlib > GEMINC=/usr3/nawips/gempak/include > NXM=/usr3/nawips/gempak/source/nxmlib > NTRANS=/usr3/nawips/nprogs/ntrans > AFOS=/usr3/nawips/nprogs/afos > AFOS_BITMAPS=/usr3/nawips/nprogs/afos/bitmaps > NSAT=/usr3/nawips/nprogs/nsat > NWX=/usr3/nawips/nprogs/nwx > NTL=/usr3/nawips/nprogs/ntl > LD=ld > AR=ar > ARFLAGS=rv > RM=rm -f > STRIP=strip > CC=cc > CFLAGS=-cg89 -DUNDERSCORE -DSunOS > CCFLGS=-cg89 -DSYSV -O -I/usr3/nawips/include > AC=acc > ANSI_CFLAGS=-DUNDERSCORE -DSunOS > FC=f77 > FFLAGS=-cg89 > LDFLAGS=-Bstatic > RANLIB=ranlib > XLIBS=-lXm -lXt -lX11 > OPENWINHOME=/usr/openwin > MANPATH=/usr/lang3/man:/usr/openwin/man:/usr/man:/usr3/nawips/man > LD_LIBRARY_PATH=/usr/lib:/usr/lang3/lib:/usr/openwin/lib:/usr/openwin/bin:/usr3/SUNWspro/lib:/opt/SUNWspro/lib > > XUSERFILESEARCHPATH=./%N:/usr3/nawips/%N:/usr3/nawips/resource/%N > > -- > address@hidden > > >