Hi Maria, It looks like the FFLAGS variable didn't get set= with -m64. configure:24283: checking FFLAGS configure:24285: result: -g -O2 There was a typo in the command I sent you in setting FFLAGS (sorry about that - need more coffee). Try: lt_cv_ld_force_load=no CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" FCFLAGS="-m64" FFLAGS="-m64" ./configure --prefix=/home/mmartinc/local --disable-netcdf-4 I had FFLAGS="=-m64" instead of FFLAGS="-m64". You could also add "-g -O2" to each of those flags as well (e.g. CFLAGS="-arch x86_64 -g -O2"). I tested this on my mac with the same gcc and gfortran and it worked (for 32 and 64 bit). Hopefully we can get it going for you too. I did find that if I removed FFLAGS, then the config failed where it fails for you. Cheers! Sean > Sorry, I forgot to send you the output of the ./configure > > Thank you!! > > Maria > > ________________________________________ > De: Unidata netCDF Support address@hidden > Enviado el: lunes, 13 de junio de 2011 16:34 > Para: Martin Calvo, Maria > CC: address@hidden > Asunto: [netCDF #KVV-602932]: installation problems > > Greetings and good morning to you as well Maria! > > > Good morning, > > > > I've been trying to install the netcdf libraries for some days, following > > the recommendations from your website and some forums. > > > > I'm using a Mac 64 bit machine, and I've tried different versions of > > the netcdf files, with similar results. > > > > I send you the outputs from running ./configure and the consecuent > > config.log from the netcdf beta version (4.1.3-rc1). > > > > I always get the same error (checking if Fortran "byte" is C "signed > > char". .. configure: error: Could not link conftestf.o and conftest.o), > > and following the instructions for similar cases just leads me to > > different errors. (doing FC=g95, export FC> configure:error:fortran > > could not compile f90 files) > > > > Please give this a try: > > lt_cv_ld_force_load=no CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" > FCFLAGS="-m64" FFLAGS="=-m64" ./configure --prefix=/home/mmartinc/local > --disable-netcdf-4 > > The lt_cv_ld_force_load=no will take care of a problem that you would have > ran into during `make` if you were able to get `configure` to run (it's an > issue with differences in `libtool` and `ld` on the Mac). The rest are > compile flags (assuming you want 64bit, otherwise change x96_64 to i386 and > -m64 to -m32). > > If this works for you, be sure to run `make check` after `make` to see if it > passes the tests. > > Cheers! > > Sean Arms > > > > Thank you in advance for any help...this is driving me crazy! > > > > Best regards > > > > Maria > > > > > > > > > Ticket Details > =================== > Ticket ID: KVV-602932 > Department: Support netCDF > Priority: Normal > Status: Open > > > Ticket Details =================== Ticket ID: KVV-602932 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.