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

[netCDF #KFH-844070]: apparent problem building netcdf-4.1.2 on AIX 5.3



> Hello,
> 
> I'm trying to port an application to our AIX 5.3 system.  It requires
> zlib-1.5.2 and hdf5-1.8.6 which I've already successfully built on the
> target system.  However, I seem to be having a problem building
> netcdf-4.1.2, as shown in the attached script output.  The script was
> run using the bourne shell, so each command I ran begins with a '$' and
> hopefully that will help you navigate through the file to see what I
> did.  What I'm concerned about is the output at the end of the 'gmake
> check' command, which shows:
> 
> ================================================
> 23 of 25 tests failed^M
> Please report to address@hidden
> ================================================
> 
> and which is why I'm writing to you.  Do you see anything amiss in my
> build procedure?  I can also pass along my script output from the prior
> builds of zlib-1.5.2 and hdf5-1.8.6 if that will help you - just let me
> know.
> 
> Other than these check failures, the library files themselves were built
> and seem to be of a reasonable size.  However, when I try linking
> everything to the main program I get the following link errors:
> 
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_open
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_inq_varid
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_inquire_variable
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_inquire_dimension
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_close
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_inquire
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_eightbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_eightbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_fourbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_fourbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_eightbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_eightbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_fourbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_fourbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_twobyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_twobyteint
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_get_att_text
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_put_var_1d_text
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_att_one_onebyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_put_var_1d_onebyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_eightbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_fourbytereal
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_eightbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_fourbyteint
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_twobyteint
> ld: 0711-317 ERROR: Undefined symbol: .__netcdf_NMOD_nf90_get_var_1d_text
> ld: 0711-317 ERROR: Undefined symbol:
> .__netcdf_NMOD_nf90_get_var_1d_onebyteint
> 
> Could these be related to the above check test failures, or is this
> something else entirely?
> 
> Please let me know if you need any more information from me, and thanks
> in advance for any assistance you can provide!
> 
> Sincerely,
> 
> Jeff Ator
> NCEP Central Operations
> 
> 

Howdy Jeff!

From your file:
/bin/sh ../libtool --tag=F77   --mode=link xlf -I../fortran -I../f90 
-I../include -I../liblib -I/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/include 
-I/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/include  -g  
-L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -o ftest ftest.o fortlib.o 
../fortran/libnetcdff.la -lm ../liblib/libnetcdf.la 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -lhdf5_hl -lhdf5 
-L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib -lz  -lhdf5_hl -lhdf5 -lz 
libtool: link: xlf -I../fortran -I../f90 -I../include -I../liblib 
-I/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/include 
-I/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/include -g -o .libs/ftest ftest.o 
fortlib.o  -L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -L../fortran/.libs -lnetcdff 
-L../liblib/.libs -lnetcdf 
/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib/libhdf5_hl.a 
/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib/libhdf5.a -lm -lz 
-Wl,-blibpath:/nco/sib/wx12ja/VIIRS_test/libs/netcdf-4.1.2/lib:/usr/lpp/xlf/lib:/usr/lib:/lib
xlf90  -I../fortran -I../f90 -I../f90 -I../include -I../liblib 
-I/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/include 
-I/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/include  -g -c -o tst_f90.o  
tst_f90.f90
** netcdftest   === End of Compilation 1 ===
1501-510  Compilation successful for file tst_f90.f90.
/bin/sh ../libtool --tag=FC   --mode=link xlf90  -I../fortran -I../f90 -I../f90 
-I../include -I../liblib -I/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/include 
-I/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/include  -g  
-L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -o tst_f90 tst_f90.o 
../fortran/libnetcdff.la -lm ../liblib/libnetcdf.la 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -lhdf5_hl -lhdf5 
-L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib -lz  -lhdf5_hl -lhdf5 -lz 
libtool: link: xlf90 -I../fortran -I../f90 -I../f90 -I../include -I../liblib 
-I/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/include 
-I/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/include -g -o .libs/tst_f90 
tst_f90.o  -L/nco/sib/wx12ja/VIIRS_test/libs/zlib-1.2.5/lib 
-L/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib -L../fortran/.libs -lnetcdff 
-L../liblib/.libs -lnetcdf 
/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib/libhdf5_hl.a 
/nco/sib/wx12ja/VIIRS_test/libs/hdf5-1.8.6/lib/libhdf5.a -lm -lz 
-Wl,-blibpath:/nco/sib/wx12ja/VIIRS_test/libs/netcdf-4.1.2/lib:/usr/lpp/xlf/lib:/usr/lib:/lib
gmake[2]: Leaving directory 
`/gpfs/c4/nco/sib/wx12ja/VIIRS_test/libs/netcdf-4.1.2/nf_test'
gmake  check-TESTS
gmake[2]: Entering directory 
`/gpfs/c4/nco/sib/wx12ja/VIIRS_test/libs/netcdf-4.1.2/nf_test'

*** Testing creating file with fill values.
*** SUCCESS!
PASS: create_fills.sh
  
 *** Testing netCDF-3 Fortran 77 API.
/bin/sh[10]: 504100 Illegal instruction(coredump)
FAIL: nf_test
  
  *** Testing netCDF v2 api for F77.
/bin/sh[10]: 889404 Illegal instruction(coredump)
FAIL: tst_f77_v2


For some reason your fortran programs are not working. Are you sure that the 
fortran compiler is working? Can you run a test program with it and make sure 
it succeeds?

Thanks,

Ed

Ticket Details
===================
Ticket ID: KFH-844070
Department: Support netCDF
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly 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.