external functions on IBM AIX

From: Cheung Ping (picheung@XXXXXX)
Date: Fri Dec 28 2001 - 21:23:10 MST


I have problem using external shared object on
IBM AIX version: 4.3 with
NCL version: 4.1

A simple sample fortran code :

---------------- test.f -----------------------
C NCLFORTSTART
      SUBROUTINE TEST(A,B)
      INTEGER A,B
C NCLEND
      A = B + 2
      END

-------- Make a shared object by: ---------
wrapit77 < test.f > test_W.c
nhlcc -c test_W.c -I$NCARG_ROOT/include -L$NCARG_ROOT/lib
nhlf77 -c test.f
ld -G -bnoentry -bexpall -o test.so test.o test_W.o

---------- run ncl will get: -------------------
$ncl
ncl 0>external test "./test.so"
Illegal instruction(coredump)
$

Anyone has any idea ? I have tried it on Linux and it worked.



This archive was generated by hypermail 2b29 : Tue Feb 19 2002 - 09:06:07 MST