Message122278
| Author |
skrah |
| Recipients |
pitrou, skrah, tarek |
| Date |
2010年11月24日.14:05:47 |
| SpamBayes Score |
0.0009894236 |
| Marked as misclassified |
No |
| Message-id |
<1290607556.28.0.945451412885.issue10520@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Building the modules fails if --enable-shared is used. The linker picks
up an existing library from /usr/local/lib, which has not been compiled
with -fPIC:
gcc -pthread -shared build/temp.linux-x86_64-3.2/home/stefan/svn/py3k/Modules/_struct.o -L/usr/local/lib -L. -lpython3.2m -o build/lib.linux-x86_64-3.2/_struct.cpython-32m.so
/usr/bin/ld: /usr/local/lib/libpython3.2m.a(abstract.o): relocation R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.2m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Linking works if the order of the flags is changed to "-L. L/usr/local/lib". |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年11月24日 14:05:56 | skrah | set | recipients:
+ skrah, pitrou, tarek |
| 2010年11月24日 14:05:56 | skrah | set | messageid: <1290607556.28.0.945451412885.issue10520@psf.upfronthosting.co.za> |
| 2010年11月24日 14:05:48 | skrah | link | issue10520 messages |
| 2010年11月24日 14:05:47 | skrah | create |
|