Brad,
On Sat, 26 Nov 2005, Brad Cavanagh wrote:
> On compiling kaplibs, I get the following error message:
>
> g95 -I/local-star/include -fno-second-underscore -fno-second-underscore
> -I../ira -g -O2 -c kpg1_frac.f -fno-common -o .libs/kpg1_frac.o
> In file kpg1_frac.f:433
>
> : MIN( NUM_ITOB( VAL__MAXI ),
> 1
> Error: Type mismatch in parameter 'num_argb' at (1). Passing INTEGER(4) to
> INTEGER(1)
I don't see this error (using FC4 and GCC 4.0.1) - kpg1_frac compiles
clean. But building the sharable libary gives:
ld: .libs/kpg1_frac.o: relocation R_X86_64_32 against `a local symbol' can
not be used when making a shared object; recompile with -fPIC
.libs/kpg1_frac.o: could not read symbols: Bad value
and indeed recompiling kpg1_frac with -fPIC fixes this problem.
David
|