Compiling error on Linux SuSE 6.2


Subject: Compiling error on Linux SuSE 6.2
From: Christian Georges (christian.georges@uibk.ac.at)
Date: Mon Nov 08 1999 - 05:03:50 MST


Hi there,

I try to compile ccm3.6.6 on Linux SuSE6.2.
According to the mails by Jim Rosinski ("RE: How to run CCM3 on Linux
PC") I use the Portland GRoup Fortran Compiler, changed the Makefile to
compile with pgf90 and added the trailing underscores to the *.c files.

I was not able to compile the netCDF3.4-4 library on my distribution, so
I installed an existing RPM, which is originally for the Red Hat - I
think 6.0 - Distribution
(link:
ftp.tuwien.ac.at//zaux237/opsys/linux/redhat.com/contrib/libc6/i386/netcdf-3.4-4.i386.rpm).
Installation of the RPM worked fine. Comparisons of compilation runs of
CCM3.6.6 with and without netCDF3.4-4 RPM installed, showed that the
Redhat RPM seems to be usable with SuSE6.2 (undefined references nf_...
appeared without netCDF RPM installed, but not with it installed).

I use the 'standard' build.noncray.csh script, with CPU changed to LINUX
and MAXCPU to 1, and the paths for netcdf set right.

So, with netCDF RPM installed, compilation of the *.o object files works
well, but when the object files are to be put together to the resulting
atm executable, I get the following error:

pgf90 -o /home/christian/ccm/bld/../run/atm addfld.o ......
histcrtini.o: In function `histcrtini_':
histcrtini.o(.text+0x1432): undefined reference to
`dim_tim_ivar_tim_id__'
Linking:
gmake: *** [/home/christian/ccm/bld/../run/atm] Error 1

Its just one undefined reference error. Is it a problem connected to the
netCDF lib or where does this reference go to?? What do I have to
change?

I would appreciate any comment or help!!

Thanks in advance

Christian




This archive was generated by hypermail 2b27 : Thu Jun 01 2000 - 09:28:50 MDT