Hi Bill, > While, ironically, I can get netcdf 4.1.1 to compile for MacOS > 10.6/64bit, I now I canât get it to do it for Linux (Mandriva > 2010.0) 64 bit and Iâm feeling a little silly over it. This is a new > error early on in the build process compared to that which Iâm > accustomed and Iâm not seeing the same error reported in the message > boards. Iâm attaching the config and make logs. > > My configuration for the compilers is: > > > setenv CC pgcc > setenv FC pgf90 > setenv F90 pgf90 > setenv F77 pgf77 > setenv CXX pgCC > setenv CPP 'pgCC -E' > setenv CFLAGS " -Msignextend " > setenv CPPFLAGS " -DNDEBUG -DpgiFortran " > setenv CXXFLAGS " " > setenv F90FLAGS " " > setenv FFLAGS " -w " > setenv LDFLAGS " " The problem seems to be compiling the test programs for C++ API: ... > libtool: link: pgCC --prelink_objects --instantiation_dir Template.dir netcd> f.o ncvalues.o > pgCC-Warning-prelink_objects switch is deprecated > pgCC-Warning-instantiation_dir switch is deprecated > /usr/lib64/crt1.o: In function `_start': > /home/qateam/rpm/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: unde> fined reference to `main' > netcdf.o: In function `NcFile::__ct(char const *, NcFile::FileMode, unsigned lo> ng *, unsigned long, NcFile::FileFormat)': > /usr/local/netcdf-4.1.1/cxx/./netcdf.cpp:382: undefined reference to > `nc__open' If you really need the C++ API, here's another possibility. You have set > setenv CXX pgCC > setenv CPP 'pgCC -E' but the Portland Group site http://www.pgroup.com/resources/netcdf/netcdf40_pgi2010.htm recommends using setenv CC pgCC setenv CXX pgcpp The environment variable "CPP" isn't used by the netCDF configure script, so setting it has no effect as far as I know. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: XEI-631234 Department: Support netCDF Priority: Normal Status: Closed
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.