[sage-devel] Re: Shared python library or fPIC issue on AMD64

2009-03-03 Thread Jaap Spies
mabshoff wrote: > > > On Mar 1, 8:46 am, Jaap Spies wrote: >> Pat LeSmithe wrote: > > [...] > It would, but do the following: take a throw away Python tree and > modify the python.spkg to add -fPIC to the default flags. Take the > libpython2.5.a and turn it into a shared library: > > mabsh..

[sage-devel] Re: Shared python library or fPIC issue on AMD64 + CDash + JavaScript talk

2009-03-02 Thread Pat LeSmithe
Hello, Many thanks to all for their advice. Converting to a shared library seems to have worked. After extracting members from a PIC'd libpython2.5.a, I did gcc -shared *.o -o libpython.so -lm -lpthread -lutil -ldl , copied the .so to $SAGE_LOCAL/lib, and changed spkg-install accordingly:

[sage-devel] Re: Shared python library or fPIC issue on AMD64

2009-03-02 Thread Tim Spriggs
I recently ran into an error I thought was -fPIC related (similar errors) but the libs and the program I was compiling were all compiled with -fPIC. Turns out gcc -G was causing problems and changing to gcc - shared fixed the issue. The exact same build process worked on solaris- i386 and the issu

[sage-devel] Re: Shared python library or fPIC issue on AMD64

2009-03-01 Thread mabshoff
On Mar 1, 8:46 am, Jaap Spies wrote: > Pat LeSmithe wrote: Hi, > > /usr/bin/ld: > > /home/qed777/apps/sage/sage-3.2.3-Fedora_release_9-x86_64-Linux/local/lib/p > > ython2.5/config/libpython2.5.a(abstract.o): > > relocation R_X86_64_32 against `a local symbol' can not be used when > > makin

[sage-devel] Re: Shared python library or fPIC issue on AMD64

2009-03-01 Thread Jaap Spies
Pat LeSmithe wrote: > > Hello, > > In building the experimental ParaView package, > > http://trac.sagemath.org/sage_trac/ticket/5279 , > > on a x86_64 Fedora 9 machine with the corresponding binary distribution > of Sage 3.2.3, I got this error: > > /usr/bin/ld: > /home/qed777/apps/sage/sage-