NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


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

970707: building under SunOS 5.5 using gcc and g77



Randy,

> To: address@hidden
> From: Randy Arndt <address@hidden>
> Subject: make test errors
> Organization: Aurora Simulation, Inc.
> Keywords: 199707071300.HAA24056

In the above message, you wrote:

> I'm trying to install netcdf-3.3.1 on a Sun Netra running Solaris
> 2.5.1.  I'm using gcc and g77.

Hmm...  Haven't tested that combination.  Do you not have the Sun
WorkShop C and Fortran compilers?

> I don't have any problems compiling, but
> when I run "make test," it fails at nf_test with a whole bunch of
> "undefined reference" errors.

Does this happen when you "run" (i.e. execute) the "nf_test" utility 
or when you attempt to link it together?

> Here's a small sample of the error
> messages I'm getting:
> 
> util.o(.text+0x1a84): undefined reference to `nf_create__'
> util.o(.text+0x1ac4): undefined reference to `nf_enddef__'
> util.o(.text+0x1af4): undefined reference to `nf_close__'
> util.o: In function `check_dims__':
> util.o(.text+0x1b68): undefined reference to `nf_inq_dim__'
> util.o: In function `check_vars__':
> util.o(.text+0x1c98): undefined reference to `nf_inq_var__'
> util.o(.text+0x1da0): undefined reference to `nf_inq_dim__'
> util.o(.text+0x1ee4): undefined reference to `nf_get_var1_text__'
> util.o(.text+0x1f44): undefined reference to `nf_get_var1_double__'
> util.o: In function `check_atts__':
> util.o(.text+0x2094): undefined reference to `nf_inq_attname__'
> util.o(.text+0x2114): undefined reference to `nf_inq_att__'
> util.o(.text+0x21b4): undefined reference to `nf_get_att_text__'
> util.o(.text+0x227c): undefined reference to `nf_get_att_double__'
> util.o: In function `check_file__':
> util.o(.text+0x23bc): undefined reference to `nf_open__'
> util.o(.text+0x23fc): undefined reference to `nf_close__'
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/usr/share/src/netcdf-3.3.1/src/nf_test'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/usr/share/src/netcdf-3.3.1/src'
> make: *** [nf_test/test] Error 2
> 
> I'm not familiar with the netcdf package at all.  Do you have any
> solutions to my problem?  I appreciate any help you can give me.

I'm afraid that it not obvious to me from the above what the problem is.

Would you please send me the following:

    3.  The standard output and error output of the configure script.

    4.  The absolute pathnames of all compilers (C, FORTRAN, C++) used
        in the build process (use the type(1) or which(1) utility to
        determine this).

    5.  The contents of the file "config.log", which is in the top-level
        source directory.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>