[netcdfgroup] Could not build netcdf shared libs (4.1.2 with pgi 10.6)

Hi,

I'm trying to build netcdf 4.1.2(beta) on a 64 system
running SuSE SLES10SP2. We are using the PGI10.6 compiler.
HDF5 is compiled & installed (static and shared).

Whenever I'll try to get shared libs the configure
script shows a couple of lines

checking if pgf90 supports -c -o file.o... (cached) yes
checking whether the pgf90 linker (pgf90 -m elf_x86_64) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so


Finally everything is build, all tests are fine, but I've only
static libs. But we also need shared libs!

export CXX=pgcpp
export F77=pgf90
export FC=pgf90
export LD=pgf90
export CFLAGS="-O2"
export FFLAGS="-O2 -Msignextend"
export CPPFLAGS="-DpgiFortran"

Also I've tried to add "-fPIC" and/or "-fpic" - no success.

Any idea ?

taiga:/usr/local/apps/netcdf/4.1.2-pgi106/Source # uname -a
Linux taiga 2.6.16.60-0.27-smp #1 SMP Mon Jul 28 12:55:32 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
taiga:/usr/local/apps/netcdf/4.1.2-pgi106/Source # pgf90 -V

pgf90 10.6-0 64-bit target on x86-64 Linux -tp k8-64e
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2010, STMicroelectronics, Inc.  All Rights Reserved.


--
Mit freundlichem Gruß
    Peer-Joachim Koch
_________________________________________________________
Max-Planck-Institut fuer Biogeochemie
Dr. Peer-Joachim Koch
Hans-Knöll Str.10            Telefon: ++49 3641 57-6705
D-07745 Jena                 Telefax: ++49 3641 57-7705
begin:vcard
fn:Peer-Joachim Koch
n:Koch;Peer-Joachim
org;quoted-printable:MPI f=C3=BCr Biogeochemie;DVA
adr:;;Hans-Knoell-Str. 10;Jena;;07745;Germany
email;internet:pkoch@xxxxxxxxxxxxxxx
title:Dr. 
tel;work:+49 3641 576705
tel;fax:+49 3641 577705
x-mozilla-html:FALSE
version:2.1
end:vcard

  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: