| Karim Belabas on Sun, 23 Sep 2007 22:17:14 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: ticket #627: pari 2.3.2 build fix for Linux PPC 32 bit |
* Michael.Abshoff [2007-09-09 18:18]:
> I am a Sage developer who has ported Sage to 32 bit PPC Linux. While
> doing so I come across the following issue: Linux PPC need -fPIC
> otherwise pari compiles and links fine, but upon execution we get the
> following error:
>
> [mabshoff@localhost sage-2.8.4]$ gp
> gp: error while loading shared libraries:
> /tmp/Work/sage-2.8.4/spkg/build/pari-2.3.2.p1/src/Olinux-ppc/libpari-gmp.so.2:
> R_PPC_REL24 relocation at 0x0fc77278 for symbol `sqrt' out of range
>
> The fix is obvious: add -fPIC to DLCFLAGS for linux-ppc. A path can be
> found at
>
> http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/pari-add_-fPIC_to_DLCFLAGS_for_PPC_Linux.patch
Looks fine. Patch applied to development version's CVS.
Thanks!
K.B.
--
Karim Belabas Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1 Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France) http://pari.math.u-bordeaux.fr/ [PARI/GP]