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

[netCDF #JAT-378412]: netCDF library port to new HP-UX system



Hi,

> Hi Russ,
> 
> 
> Thanks for the information. I downloaded the source code and tried to 
> compiled it on our system. There are errors. Please see the attachment for 
> the error message.
> 
> 
> Here is our system information:
> $uname -a
> HP-UX nas1 B.11.31 U ia64 0517787850 unlimited user license
> 
> I also configured some environment variable as following:\cc=cc
> CPPFLAGS="-D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64 -Dextname"
> FC=/opt/fortran90/bin/f90
> FFLAGS=-w
> FLIBS=-lU77
> CXX=aCC
> 
> I compiled the code as follows:
> $./configure --disable-cxx --disble-netcdf-4 --disable-dap
> 
> Since our application source code is in c and fortran, so I did not disable 
> fortran.
> 
> Did I do something wrong? Thanks you so much for the help.

It looks to me like you ran configure with the right options and I can't see 
why it didn't work. The last time we tested on
HPUX was with the 3.6.3 version of netCDF, and our test showed it used the same 
f90 options and succeeded in
linking at the point you see a bunch of unsatisfied externals:

        source='fortlib.c' object='fortlib.o' libtool=no \
        DEPDIR=.deps depmode=hp /bin/sh ../depcomp \
        cc -DHAVE_CONFIG_H -I. -I.. -I../fortran      -g -c -o fortlib.o 
fortlib.c
        /bin/sh ../libtool --tag=F77    --mode=link f90 -I../fortran        
-I../libsrc -I../fortran  -I../f90 -g          -o nf_test test_get.o test_put.o 
 nf_error.o nf_test.o test_read.o  test_write.o util.o fortlib.o       
../libsrc/libnetcdf.la    
libtool: link: f90 -I../fortran -I../libsrc -I../fortran -I../f90 -g -o nf_test 
test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o 
fortlib.o  ../libsrc/.libs/libnetcdf.a
        f90 -DHAVE_CONFIG_H -I. -I.. -I../fortran     -I../fortran        
-I../libsrc -I../fortran  -I../f90 -g -c -o tst_f77_v2.o tst_f77_v2.F
/var/tmp/fcpAAAa00524.F
   program TST_F77_V2

1571 Lines Compiled

We don't have a system on which we can duplicate the problems you are seeing.  
You might try verion 3.6.3 (from June 2008)
 to see if it builds without this problem, but I'm not sure why it would:

  ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.3.tar.gz

Here is the output we got from a successful build of that version on HPUX, for 
comparison:

  
http://www.unidata.ucar.edu/software/netcdf/builds/3_6_3/tweety_HP-UX_netcdf-3.6.3_2008-06-29-11-29.txt

--Russ


  
> Xinhua Fahy
> NP Code 81320
> address@hidden
> 
> ________________________________
> 
> From: Unidata netCDF Support [mailto:address@hidden]
> Sent: Mon 3/28/2011 1:13 PM
> To: Fahy, Xinhua CIV SPAWARSYSCEN-PACIFIC, 81320
> Cc: address@hidden
> Subject: [netCDF #JAT-378412]: netCDF library port to new HP-UX system
> 
> 
> 
> Hi Xinhua,
> 
> > I work for SPAWAR. We are trying to port a mocule that consists of c and
> > fortran code from HP-UX 9000 PA-RISK 32 bit machine to HP-UX 11i v3 ia64
> > machine. In the old system we used the library libnercdf.a from your
> > company and it worked fine. We still would like to compile the new
> > system in 32 bit mode. By default +DD32 fior compile and link is turned
> > on.
> >
> > In the new system, it has the following error:
> > ld: mismatched ABI( not a ELF file) libnetcdf.a
> >
> > Do you have a binary that works on the new system? What do i need to do
> > to port it over?
> 
> No, sorry, we don't have an updated HP-UX platform on which we could build
> such binaries.  You should be able to build libnetcdf.a from source easily
> if you configure to not use any of the new features available in the current
> netCDF-4 library that you don't make use of, like support for the enhanced
> netCDF-4 data model or OPeNDAP client support.  Just get the source from
> 
> ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz
> 
> and run the configure script with the options
> 
> --disable-netcdf-4 --disable-dap
> 
> If you don't use the Fortran-77 or Fortran-90 interfaces or the C++
> interfaces, you could also include the configure options
> 
> --disable-fortran --disable-cxx
> 
> If the default is to build 64-bit executables, you'll have to set
> the environment variables CFLAGS, FCFLAGS, FFLAGS, CXXFLAGS
> appropriately (e.g. "-m32") for C, Fortran-90, Fortran-77, or C++
> compiler flags, before invoking the configure script, and then just
> follow the build instructions:
> 
> http://www.unidata.ucar.edu/netcdf/docs/netcdf-install/Quick-Instructions.html
> 
> --Russ
> 
> 
> Russ Rew                                         UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu 
> <http://www.unidata.ucar.edu/>
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: JAT-378412
> Department: Support netCDF
> Priority: Normal
> Status: Closed
> 
> 
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: JAT-378412
Department: Support netCDF
Priority: Normal
Status: Closed