multiple definition of `ftn_allocated'

Hi,

I’m using the pgi compiler (6.2-5, 64-Bit) on an Opteron Workstation running OpenSuSE 10.1. I have to link Fortran90 and C++ code together. Using pgCC together with -pgf90libs I get the following messages and the executable is not build:

/opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o): In function `ftn_allocated':
allo.c:(.text+0x0): multiple definition of `ftn_allocated'
/opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o):allo.c:(.text+0x670): first defined here
/usr/bin/ld: Warning: size of symbol `ftn_allocated' changed from 28 in /opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o) to 77 in /opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o)
/opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o): In function `ftn_allocate':
allo.c:(.text+0x50): multiple definition of `ftn_allocate'
/opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o):allo.c:(.text+0x6d0): first defined here
/usr/bin/ld: Warning: size of symbol `ftn_allocate' changed from 58 in /opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o) to 202 in /opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o)
/opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o): In function `ftn_alloc':
allo.c:(.text+0x1f0): multiple definition of `ftn_alloc'
/opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o):allo.c:(.text+0x710): first defined here
/usr/bin/ld: Warning: size of symbol `ftn_alloc' changed from 54 in /opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o) to 158 in /opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o)
/opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o): In function `ftn_dealloc':
allo.c:(.text+0x290): multiple definition of `ftn_dealloc'
/opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o):allo.c:(.text+0xe50): first defined here
/usr/bin/ld: Warning: size of symbol `ftn_dealloc' changed from 10 in /opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o) to 196 in /opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o)
/opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o): In function `ftn_deallocate':
allo.c:(.text+0x360): multiple definition of `ftn_deallocate'
/opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o):allo.c:(.text+0xe40): first defined here
/usr/bin/ld: Warning: size of symbol `ftn_deallocate' changed from 10 in /opt/pgi/linux86-64/6.2/lib/libpgf90.a(allo.o) to 5 in /opt/pgi/linux86-64/6.2/lib/libpgftnrtl.a(allo.o)

linker: pgCC
linker options: -pgf90libs -mp=numa
additional library from pgi: -lacml

The multiple definitions did not occur with pgi 6.0-5(64-Bit) on SuSE 9.3 and same options.

Thanks,
Stefan

Hi,

I have solved this problem using acml 3.6.0 from AMD Developer Central.

Stefan