Path: csiph.com!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: Python recompile Newsgroups: comp.lang.c,comp.lang.c++,comp.lang.python References: Lines: 29 Message-ID: X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Mon, 03 Mar 2025 18:02:32 UTC Organization: UsenetServer - www.usenetserver.com Date: Mon, 03 Mar 2025 18:02:32 GMT X-Received-Bytes: 2282 Xref: csiph.com comp.lang.c:390711 comp.lang.c++:121828 comp.lang.python:197316 antispam@fricas.org (Waldek Hebisch) writes: >In comp.lang.c James Kuyper wrote: >> On 3/2/25 12:54, Waldek Hebisch wrote: >>> In comp.lang.c The Doctor wrote: >>>> How do I compensate for >>>> >>>> ld: error: relocation R_X86_64_32 cannot be used against symbol '_PyRuntime'; recompile with -fPIC >>>>>>> defined in /usr/local/lib/libpython3.13.a(pylifecycle.o) >>>>>>> referenced by thread_pthread.h:138 (Python/thread_pthread.h:138) >>>>>>> thread.o:(PyThread_init_thread) in archive /usr/local/lib/libpython3.13.a >>>> >>> >>> This is real world question and as such is considered off-topic >>> in comp.lang.c. However, you could try '-no-pie' to the compiler. >> >> Real world questions about the C programming language are entirely >> on-topic here. Note, however, that many questions posted here are not >> about C itself, but about the quirks of particular implementations of C. >> You can get better answers to such questions by asking in forums >> specific to the relevant implementation, and helpful people will remind >> your of that. It's a misunderstanding of those redirections to conclude >> that c.l.c is not for real world questions. >> >> However Python is NOT an implementation of C, not even by the loosest >> reasonable interpretation, so why should it be discussed here?. > >The question is about C implementation. So why are you cross posting to comp.lang.c++ and comp.lang.python?