[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20040726: netCDF Unix Build - SuSE Linux 9.1, 2.6.5 kernel, gcc version 3.3.3 - Unresolved externals trying to run tests



Bernie,

> To: address@hidden
> From: "Bernie Gardner" <address@hidden>
> Subject: netCDF Unix Build - SuSE Linux 9.1, 2.6.5 kernel, gcc version 3.3.3 
> - Unresolved externals trying to run tests
> Organization: UMass Boston
> Keywords: 200407221933.i6MJXQra026601 netCDF F90 Intel Fortran

The above message contained the following:

> Institution: UMass Boston
> Package Version: 3.5.1
> Operating System: SuSE Linux 9.1,  2.6.5 kernel, gcc version 3.3.3
> Hardware Information: Pentium VI, 2.4 Ghz, 750 MB ram
> Inquiry: I have compiled the package using the Intel 8.0 ifort
>   compiler. When I attempt to run the tests (make test), I get a large
>   number of unresolved external errors:
> 
> e.g.
> netcdf.o(.text+0x11): In function `netcdf_mp_nf90_inq_libvers_\':
> : undefined reference to `nf_inq_libvers_\'
> netcdf.o(.text+0x3d): In function `netcdf_mp_nf90_strerror_\':
> : undefined reference to `nf_strerror_\'
> netcdf.o(.text+0x5f): In function `netcdf_mp_nf90_inq_base_pe_\':
> : undefined reference to `nf_inq_base_pe_\'
> netcdf.o(.text+0x71): In function `netcdf_mp_nf90_set_base_pe_\':
> : undefined reference to `nf_set_base_pe_\'
> 
> I have set: CPPFLAGS=\'-DNDEBUG -Df2cFortran\'
> following hints I found on line, but the problem persists.

For the Intel Fortran compiler (ifc) the C macro "pgiFortran" should
be defined instead of "f2cFortran".

Please try the following:

    1.  Go to the top-level source-directory.

    2.  Perform steps 3 through 5 described at

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

    3.  Ensure that the environment variable CPPFLAGS contains the
        string "-DpgiFortran".

    4.  Perform steps 6 through 9 described at

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

Reported successes using the Intel Fortran Compiler can be found at

    http://www.unidata.ucar.edu/packages/netcdf/other-builds.html

> Thank you for any advice!
> 
> Bernie Gardner

Regards,
Steve Emmerson

> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publically available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.