[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #ZJO-577290]: AIX linking error
- Subject: [netCDF #ZJO-577290]: AIX linking error
- Date: Thu, 12 Jun 2008 06:30:39 -0600
> Dear Developpers,
> I'm facing with an error during the compilation of a simple code (see below)
on AIX. I compiled successfully the netcdf libraries following the instruction
for 64-bit machines. I compiled the code with this statement:
> xlf90_r main.f90 -q64 -I/usr/local/include -L/usr/local/lib -lnetcdf
>
> I get this errors:
>
> ** main === End of Compilation 1 ===
> 1501-510 Compilation successful for file main.f90.
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_libvers
> ld: 0711-317 ERROR: Undefined symbol: .nf_strerror
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_base_pe
> ld: 0711-317 ERROR: Undefined symbol: .nf_set_base_pe
> ld: 0711-317 ERROR: Undefined symbol: .nf_create
> ld: 0711-317 ERROR: Undefined symbol: .nf__create
> ld: 0711-317 ERROR: Undefined symbol: .nf__create_mp
> ld: 0711-317 ERROR: Undefined symbol: .nf__open
> ld: 0711-317 ERROR: Undefined symbol: .nf_open
> ld: 0711-317 ERROR: Undefined symbol: .nf__open_mp
> ld: 0711-317 ERROR: Undefined symbol: .nf_set_fill
> ld: 0711-317 ERROR: Undefined symbol: .nf_redef
> ld: 0711-317 ERROR: Undefined symbol: .nf_enddef
> ld: 0711-317 ERROR: Undefined symbol: .nf__enddef
> ld: 0711-317 ERROR: Undefined symbol: .nf_sync
> ld: 0711-317 ERROR: Undefined symbol: .nf_abort
> ld: 0711-317 ERROR: Undefined symbol: .nf_close
> ld: 0711-317 ERROR: Undefined symbol: .nf_delete
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_format
> ld: 0711-317 ERROR: Undefined symbol: .nf_def_dim
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_dimid
> ld: 0711-317 ERROR: Undefined symbol: .nf_rename_dim
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_dim
> ld: 0711-317 ERROR: Undefined symbol: .nf_copy_att
> ld: 0711-317 ERROR: Undefined symbol: .nf_rename_att
> ld: 0711-317 ERROR: Undefined symbol: .nf_del_att
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_attname
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_attid
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_att
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_att_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_def_var
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_varid
> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_var
> ld: 0711-317 ERROR: Undefined symbol: .nf_rename_var
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_text
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_var1_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_var1_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_var1_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_var1_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_var1_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var1_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var1_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var1_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var1_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var1_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vara_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vara_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vara_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vara_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_varm_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vars_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_put_vara_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_int1
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_int2
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_int
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_real
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_varm_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vars_double
> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_double
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
>
>
> program main
> use netcdf
> implicit none
> integer err, ncid
> err = nf90_open('temp.nc', NF90_NOWRITE, ncid)
> end
>
> I compiled the netcdf libraries using the following commands:
> export CC=xlc_r
> export CXX=xlC_r
> export FC=xlf_r
> export F90=xlf90_r
> export CFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export CXXFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export CPPFLAGS="-D_LARGE_FILES -DNDEBUG -Df2cFortran"
> export FFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export F90FLAGS="-q64 -qmaxmem=-1 -qarch=auto -qsuffix=f=f90"
> export ARFLAGS='-X64 cru'
> export NMFLAGS='-X64'
>
> Could you help me to solve this problem?
> Thanks in advance for your help,
> With the best wishes,
> Markus
>
>
Howdy!
When you built netcdf, did you do a make check, and did it succeed?
What version of netcdf are you using?
Thanks,
Ed
Ticket Details
===================
Ticket ID: ZJO-577290
Department: Support netCDF
Priority: Normal
Status: Open