Hi Ed
On Wed, Aug 19, 2009 at 08:51:48 -0600, Ed Hartnett wrote:
> Karsten Bolding <karsten@xxxxxxxxxxxxxxxxxxxx> writes:
>
<snip>
>
> It's unlikely that you can get the shared build to work without the
> static version working, so I suggest we first drop the --enable-shared
> and get the static build working, as it is the simpler case. What goes
> wrong when you do the static build?
Stats on compiling NetCDF with gcc, g++ and ifort:
Ubuntu Jaunty
kb@nc20:~$ uname -a
Linux nc20 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009
x86_64 GNU/Linux
kb@nc20:~$ ifort -v
Version 11.1
ver=4.0.1
---------
make distclean && ./configure --prefix=/opt/netcdf-$ver-no-shared
--with-hdf5=/opt/hdf5-1.8.3 && make && make test
compiling GOTM - OK
make distclean && FCFLAGS="-fPIC" F90FLAGS="-fPIC" ./configure
--prefix=/opt/netcdf-$ver-shared --with-hdf5=/opt/hdf5-1.8.3 --enable-shared &&
make && make test
compiling GOTM - OK - but requires -lnetcdff
ver=4.1-beta1-snapshot2009080400
--------------------------------
make distclean && ./configure --prefix=/opt/netcdf-$ver-no-shared
--with-hdf5=/opt/hdf5-1.8.3 && make && make test
compiling GOTM - OK
make distclean && FCFLAGS="-fPIC" F90FLAGS="-fPIC" ./configure
--prefix=/opt/netcdf-$ver-shared --with-hdf5=/opt/hdf5-1.8.3 --enable-shared &&
make && make test
compiling GOTM - OK - but requires -lnetcdff
The F90FLAGS seems to do the trick.
<snip>
>
> Thanks,
>
> Ed
Karsten
--
----------------------------------------------------------------------
Karsten Bolding Bolding & Burchard ApS
Strandgyden 25 Phone: +45 64422058
DK-5466 Asperup Fax: +45 64422068
Denmark Email: karsten@xxxxxxxxxxxxxxxxxxxx
http://www.findvej.dk/Strandgyden25,5466,11,3
Q: What is irony?
A: Almost the same as goldy and bronzy - just made of iron ...
(from Blackadder)
----------------------------------------------------------------------