WRAPIT in x86_64

From: Bao Qing <baoqing_at_nyahnyahspammersnyahnyah>
Date: Sun, 05 Mar 2006 23:20:13 -1000

Hi all,

I'm compiling fortran subroutine in Linux. It works well in Linux, but failed in X86_64 Linux. Please see the following:
------------------------------------------
$->uname -a
Linux 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux

$->WRAPIT t.f
WRAPIT Version: 041106
/usr/bin/g77
COMPILING t.f
LINKING
END WRAPIT
------------------------------------------
$->uname -a
Linux 2.6.9-22.0.1.106.unsupportedsmp #1 SMP Sun Nov 6 09:55:19 CST 2005 x86_64 x86_64 x86_64 GNU/Linux

$->WRAPIT t.f
WRAPIT Version: 041106
/usr/bin/g77
COMPILING t.f
LINKING
/usr/bin/ld: WRAPIT.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
WRAPIT.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
END WRAPIT
------------------------------------------

Could anyone tell me how to 'recompile with -fPIC', or is there any other way to fix?

Regards,

Qing

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 06 2006 - 02:20:13 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 06 2006 - 09:04:55 MST